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

All Samples(29)  |  Call(22)  |  Derive(0)  |  Import(7)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Field.py   Products.Archetypes(Download)
from Products.Archetypes.utils import IntDisplayList
from Products.Archetypes.utils import Vocabulary
from Products.Archetypes.utils import className
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
    def getType(self):
        """Return the type of this field as a string"""
        return className(self)
 
    security.declarePublic('getDefault')
    def getStorageType(self, instance=None):
        """Return the type of the storage of this field as a string"""
        return className(self.getStorage(instance))
 
    security.declarePrivate('setContentType')

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Field.py   Products.Archetypes(Download)
from Products.Archetypes.utils import IntDisplayList
from Products.Archetypes.utils import Vocabulary
from Products.Archetypes.utils import className
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
    def getType(self):
        """Return the type of this field as a string"""
        return className(self)
 
    security.declarePublic('getDefault')
    def getStorageType(self, instance=None):
        """Return the type of the storage of this field as a string"""
        return className(self.getStorage(instance))
 
    security.declarePrivate('setContentType')

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Registry.py   Products.Archetypes(Download)
import types
 
from Products.Archetypes.utils import className
from Products.Archetypes.utils import setSecurity
from Products.Archetypes.ArchetypeTool import listTypes
    def __init__(self, klass, default_widget=None,
                 title='', description=''):
        self.id = className(klass)
        self.klass = klass
        default_widget = default_widget or klass._properties.get('widget', None)
        if default_widget is None:
            raise ValueError, '%r Must have a default_widget' % klass
        if type(default_widget) not in [types.StringType, types.UnicodeType]:
            default_widget = className(default_widget)
    def __init__(self, klass, title='', description='', used_for=()):
        self.id = className(klass)
        self.klass = klass
        self.title = title or klass.__name__
        self.description = description or getDoc(klass)
    def __init__(self, klass, title='', description=''):
        self.id = className(klass)
        self.klass = klass
        self.title = title or klass.__name__
        self.description = description or getDoc(klass)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Registry.py   Products.Archetypes(Download)
import types
 
from Products.Archetypes.utils import className
from Products.Archetypes.utils import setSecurity
from Products.Archetypes.ArchetypeTool import listTypes
    def __init__(self, klass, default_widget=None,
                 title='', description=''):
        self.id = className(klass)
        self.klass = klass
        default_widget = default_widget or klass._properties.get('widget', None)
        if default_widget is None:
            raise ValueError, '%r Must have a default_widget' % klass
        if type(default_widget) not in [types.StringType, types.UnicodeType]:
            default_widget = className(default_widget)
    def __init__(self, klass, title='', description='', used_for=()):
        self.id = className(klass)
        self.klass = klass
        self.title = title or klass.__name__
        self.description = description or getDoc(klass)
    def __init__(self, klass, title='', description=''):
        self.id = className(klass)
        self.klass = klass
        self.title = title or klass.__name__
        self.description = description or getDoc(klass)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Widget.py   Products.Archetypes(Download)
from Products.CMFCore.Expression import createExprContext
 
from Products.Archetypes.utils import className
from Products.Archetypes.utils import unique
from Products.Archetypes.utils import capitalize
    def getType(self):
        """Return the type of this field as a string"""
        return className(self)
 
    security.declarePublic('bootstrap')

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Widget.py   Products.Archetypes(Download)
from Products.CMFCore.Expression import createExprContext
 
from Products.Archetypes.utils import className
from Products.Archetypes.utils import unique
from Products.Archetypes.utils import capitalize
    def getType(self):
        """Return the type of this field as a string"""
        return className(self)
 
    security.declarePublic('bootstrap')

src/c/o/collective.easytemplate-0.8.0/collective/easytemplate/fields.py   collective.easytemplate(Download)
from Products.Archetypes.Registry import registerWidget
from Products.Archetypes.debug import log
from Products.Archetypes.utils import className, unique, capitalize
from Products.Archetypes.Field import TextField, ObjectField, encode, decode, registerField