From: W. Trevor King Date: Wed, 30 Jun 2010 15:43:41 +0000 (-0400) Subject: Use name vs old raw_name in import's section lock X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1755813e2c4123b346e935d39648cfad0a994b5c;p=sitecorepy.git Use name vs old raw_name in import's section lock --- 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):