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

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

src/e/r/erp5-HEAD/product/ERP5Type/Core/AcquiredProperty.py   erp5(Download)
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Core.StandardProperty import StandardProperty
from Products.ERP5Type.Utils import UpperCase, evaluateExpressionFromString
from Products.ERP5Type.Accessor.TypeDefinition import list_types
from Products.ERP5Type.Accessor import Base, List, Content, ContentProperty, \
  def asDict(self, expression_context=None):
    property_dict = super(AcquiredProperty, self).asDict(expression_context)
 
    acquisition_portal_type_value = evaluateExpressionFromString(
      expression_context, self.getAcquisitionPortalType())
 
    content_portal_type_value = evaluateExpressionFromString(
      expression_context, self.getContentPortalType())

src/e/r/erp5-HEAD/product/ERP5/Document/CategoryMembershipStateConstraint.py   erp5(Download)
from Products.ERP5Type import PropertySheet
from Products.ERP5Type.Utils import createExpressionContext
from Products.ERP5Type.Utils import evaluateExpressionFromString
 
class CategoryMembershipStateConstraint(ConstraintMixin):
    workflow_state_list_expression = self.getWorkflowStateList()
 
    portal_type_list = evaluateExpressionFromString(expression_context,
                                                   portal_type_list_expression)
    workflow_state_list = evaluateExpressionFromString(expression_context,

src/e/r/erp5-HEAD/product/ERP5/Document/AttributeBlacklistedConstraint.py   erp5(Download)
from Products.ERP5Type import PropertySheet
from Products.ERP5Type.Utils import createExpressionContext
from Products.ERP5Type.Utils import evaluateExpressionFromString
from Products.ERP5Type.Core.PropertyExistenceConstraint import \
    PropertyExistenceConstraint
    blacklisted_list_expression = self.getBlacklistedList()
    expression_context = createExpressionContext(obj)
    blacklisted_list = evaluateExpressionFromString(expression_context,
                                                    blacklisted_list_expression)
    message_id = 'message_invalid_attribute_blacklisted'

src/e/r/erp5-HEAD/product/ERP5Type/Core/DynamicCategoryProperty.py   erp5(Download)
from Products.CMFCore.Expression import Expression
from zLOG import LOG, INFO
from Products.ERP5Type.Utils import evaluateExpressionFromString
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Core.CategoryProperty import CategoryProperty
  def applyOnAccessorHolder(self, accessor_holder, expression_context, portal):
    category_id_list = evaluateExpressionFromString(expression_context,
                                                    self.getCategoryExpression())
 
    if not isinstance(category_id_list, (tuple, list)):

src/e/r/erp5-HEAD/product/ERP5/Document/StringAttributeMatchConstraint.py   erp5(Download)
from Products.ERP5Type import PropertySheet
from Products.ERP5Type.Utils import createExpressionContext
from Products.ERP5Type.Utils import evaluateExpressionFromString
from Products.ERP5Type.Core.PropertyExistenceConstraint import \
    PropertyExistenceConstraint