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

All Samples(16)  |  Call(2)  |  Derive(6)  |  Import(8)

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_core/ExtensionTemplateItem/portal_components/extension.erp5.TioSafeBaseConduit.py   erp5(Download)
from Products.ERP5Type.XMLExportImport import MARSHALLER_NAMESPACE_URI
from zLOG import LOG, INFO
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
from lxml import etree
from copy import deepcopy
parser = etree.XMLParser(remove_blank_text=True)
 
XUPDATE_INSERT_LIST = ('xupdate:insert-after', 'xupdate:insert-before')
 
class TioSafeBaseConduit(ERP5Conduit):

src/e/r/erp5-HEAD/product/ERP5TioSafe/Conduit/TioSafeBaseConduit.py   erp5(Download)
from Products.ERP5Type.XMLExportImport import MARSHALLER_NAMESPACE_URI
from zLOG import LOG, INFO, WARNING
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
from lxml import etree
from copy import deepcopy
class TioSafeBaseConduit(ERP5Conduit):
  """
    This class provides some tools used by different TioSafe Conduits.
  """
 

src/e/r/erp5-HEAD/product/ERP5SyncML/Conduit/VCardConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
import difflib
 
from zLOG import LOG
 
class VCardConduit(ERP5Conduit):

src/e/r/erp5-HEAD/product/ERP5SyncML/Conduit/ERP5ShopOrderConduit.py   erp5(Download)
from zLOG import LOG
 
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
from Products.ERP5Type import Permissions
from Products.CMFCore.utils import getToolByName
 
 
class ERP5ShopOrderConduit(ERP5Conduit):

src/e/r/erp5-HEAD/product/ERP5SyncML/Conduit/ERP5DocumentConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
from Products.ERP5Type import Permissions
from AccessControl import ClassSecurityInfo
class ERP5DocumentConduit(ERP5Conduit):
  """
  ERP5DocumentConduit specialise generic Conduit
  to produce adhoc GID.
  The GID is composed by the concatenation of "reference-version-language"

src/e/r/erp5-HEAD/product/ERP5SyncML/Conduit/ERP5ConduitTitleGid.py   erp5(Download)
from AccessControl import ClassSecurityInfo
 
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
 
 
class ERP5ConduitTitleGid(ERP5Conduit):

src/e/r/erp5-HEAD/product/ERP5Type/XMLObject.py   erp5(Download)
    def fromXML(self, xml):
      """
          Replace the content of this object by providing an xml content
      """
      from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
      conduit = ERP5Conduit()

src/e/r/erp5-HEAD/product/ERP5SyncML/tests/testERP5SyncML.py   erp5(Download)
 
from Products.ERP5Type.tests.runUnitTest import tests_home
from Products.ERP5SyncML.Conduit.ERP5Conduit import ERP5Conduit
from Products.ERP5SyncML.XMLSyncUtils import encode, decode,\
     isDecodeEncodeTheSame
    person = person_server._getOb(self.id1)
    xml_output = person.asXML()
    conduit = ERP5Conduit()
    conduit.addNode(object=person_client1, xml=xml_output)
    new_object = person_client1._getOb(self.id1)