Avoid name/filename collision in prof/import's create_prof_page
authorW. Trevor King <wking@drexel.edu>
Thu, 1 Jul 2010 01:05:45 +0000 (21:05 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 1 Jul 2010 01:05:45 +0000 (21:05 -0400)
sitecore/prof/import.py

index bd8c5c480edcf81a7a70908d44e0699b198ffa55..3b949a636bff7b115e3132c0a5794da87370789f 100644 (file)
@@ -131,9 +131,9 @@ class ProfessorAdder (object):
             self.s.logger.info('handling copy popup %s (from %s, old %s)'
                                % (popup, windows, current_window))
             self.s.w.switch_to_window(popup)
-        name = self.s.w.find_element_by_id('Filename')
-        name.clear()
-        name.send_keys(
+        filename = self.s.w.find_element_by_id('Filename')
+        filename.clear()
+        filename.send_keys(
             '/sitecore/content/Home/physics/contact/facultyDirectory/%s'
             % name)
         self.s.w.find_element_by_id('OK').click()