s.X -> self.s.X in prof/import.py
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 16:00:37 +0000 (12:00 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 16:00:37 +0000 (12:00 -0400)
sitecore/prof/import.py

index 2ed57c0d9a0fa8a4e0aeaa66212c6a2ea6dd3e78..128db24d8e1d74860aaf4c0838d73f91d738d8e9 100644 (file)
@@ -78,13 +78,13 @@ class ProfessorAdder (object):
         for field_name,value in settings:
             if value == None:
                 value = ''
-            granddad,field = s.find_field(field_name)
+            granddad,field = self.s.find_field(field_name)
             field.clear()
             field.send_keys(value)
-        #granddad,field = s.find_field('Headshot:')
+        #granddad,field = self.s.find_field('Headshot:')
         #granddad.find_element_by_link_text('Properties')
         # TODO, set width/height
-        s.publish_section('Added/updated Prof. %s' % prof.name.last)
+        self.s.publish_section('Added/updated Prof. %s' % prof.name.last)
 
     def create_prof_page(self, name):
         self.s.open_nav_section(name)