from Products.ATReferenceBrowserWidget.ATReferenceBrowserWidget import ReferenceBrowserWidget #from Products.ATVocabularyManager.namedvocabulary import NamedVocabulary procediment_kbpuc_Schema = ATDocumentSchema.copy() + atapi.Schema(( atapi.TextField('informacio', required=False, searchable=True, storage = atapi.AnnotationStorage(migrate=True), validators = ('isTidyHtmlWithCleanup',), #validators = ('isTidyHtml',), default_output_type = 'text/x-html-safe', widget = atapi.RichWidget( i18n_domain='upc.genweb.kbpuc', label=_(u'label_informacio_entrada', default=u'Informació entrada'), rows = 25, allow_file_upload = zconf.ATDocument.allow_document_upload), schemata="default", ), atapi.LinesField( name='producte', widget=atapi.MultiSelectionWidget( format="select", label = _(u'label_producte', default=u'Producte'), i18n_domain='upc.genweb.kbpuc', ), languageIndependent=True, multiValued=False, schemata="default",
widget=atapi.InAndOutWidget( label="Llista de Serveis", label_msgid="upc.genweb.kbpuc.llista_serveis", description="Seleccionar els serveis de la llista.", description_msgid="upc.genweb.kbpuc.llista_serveis_descr", i18n_domain = "upc.genweb.kbpuc"), ), atapi.StringField( name = 'servei', required = False, searchable = False, languageIndependent=True, default = "getServei", widget = atapi.StringWidget( label = _(u'label_servei', default=u'Servei'), i18n_domain='upc.genweb.kbpuc', visible = {'view': 'hidden','edit': 'hidden'} ), schemata="default", ), atapi.StringField( name = 'categoria', required = False, searchable = False, languageIndependent=True, default = "getCategoria", widget = atapi.StringWidget( label = _(u'label_categoria', default=u'Categoria'), i18n_domain='upc.genweb.kbpuc',
# from Products.ATVocabularyManager.namedvocabulary import NamedVocabulary infogeneral_kbpuc_Schema = ATDocumentSchema.copy() + atapi.Schema( ( atapi.TextField( "text", required=False, searchable=True, storage=atapi.AnnotationStorage(migrate=True), validators=("isTidyHtmlWithCleanup",), # validators = ('isTidyHtml',), default_output_type="text/x-html-safe", widget=atapi.RichWidget( i18n_domain="upc.genweb.kbpuc", label=_(u"label_info_contingut", default=u"Contingut"), rows=25, allow_file_upload=zconf.ATDocument.allow_document_upload, ), schemata="default", ), atapi.LinesField( name="producte", widget=atapi.MultiSelectionWidget( format="select", label=_(u"label_producte", default=u"Producte"), description=_(u"label_producte_descr", default=u"Seleccionar el producte o productes relacionats"), i18n_domain="upc.genweb.kbpuc", ), languageIndependent=True, multiValued=False,