From 1755813e2c4123b346e935d39648cfad0a994b5c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 11:43:41 -0400 Subject: [PATCH] Use name vs old raw_name in import's section lock --- sitecore/prof/import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index 77afc41..840a248 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -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): -- 2.26.2