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

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

src/a/r/archetypes.searchwidget-0.1.8/src/archetypes/searchwidget/demo.py   archetypes.searchwidget(Download)
from Products.ATContentTypes.content.base import ATCTContent as BaseContent
 
from archetypes.searchwidget.widget import SearchWidget
 
schema = BaseSchema.copy() +  Schema((
        relationship='Rel1',
        widget=SearchWidget(
            description='This is the first field. Pick an object.')),
 
    ReferenceField('multi',
        multiValued=1,
        allowed_types=('Document','File', 'RefBrowserDemo'),
        relationship='Rel1',
        widget=SearchWidget(
            description='This is the first field. Pick an object.')),

src/a/r/archetypes.searchwidget-0.1.8/src/archetypes/searchwidget/__init__.py   archetypes.searchwidget(Download)
from Products.Archetypes.atapi import process_types, listTypes
from Products.CMFCore.permissions import AddPortalContent
from archetypes.searchwidget.widget import SearchWidget
 
def initialize(context):