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

All Samples(47)  |  Call(33)  |  Derive(0)  |  Import(14)

src/e/r/erp5-HEAD/product/ERP5Form/MatrixBox.py   erp5(Download)
                    extra_dimension_category_label_dict[category] = label
                    extra_dimension_category_index_dict[category] = index
                from Products.ERP5Type.Utils import cartesianProduct
                extra_dimension_category_list_list = cartesianProduct(
                    [[category for category, label in extra_dimension] for extra_dimension in extra_dimension_list])
                    extra_dimension_category_label_dict[category] = label
                    extra_dimension_category_index_dict[category] = index
                from Products.ERP5Type.Utils import cartesianProduct
                extra_dimension_category_list_list = cartesianProduct(
                    [[category for category, label in extra_dimension] for extra_dimension in extra_dimension_list])

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_core/ExtensionTemplateItem/portal_components/extension.erp5.TioSafeResourceConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5TioSafe.Conduit.TioSafeBaseConduit import TioSafeBaseConduit
from Products.ERP5SyncML.Document.SyncMLConflict import SyncMLConflict as Conflict
 
      # build and browse the list of variations
      variation_list = cartesianProduct(builder_variation_list)
      for var_list in variation_list:
        object.product_module.createProductAttribute(id_product=new_id)
              [tuple(mapping.split('/', 1))], external_axe_list,
          ]
          variation_list = cartesianProduct(builder_variation_list)
          for var_list in variation_list:
            document.context.product_module.createProductAttribute(
            [(base_category, variation)], external_axe_list,
        ]
        variation_list = cartesianProduct(builder_variation_list)
        for var_list in variation_list:
          document.context.product_module.createProductAttribute(

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_magento/ExtensionTemplateItem/MagentoResourceConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5TioSafe.Conduit.TioSafeBaseConduit import TioSafeBaseConduit
from Products.ERP5SyncML.Document.Conflict import Conflict
 
      # build and browse the list of variations
      variation_list = cartesianProduct(builder_variation_list)
      for var_list in variation_list:
        object.product_module.createProductAttribute(id_product=new_id)
              [tuple(mapping.split('/', 1))], external_axe_list,
          ]
          variation_list = cartesianProduct(builder_variation_list)
          for var_list in variation_list:
            document.context.product_module.createProductAttribute(
            [(base_category, variation)], external_axe_list,
        ]
        variation_list = cartesianProduct(builder_variation_list)
        for var_list in variation_list:
          document.context.product_module.createProductAttribute(

src/e/r/erp5-HEAD/product/ERP5TioSafe/Conduit/TioSafeResourceConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5TioSafe.Conduit.TioSafeBaseConduit import TioSafeBaseConduit
from lxml import etree
 
      # build and browse the list of variations
      variation_list = cartesianProduct(builder_variation_list)
      for var_list in variation_list:
        object.createProductAttribute(id_product=new_id)
            [(base_category, variation)], external_axe_list,
        ]
        variation_list = cartesianProduct(builder_variation_list)
        for var_list in variation_list:
          document.context.product_module.createProductAttribute(

src/e/r/erp5-HEAD/product/ERP5/Document/AssortedResource.py   erp5(Download)
from Products.ERP5Type import Permissions, PropertySheet, Constraint
from Products.ERP5Type.XMLMatrix import XMLMatrix
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5.Document.AmountGeneratorLine import AmountGeneratorLine
from Products.ERP5.Document.TransformedResource import TransformedResource
      tab_category_item_list_list.append(transformation_category_item_list)
      if len(tab_category_item_list_list) > 0:
        product_list = cartesianProduct(tab_category_item_list_list)
        result = []
        for item_list in product_list:
            base_category += [transformation.getCategoryMembershipList(c, base=1)]
      if len(base_category) > 0:
        clist = cartesianProduct(base_category)
        result = []
        for c in clist:

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_prestashop/ExtensionTemplateItem/PrestashopResourceConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5TioSafe.Conduit.TioSafeResourceConduit import TioSafeResourceConduit
from lxml import etree
 
      # build and browse the list of variations
      variation_list = cartesianProduct(builder_variation_list)
      for var_list in variation_list:
        object.createProductAttribute(id_product=new_id)
            [tuple(mapping.split('/', 1))], external_axe_list,
        ]
        variation_list = cartesianProduct(builder_variation_list)
        for var_list in variation_list:
          document.context.product_module.createProductAttribute(

src/e/r/erp5-HEAD/product/ERP5/Document/Resource.py   erp5(Download)
from Products.ERP5Type.UnrestrictedMethod import unrestricted_apply
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5.mixin.variated import VariatedMixin
from Products.CMFCategory.Renderer import Renderer
          variation_list_list.append(variation_list)
 
      return cartesianProduct(variation_list_list)
 
 

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_zencart/ExtensionTemplateItem/ZencartResourceConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5TioSafe.Conduit.TioSafeResourceConduit import TioSafeResourceConduit
from Products.ERP5SyncML.Document.Conflict import Conflict
 
      ## build and browse the list of variations
      variation_list = cartesianProduct(builder_variation_list)
      for var_list in variation_list:
        for variation in var_list:

src/e/r/erp5-HEAD/bt5/erp5_tiosafe_virtuemart/ExtensionTemplateItem/VirtuemartResourceConduit.py   erp5(Download)
##############################################################################
 
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5TioSafe.Conduit.TioSafeResourceConduit import TioSafeResourceConduit
#from Products.ERP5SyncML.Document.Conflict import Conflict
 
      ## build and browse the list of variations
      variation_list = cartesianProduct(builder_variation_list)
      for var_list in variation_list:
        for variation in var_list:

src/e/r/erp5-HEAD/product/ERP5Type/XMLMatrix.py   erp5(Download)
from Products.ERP5Type import Permissions
from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5Type.Base import TempBase
from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter
      if len(id_tuple) == 0:
        return ()
      return cartesianProduct(id_tuple)
 
    security.declareProtected( Permissions.AccessContentsInformation,

  1 | 2  Next