Use ProfessorAdder.__call__() in prof/import.py
authorW. Trevor King <wking@drexel.edu>
Tue, 29 Jun 2010 12:50:29 +0000 (08:50 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 29 Jun 2010 12:52:21 +0000 (08:52 -0400)
sitecore/prof/import.py

index 46f74d3f0b5afc8e3bda6ee2e17bbb631431ef26..580bc53860a106416a283223068588414368be4b 100644 (file)
@@ -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()