Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(16) | Call(10) | Derive(0) | Import(6)
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 registerField(klass, **kw): setSecurity(klass, defaultAccess='allow', objectPermission=None) field = FieldDescription(klass, **kw) fieldDescriptionRegistry.register(field.id, field) widgetDescriptionRegistry = Registry(WidgetDescription) availableWidgets = widgetDescriptionRegistry.items def registerWidget(klass, **kw): setSecurity(klass, defaultAccess='allow', objectPermission=None)
def registerStorage(klass, **kw): setSecurity(klass, defaultAccess=None, objectPermission=None) storage = StorageDescription(klass, **kw) storageDescriptionRegistry.register(storage.id, storage)
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 registerField(klass, **kw): setSecurity(klass, defaultAccess='allow', objectPermission=None) field = FieldDescription(klass, **kw) fieldDescriptionRegistry.register(field.id, field) widgetDescriptionRegistry = Registry(WidgetDescription) availableWidgets = widgetDescriptionRegistry.items def registerWidget(klass, **kw): setSecurity(klass, defaultAccess='allow', objectPermission=None)
def registerStorage(klass, **kw): setSecurity(klass, defaultAccess=None, objectPermission=None) storage = StorageDescription(klass, **kw) storageDescriptionRegistry.register(storage.id, storage)
src/c/o/collective.table-1.1.1/collective/table/source.py collective.table(Download)
from Products.Archetypes.Storage import Storage from Products.Archetypes.interfaces import IBaseObject from Products.Archetypes.utils import setSecurity from collective.table.interfaces import ITableField from zope import component
raise NotImplementedError() setSecurity(BaseSource)
src/c/o/collective.table-1.1.1/collective/table/local.py collective.table(Download)
# -*- coding: utf-8 -*- """Simple, local ZODB source of a table.""" from AccessControl import ClassSecurityInfo from Products.Archetypes.utils import setSecurity
setSecurity(LocalSource)
src/c/o/collective.table-HEAD/collective/table/source.py collective.table(Download)
from Products.Archetypes.Storage import Storage from Products.Archetypes.interfaces import IBaseObject from Products.Archetypes.utils import setSecurity from collective.table.interfaces import ITableField from zope import component
raise NotImplementedError() setSecurity(BaseSource)
src/c/o/collective.table-HEAD/collective/table/local.py collective.table(Download)
# -*- coding: utf-8 -*- """Simple, local ZODB source of a table.""" from AccessControl import ClassSecurityInfo from Products.Archetypes.utils import setSecurity
setSecurity(LocalSource)