Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)

src/e/r/erp5-HEAD/product/ERP5SyncML/Conduit/ERP5Conduit.py   erp5(Download)
from hashlib import sha1
 
from Products.ERP5SyncML.SyncMLConstant import XUPDATE_ELEMENT,\
     XUPDATE_INSERT_OR_ADD_LIST, XUPDATE_DEL, XUPDATE_UPDATE, XUPDATE_INSERT_LIST
# Constant
ADDABLE_PROPERTY_LIST = LOCAL_ROLE_LIST + (HISTORY_TAG,) + (LOCAL_PERMISSION_TAG,)
NOT_EDITABLE_PROPERTY_LIST = ('id', 'object', 'uid', 'attribute::type',) +\
                             (XUPDATE_ELEMENT,) + ADDABLE_PROPERTY_LIST
 
FORCE_CONFLICT_LIST = ('layout_and_schema', 'ModificationDate')
        if xml.xpath('name()') not in XUPDATE_INSERT_OR_ADD_LIST:
          for subnode in xml:
            if subnode.xpath('name()') == XUPDATE_ELEMENT:
              keyword = subnode.get('name')
        else:
    It transform the xupdate into node handleable by Conduit
    """
    if xml.xpath('name()') == XUPDATE_ELEMENT:
      new_node = Element(xml.get('name'), nsmap=xml.nsmap)
      for subnode in xml.findall('{%s}attribute' % xml.nsmap['xupdate']):
    """
    action_list = []
    if xml.xpath('name()') == XUPDATE_ELEMENT:
      action_list.append(xml)
      return action_list

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_zencart/ExtensionTemplateItem/ZencartNodeConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5SyncML.SyncMLConstant import XUPDATE_ELEMENT,\
     XUPDATE_INSERT_OR_ADD_LIST, XUPDATE_DEL, XUPDATE_UPDATE
from Products.ERP5TioSafe.Conduit.TioSafeNodeConduit import TioSafeNodeConduit

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_virtuemart/ExtensionTemplateItem/VirtuemartNodeConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5SyncML.SyncMLConstant import XUPDATE_ELEMENT,\
     XUPDATE_INSERT_OR_ADD_LIST, XUPDATE_DEL, XUPDATE_UPDATE
from Products.ERP5TioSafe.Conduit.TioSafeNodeConduit import TioSafeNodeConduit

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_ubercart/ExtensionTemplateItem/UbercartNodeConduit.py   erp5(Download)
from Products.ERP5TioSafe.Conduit.TioSafeBaseConduit import TioSafeBaseConduit
from Products.ERP5TioSafe.Conduit.ERP5NodeConduit import ERP5NodeConduit
from Products.ERP5SyncML.SyncMLConstant import XUPDATE_ELEMENT,\
     XUPDATE_INSERT_OR_ADD_LIST, XUPDATE_DEL, XUPDATE_UPDATE
from DateTime import DateTime

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_oxatis/ExtensionTemplateItem/OxatisNodeConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5SyncML.SyncMLConstant import XUPDATE_ELEMENT,\
     XUPDATE_INSERT_OR_ADD_LIST, XUPDATE_DEL, XUPDATE_UPDATE
from Products.ERP5TioSafe.Conduit.TioSafeNodeConduit import TioSafeNodeConduit