From: W. Trevor King Date: Wed, 30 Jun 2010 20:49:08 +0000 (-0400) Subject: Use startswith instead of == to match fields X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1faf2e7dc9fd2fb9e1103de30308809db6d7863;p=sitecorepy.git Use startswith instead of == to match fields --- diff --git a/sitecore/__init__.py b/sitecore/__init__.py index e5b6bfd..5a24530 100755 --- a/sitecore/__init__.py +++ b/sitecore/__init__.py @@ -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: