From: W. Trevor King Date: Tue, 29 Jun 2010 12:50:29 +0000 (-0400) Subject: Use ProfessorAdder.__call__() in prof/import.py X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9db0c3b0b2f99a4b418d3b5476257304c900534b;p=sitecorepy.git Use ProfessorAdder.__call__() in prof/import.py --- diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index 46f74d3..580bc53 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -99,9 +99,9 @@ Example setup before running: s.start() try: s.login() - a = ProfessorAdder(s) - a.setup() + add = ProfessorAdder(s) + add.setup() for prof in profs: - a.add_profs(s, profs) + add(prof) finally: s.stop()