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

All Samples(6)  |  Call(0)  |  Derive(4)  |  Import(2)

src/e/r/erp5-HEAD/product/ERP5Type/Accessor/Base.py   erp5(Download)
from ZPublisher.HTTPRequest import FileUpload
from TypeDefinition import type_definition, list_types, ATTRIBUTE_PREFIX
from Accessor import Accessor as Method
from Acquisition import aq_base
from zLOG import LOG
class Setter(Method):
    """
      Sets an attribute value. ATTRIBUTE_PREFIX and storage_id allow
      a simple form of data access parametrisations
    """
class Getter(Method):
    """
    Gets an attribute value. A default value can be provided if needed.
 
    Note that 'default' argument is the first positional argument, this is
class Tester(Method):
    """
      Tests if an attribute value exists
    """
    _need__name__=1

src/e/r/erp5-HEAD/product/ERP5Type/Accessor/Constant.py   erp5(Download)
##############################################################################
 
from Accessor import Accessor
 
# Creation of default constructor
class Getter(Accessor):
  """
  Returns a constant value, either by method call
  or through type cast (ex. boolean, int, float).
  This method can be useful to turn existing constant