From c1faf2e7dc9fd2fb9e1103de30308809db6d7863 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 16:49:08 -0400 Subject: [PATCH] Use startswith instead of == to match fields --- sitecore/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2