Use name vs old raw_name in import's section lock
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 15:43:41 +0000 (11:43 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 15:43:41 +0000 (11:43 -0400)
sitecore/prof/import.py

index 77afc41054c30bee056c762301b899a43783fc5f..840a248ffb9b8cd9c3ff929f186c30b65685ba94 100644 (file)
@@ -52,7 +52,7 @@ class ProfessorAdder (object):
     def __call__(self, prof):
         name = '%s %s' % (prof.name.first_middle, prof.name.last)
         self.create_prof_page(name)
-        self.lock_section()
+        self.lock_section(name)
         settings = [
             ('Degrees:', prof.degrees()),
             ('College:', prof.colleges()),
@@ -113,11 +113,11 @@ class ProfessorAdder (object):
                            % (popup, current_window))
         self.s.open_nav_section(name)
 
-    def lock_section(self):
+    def lock_section(self, name):
         try:
             self.s.lock_section()
         except NoSuchElementException, e:
-            self.s.logger.info("can't lock %s (already locked?), skipping" % raw_name)
+            self.s.logger.info("can't lock %s (already locked?), skipping" % name)
 
 
 def main(argv):