From: W. Trevor King Date: Wed, 30 Jun 2010 16:15:07 +0000 (-0400) Subject: Ignore editor text fields for now X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c28e0f9d819516c5a24112d15f66dd85d7aa1aa;p=sitecorepy.git Ignore editor text fields for now --- diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index 128db24..9f998b6 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -79,8 +79,12 @@ class ProfessorAdder (object): if value == None: value = '' granddad,field = self.s.find_field(field_name) - field.clear() - field.send_keys(value) + try: + editor_link = granddad.find_element_by_link_text('Edit Html') + self.set_editor_field(editor_link, value) + except NoSuchElementException: # basic text field + field.clear() + field.send_keys(value) #granddad,field = self.s.find_field('Headshot:') #granddad.find_element_by_link_text('Properties') # TODO, set width/height @@ -118,6 +122,9 @@ class ProfessorAdder (object): except NoSuchElementException, e: self.s.logger.info("can't lock %s (already locked?), skipping" % name) + def set_editor_field(self, editor_link, value): + pass # TODO + def main(argv): import optparse