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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/a/r/archetypes.rolefield-0.1-a1/archetypes/rolefield/example/demo.py   archetypes.rolefield(Download)
from Products.Archetypes import public as atapi
from archetypes.rolefield import RoleField
 
from Products.ATContentTypes.content.base import ATCTContent
from Products.ATContentTypes.content.schemata import ATContentTypeBaseSchema
    schema = ATContentTypeBaseSchema.copy() + atapi.Schema((
        RoleField(
            'team',
            role = 'Owner',
            widget = atapi.MultiSelectionWidget(