projects
/
sitecorepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2e444
)
Use startswith instead of == to match fields
author
W. Trevor King
<wking@drexel.edu>
Wed, 30 Jun 2010 20:49:08 +0000
(16:49 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 30 Jun 2010 20:49:08 +0000
(16:49 -0400)
sitecore/__init__.py
patch
|
blob
|
history
diff --git
a/sitecore/__init__.py
b/sitecore/__init__.py
index e5b6bfded9f83be14ec62a8423b05969a669f112..5a2453043dc8dbade6396bb5cb4faf569102bb7c 100755
(executable)
--- 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: