Use startswith instead of == to match fields
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 20:49:08 +0000 (16:49 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 20:49:08 +0000 (16:49 -0400)
sitecore/__init__.py

index e5b6bfded9f83be14ec62a8423b05969a669f112..5a2453043dc8dbade6396bb5cb4faf569102bb7c 100755 (executable)
@@ -163,7 +163,7 @@ class SiteCoreConnection (object):
         match = False
         for f in fields:
             granddad = f.find_element_by_xpath('/../..')
-            if granddad.get_text() == field:
+            if granddad.get_text().startswith(field):
                 match = True
                 break
         if match != True: