Did I find the right examples for you? yes no

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

src/p/r/Products.TALESField-1.1.3/Products/TALESField/_field.py   Products.TALESField(Download)
    def get(self, instance, **kwargs):
        # Get the Expression
        expr = ObjectField.get(self, instance, **kwargs)
 
        # use a custom context if it has been passed in
    def getRaw(self, instance, **kwargs):
        # Get the Expression
        expr = ObjectField.get(self, instance, **kwargs)
        # Return the expression text
        return getattr(expr, 'text', expr)
    def get(self, instance, **kwargs):
        # Get Expressions
        exprs = ObjectField.get(self, instance, **kwargs)
 
        # use a custom context if it has been passed in
    def getRaw(self, instance, **kwargs):
        # Get Expressions
        exprs = ObjectField.get(self, instance, **kwargs)
        # Return text
        return [getattr(expr, 'text', expr) for expr in exprs]

src/p/r/Products.UserField-3.0/src/Products/UserField/field.py   Products.UserField(Download)
    def get(self, instance, **kwargs):
        return ObjectField.get(self, instance, **kwargs)
 
 
    security.declarePrivate('getRaw')

src/p/r/Products.ECAutoAssessmentBox-1.4.2/Products/ECAutoAssessmentBox/content/DynamicDataField.py   Products.ECAutoAssessmentBox(Download)
            buffer = StringIO.StringIO()
 
            value = ObjectField.get(self, instance, **kwargs) or {}
            for item in value:
                buffer.write(value.get(item, ''))
        else:
            # Return list containing all encoded rows
            value = ObjectField.get(self, instance, **kwargs) or {}
            data = encode(value, instance, **kwargs)
            #log('getxxx: %s' % data)

src/p/r/Products.DataGridField-1.9.0/Products/DataGridField/DataGridField.py   Products.DataGridField(Download)
            buffer = StringIO.StringIO()
 
            value = ObjectField.get(self, instance, **kwargs) or ()
            value = self.resetFixedRows(instance, value)
 
        else:
            # Return list containing all encoded rows
            value = ObjectField.get(self, instance, **kwargs) or ()
            value = self.resetFixedRows(instance, value)
 

src/p/r/Products.ATGoogleMaps-0.7/Products/ATGoogleMaps/field.py   Products.ATGoogleMaps(Download)
    def get(self, instance, **kwargs):
        return ObjectField.get(self, instance, **kwargs)
 
    security.declarePrivate('set')
    def set(self, instance, value, **kwargs):

src/p/r/Products.PloneFormGen-1.7.14/Products/PloneFormGen/content/likertField.py   Products.PloneFormGen(Download)
        """
 
        value = ObjectField.get(self, instance, **kwargs)
        if not value:
            return tuple()

src/p/r/Products.PloneFormGen-HEAD/Products/PloneFormGen/content/likertField.py   Products.PloneFormGen(Download)
        """
 
        value = ObjectField.get(self, instance, **kwargs)
        if not value:
            return tuple()

src/p/r/Products.ATExtensions-1.1/Products/ATExtensions/field/record.py   Products.ATExtensions(Download)
    def get(self, instance, **kwargs):
        value = ObjectField.get(self, instance, **kwargs)
        return self._encode_strings(value, instance, **kwargs)
 
    def _encode_strings(self, value, instance, **kwargs):

src/c/o/collective.arboreal-2.0/collective/arboreal/field.py   collective.arboreal(Download)
    def get(self, instance, **kwargs):
        try:
            path, value = ObjectField.get(self, instance, **kwargs)
        except (TypeError, ValueError): # No value set yet
            return ('','')

src/p/r/Products.Maps-3.3/Products/Maps/field.py   Products.Maps(Download)
    def get(self, instance, **kwargs):
        return ObjectField.get(self, instance, **kwargs)
 
    security.declarePrivate('getRaw')
    def getRaw(self, instance, **kwargs):

  1 | 2  Next