Commit 17e573cc authored by Aurel's avatar Aurel

seems not to be used anylonger

parent 8528ffb8
...@@ -160,18 +160,18 @@ def resolveSyncmlAlertCode(category_id): ...@@ -160,18 +160,18 @@ def resolveSyncmlAlertCode(category_id):
base_category='syncml_alert_code').getReference() base_category='syncml_alert_code').getReference()
def setRidWithMap(xml, subscriber): # def setRidWithMap(xml, subscriber):
""" # """
get all the local objects of the given target id and set them the rid with # get all the local objects of the given target id and set them the rid with
the given source id (in the Map section) # the given source id (in the Map section)
""" # """
item_list = xml.xpath('/syncml:SyncML/syncml:SyncBody/syncml:Map/syncml:MapItem', # item_list = xml.xpath('/syncml:SyncML/syncml:SyncBody/syncml:Map/syncml:MapItem',
namespaces=xml.nsmap) # namespaces=xml.nsmap)
for map_item in item_list: # for map_item in item_list:
gid = '%s' % map_item.xpath('string(.//syncml:Target/syncml:LocURI)', namespaces=xml.nsmap) # gid = '%s' % map_item.xpath('string(.//syncml:Target/syncml:LocURI)', namespaces=xml.nsmap)
signature = subscriber.getSignatureFromGid(gid) # signature = subscriber.getSignatureFromGid(gid)
rid = '%s' % map_item.xpath('string(.//syncml:Source/syncml:LocURI)', namespaces=xml.nsmap) # rid = '%s' % map_item.xpath('string(.//syncml:Source/syncml:LocURI)', namespaces=xml.nsmap)
signature.setRid(rid) # signature.setRid(rid)
def getXupdateObject(object_xml=None, old_xml=None): def getXupdateObject(object_xml=None, old_xml=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment