RelationField( name='pasosAnteriores', inverse_relation_label="Pasos Siguientes", containment="Unspecified", inverse_relation_description= "Pasos que se ejecutaran tras completarse este paso.", description= "Pasos que se ejecutan antes de este paso. Este paso se ejecuta tras completarse alguno de sus pasos anteriores.", relationship='BPDPasosAnteriores', inverse_relation_field_name='pasosSiguientes', sourcestyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", label2="Previous Steps", inverse_relation_description2= "Steps that will execute after the completion of this step.", widget=ReferenceBrowserWidget( label="Pasos Anteriores", label2="Previous Steps", description= "Pasos que se ejecutan antes de este paso. Este paso se ejecuta tras completarse alguno de sus pasos anteriores.", description2= "Steps that execute before this step. This step will execute after the completion of any of its previous steps.", label_msgid= 'gvSIGbpd_BPDPasoConAnteriores_rel_pasosAnteriores_label', description_msgid= 'gvSIGbpd_BPDPasoConAnteriores_rel_pasosAnteriores_help', i18n_domain='gvSIGbpd', ), label="Pasos Anteriores", description2= "Steps that execute before this step. This step will execute after the completion of any of its previous steps.", multiValued=1, inverse_relation_label2="Next Steps", inverse_relationship='BPDPasosSiguientes', write_permission='Modify portal content', additional_columns=['detallesPaso']),
RelationField( name='reglasDeNegocioDerivadas', inverse_relation_label="Politicas de Negocio base", additional_columns=['codigo', 'estado', 'nivelDeImposicion' ], inverse_relation_description= "Politicas de Negocio de las que se deriva la Regla de Negocio", description= "Reglas de Negocio que refinan la Politica de Negocio en terminos decidibles.", relationship='BPDReglasDeNegocioDerivadas', inverse_relation_field_name='politicasDeNegocioBase', inverse_relation_label2="Base Business Policies", label2="Derived Business Rules", inverse_relation_description2= "Business Policies that are the basis of the Business Rule", widget=ReferenceBrowserWidget( label="Reglas de Negocio derivadas", label2="Derived Business Rules", description= "Reglas de Negocio que refinan la Politica de Negocio en terminos decidibles.", description2="Business Rules derived from the Business Policy.", label_msgid= 'gvSIGbpd_BPDPoliticaDeNegocio_rel_reglasDeNegocioDerivadas_label', description_msgid= 'gvSIGbpd_BPDPoliticaDeNegocio_rel_reglasDeNegocioDerivadas_help', i18n_domain='gvSIGbpd', ), write_permission='Modify portal content', label="Reglas de Negocio derivadas", description2="Business Rules derived from the Business Policy.", multiValued=1, deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", containment="Unspecified", inverse_relationship='BPDPoliticasDeNegocioBase', owner_class_name="BPDPoliticaDeNegocio", dependency_supplier=True),
from zope import interface from Products.ATContentTypes.content.file import ATFile from Products.Bungeni.interfaces.ITake import ITake from Products.Relations.field import RelationField from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here from Products.Archetypes.utils import DisplayList from Products.CMFCore.utils import getToolByName ##/code-section module-header schema = Schema((RelationField(name='RotaItem', vocabulary='getRotaItemVocab', widget=ReferenceWidget( macro_edit="rotaitem_edit", label='Rotaitem', label_msgid='Bungeni_label_RotaItem', i18n_domain='Bungeni', ), multiValued=0, relationship='take_rotaitem'), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema Take_schema = BaseFolderSchema.copy() + \ getattr(ATFile, 'schema', Schema(())).copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema
RelationField( name='destinatarios', inverse_relation_label="Destinatario de Envios", additional_columns=['abreviatura'], inverse_relation_description= "Envios que se destinan a este Perfil o Unidad Organizacional.", description= "Perfiles o Unidades Organizacionales a los que se destina el Envio.", relationship='BPDDestinatarios', inverse_relation_field_name='destinatarioDeEnvios', inverse_relation_label2="Receiver of Send steps", label2="Receivers", inverse_relation_description2= "Send process steps addressed to this participant Profile or Organisational Unit.", widget=ReferenceBrowserWidget( label="Destinatarios", label2="Receivers", description= "Perfiles o Unidades Organizacionales a los que se destina el Envio.", description2= "Participant Profiles or Organisational Units to whom this is Sent", label_msgid='gvSIGbpd_BPDEnvio_rel_destinatarios_label', description_msgid='gvSIGbpd_BPDEnvio_rel_destinatarios_help', i18n_domain='gvSIGbpd', ), label="Destinatarios", description2= "Participant Profiles or Organisational Units to whom this is Sent", multiValued=1, containment="Unspecified", inverse_relationship='BPDDestinatarioDeEnvios', owner_class_name="BPDEnvio", deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;"),
from slc.seminarportal import seminarportalMessageFactory as _ from slc.seminarportal.config import PROJECTNAME from slc.seminarportal.interfaces import ISpeech SpeechSchema = atapi.OrderedBaseFolderSchema.copy() + ATEventSchema.copy() + \ atapi.Schema(( RelationField( name='speakers', widget=ReferenceBrowserWidget( label=_(u"label_speech_speakers", default=u'Speaker(s)'), base_query={'portal_type': 'SPSpeaker', 'sort_on': 'getSortableName'}, allow_browse=1, allow_search=1, show_results_without_query=1, image_portal_types=('SPSpeaker',), image_method='image_icon', macro='seminarportal_referencebrowser', ), languageIndependent=True, allowed_types=('SPSpeaker',), multiValued=1, relationship='speech_speakers', ), )) SpeechSchema['description'].widget.label = \ _(u'label_abstract', default=u'Abstract') SpeechSchema['description'].widget.description = \ 'A short abstract, introduction or description of the speech' SpeechSchema['text'].widget.label = \
RelationField( name='ejecutores', inverse_relation_label="Pasos Ejecutados", inverse_relation_description="Pasos de Negocio que se encarga de ejecutar el Perfil o Unidad Organizacional", description="Perfiles y Unidades Organizacionales a cargo de ejecutar el Paso.", relationship='BPDEjecutoresDelPaso', label2="Performers", widget=ReferenceBrowserWidget( label="Ejecutores", label2="Performers", description="Perfiles y Unidades Organizacionales a cargo de ejecutar el Paso.", description2="Participant Profiles and Organisational Units allowed to execute the Step.", label_msgid='gvSIGbpd_BPDPasoGeneral_rel_ejecutores_label', description_msgid='gvSIGbpd_BPDPasoGeneral_rel_ejecutores_help', i18n_domain='gvSIGbpd', ), description2="Participant Profiles and Organisational Units allowed to execute the Step.", inverse_relation_label2="Performed Business Process Steps", deststyle="Owned=0;Navigable=Unspecified;Union=0;Derived=0;AllowDuplicates=0;", write_permission='Modify portal content', inverse_relation_field_name='pasosEjecutados', inverse_relation_description2="Business Process Steps performed by the participant Profile or Organisational Unit.", additional_columns=['abreviatura'], label="Ejecutores", multiValued=1, containment="Unspecified", inverse_relationship='BPDPasosEjecutados', owner_class_name="BPDPasoGeneral" ),
RelationField( name='entradasAProcesosDeNegocio', inverse_relation_label="Artefactos de Entrada", inverse_relation_description= "Artefactos que deben estar disponibles para comenzar el Proceso de Negocio", description= "Entradas a Procesos de Negocio en que el Artefacto debe estar disponible, para poder comenzar la ejecucion.", relationship='BPDEntradasAProcesosDeNegocio', label2="Input to Business Processes", widget=ReferenceBrowserWidget( label="Entrada a Procesos de Negocio", label2="Input to Business Processes", description= "Entradas a Procesos de Negocio en que el Artefacto debe estar disponible, para poder comenzar la ejecucion.", description2= "Inputs to Business Processes where the Artefact must be made available , in order to start execution.", label_msgid= 'gvSIGbpd_BPDArtefacto_rel_entradasAProcesosDeNegocio_label', description_msgid= 'gvSIGbpd_BPDArtefacto_rel_entradasAProcesosDeNegocio_help', i18n_domain='gvSIGbpd', ), description2= "Inputs to Business Processes where the Artefact must be made available , in order to start execution.", sourcestyle= "Navigable=Unspecified;Union=0;Derived=0;AllowDuplicates=0;Owned=0;", inverse_relation_label2="Input Artefacts", dependency_supplier=True, inverse_relation_field_name='artefactosDeEntrada', inverse_relation_description2= "Artefacts required as input to allow the start of the Business Processes.", additional_columns=[ 'codigo', ], write_permission='Modify portal content', label="Entrada a Procesos de Negocio", multiValued=1, containment="Unspecified", inverse_relationship='BPDArtefactosDeEntrada'),
StringField( name='VATNumber', widget=StringWidget( label='VAT number', label_msgid='TKContactManager_label_VATNumber', i18n_domain='TKContactManager', ), schemata="Organisation Details", ), RelationField( name='client', widget=ReferenceBrowserWidget( label='Client', label_msgid='TKContactManager_label_client', i18n_domain='TKContactManager', ), multiValued=1, relationship='suppliers_client' ), RelationField( name='annotations', widget=ReferenceBrowserWidget( label='Annotations', label_msgid='TKContactManager_label_annotations', i18n_domain='TKContactManager', ), multiValued=1, relationship='concerningorganisation_annotations' ),
from Products.FacultyStaffDirectory.config import * from Products.CMFCore.utils import getToolByName from Products.FacultyStaffDirectory.interfaces.department import IDepartment from zope.interface import implements from Products.FacultyStaffDirectory.permissions import ASSIGN_DEPARTMENTS_TO_PEOPLE from Products.FacultyStaffDirectory import FSDMessageFactory as _ schema = Schema( (RelationField(name='members', widget=ReferenceBrowserWidget( label=_("FacultyStaffDirectory_label_members", default="Members"), i18n_domain='FacultyStaffDirectory', allow_browse=0, allow_search=1, show_results_without_query=1, base_query="_search_people_in_this_fsd", startup_directory_method="_get_parent_fsd_path", ), write_permission=ASSIGN_DEPARTMENTS_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=1, relationship='departments_members'), ), ) Department_schema = getattr(PersonGrouping, 'schema', Schema( ())).copy() + schema.copy() class Department(PersonGrouping): """ """
widget=ComputedField._properties['widget']( label='Itemfromwithlead', label_msgid='Bungeni_label_ItemFromWithLead', i18n_domain='Bungeni', )), ComputedField(name='ItemTo', widget=ComputedField._properties['widget']( label='Itemto', label_msgid='Bungeni_label_ItemTo', i18n_domain='Bungeni', )), RelationField(name='Reporter', vocabulary='getReportersForSittingVocab', widget=ReferenceWidget( label='Reporter', label_msgid='Bungeni_label_Reporter', i18n_domain='Bungeni', ), multiValued=0, relationship='rotaitem_reporter'), RelationField(name='Take', widget=ReferenceWidget( label='Take', label_msgid='Bungeni_label_Take', i18n_domain='Bungeni', ), multiValued=1, relationship='rotaitem_take'), ), ) ##code-section after-local-schema #fill in your manual code here
RelationField( name='destinatarioDeEnvios', inverse_relation_label="Destinatarios", additional_columns=[ 'abreviatura', ], inverse_relation_description= "Perfiles o Unidades Organizacionales a los que se destina el Envio.", description= "Envios que se destinan a este Perfil o Unidad Organizacional.", relationship='BPDDestinatarioDeEnvios', inverse_relation_field_name='destinatarios', sourcestyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", inverse_relation_label2="Receivers", label2="Receiver of Send steps", inverse_relation_description2= "Participant Profiles or Organisational Units to whom this is Sent", widget=ReferenceBrowserWidget( label="Destinatario de Envios", label2="Receiver of Send steps", description= "Envios que se destinan a este Perfil o Unidad Organizacional.", description2= "Send process steps addressed to this participant Profile or Organisational Unit.", label_msgid= 'gvSIGbpd_BPDParticipante_rel_destinatarioDeEnvios_label', description_msgid= 'gvSIGbpd_BPDParticipante_rel_destinatarioDeEnvios_help', i18n_domain='gvSIGbpd', ), label="Destinatario de Envios", description2= "Send process steps addressed to this participant Profile or Organisational Unit.", multiValued=1, containment="Unspecified", inverse_relationship='BPDDestinatarios', dependency_supplier=True),
RelationField( name='procesoUsado', inverse_relation_label="Usos como Sub-Proceso de Negocio", additional_columns=['proposito', 'detallesProceso'], inverse_relation_description= "Pasos de otros Procesos de Negocio donde este proceso se ejecuta de principio a fin, como un Paso Sub-Proceso.", description= "Proceso de Negocio que se ejecuta como parte del Proceso de Negocio de mayor alcance.", relationship='BPDProcesoUsado', inverse_relation_field_name='usadoComoSubProcesos', inverse_relation_label2="Used as Sub-Business Process in", label2="Used Business Process", inverse_relation_description2= "Business Processes where this one is used as a Sub-Process", widget=ReferenceBrowserWidget( label="Proceso de Negocio usado", label2="Used Business Process", description= "Proceso de Negocio que se ejecuta como parte del Proceso de Negocio de mayor alcance.", description2= "Business Process executed as part of the current one.", label_msgid='gvSIGbpd_BPDSubProceso_rel_procesoUsado_label', description_msgid='gvSIGbpd_BPDSubProceso_rel_procesoUsado_help', i18n_domain='gvSIGbpd', ), label="Proceso de Negocio usado", description2="Business Process executed as part of the current one.", multiValued=0, containment="Unspecified", inverse_relationship='BPDUsadoComoSubProcesos', owner_class_name="BPDSubProceso", deststyle= "Owned=0;Navigable=Unspecified;Union=0;Derived=0;AllowDuplicates=0;"),
RelationField( name='classifications', vocabulary="_classificationReferences", widget = atapi.RelatedItemsWidget( allow_search = True, allow_browse = True, show_indexes = False, force_close_on_insert = True, label = u"Classifications", label_msgid = "FacultyStaffDirectory_label_classifications", i18n_domain = "FacultyStaffDirectory", visible = {'edit' : 'visible', 'view' : 'visible' }, pattern_options={ 'baseCriteria': [{ 'i': 'portal_type', 'o': 'plone.app.querystring.operation.string.is', 'v': 'FSDClassification', }], 'basePath': '', "contextPath": None, 'selectableTypes': ['FSDClassification', ], 'placeholder': _(u'Begin typing a name'), }, ), write_permission=ASSIGN_CLASSIFICATIONS_TO_PEOPLE, schemata="Basic Information", multiValued=True, relationship='people_classifications' ),
RelationField( name='herramientasDocumentadas', inverse_relation_label="Instrucciones", additional_columns=[ 'proposito', 'detallesProceso', ], inverse_relation_description= "Instrucciones acerca de como utilizar la Herramienta para alcanzar un objetivo, expresado como un proceso con entradas, pasos y salidas.", description= "Herramientas cuya utilizacion se documenta en este proceso.", relationship='BPDHerramientasDocumentadas', inverse_relation_field_name='instrucciones', sourcestyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", inverse_relation_label2="Instructions", label2="Documented Tools", inverse_relation_description2= "Instructions about how to use the Tool to accomplish a goal, expressed as a process with inputs, steps and outputs.", widget=ReferenceBrowserWidget( label="Herramientas Documentadas", label2="Documented Tools", description= "Herramientas cuya utilizacion se documenta en este proceso.", description2="Tools whose usage is documented in this process.", label_msgid= 'gvSIGbpd_BPDProcesoDeNegocio_rel_herramientasDocumentadas_label', description_msgid= 'gvSIGbpd_BPDProcesoDeNegocio_rel_herramientasDocumentadas_help', i18n_domain='gvSIGbpd', ), label="Herramientas Documentadas", description2="Tools whose usage is documented in this process.", multiValued=1, containment="Unspecified", inverse_relationship='BPDInstrucciones', dependency_supplier=True),
RelationField( name='artefactosDeSalida', inverse_relation_label="Salidas de Procesos de Negocio", inverse_relation_description= "Procesos de Negocio donde el Artefacto se produce como Salida, tras el final exitoso de la ejecucion.", description= "Artefactos producidos como Salida al finalizar exitosamente el Proceso de Negocio.", relationship='BPDArtefactosDeSalida', label2="Output Artefacts", widget=ReferenceBrowserWidget( label="Artefactos de Salida", label2="Output Artefacts", description= "Artefactos producidos como Salida al finalizar exitosamente el Proceso de Negocio.", description2= "Artefacts produced as outcomes of successfully completed Business Processes.", label_msgid='gvSIGbpd_BPDSalida_rel_artefactosDeSalida_label', description_msgid='gvSIGbpd_BPDSalida_rel_artefactosDeSalida_help', i18n_domain='gvSIGbpd', ), description2= "Artefacts produced as outcomes of successfully completed Business Processes.", inverse_relation_label2="Business Process Outputs", deststyle= "Navigable=Unspecified;Union=0;Derived=0;AllowDuplicates=0;Owned=0;", write_permission='Modify portal content', inverse_relation_field_name='salidasDeProcesosDeNegocio', inverse_relation_description2= "Business Processes where the Artefact is made available as Output, upon successful completion.", additional_columns=['codigo'], label="Artefactos de Salida", multiValued=1, containment="Unspecified", inverse_relationship='BPDSalidasDeProcesosDeNegocio', owner_class_name="BPDSalida"),
from Products.membrane.at.interfaces import IPropertiesProvider from Products.FacultyStaffDirectory.interfaces.classification import IClassification from Acquisition import aq_inner, aq_parent from Products.FacultyStaffDirectory.permissions import ASSIGN_CLASSIFICATIONS_TO_PEOPLE from Products.FacultyStaffDirectory import FSDMessageFactory as _ from DateTime import DateTime schema = Schema( (RelationField(name='people', widget=ReferenceBrowserWidget( label=_(u"FacultyStaffDirectory_label_people", default=u"People"), i18n_domain='FacultyStaffDirectory', allow_browse=0, allow_search=1, show_results_without_query=1, base_query="_search_people_in_this_fsd", startup_directory_method="_get_parent_fsd_path", ), write_permission=ASSIGN_CLASSIFICATIONS_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=1, relationship='classifications_people'), ), ) Classification_schema = getattr(PersonGrouping, 'schema', Schema( ())).copy() + schema.copy() class Classification(PersonGrouping): """ """
RelationField( name='datosDePruebas', inverse_relation_label="Datos de Pruebas", inverse_relation_description= "Datos de Pruebas definidos para este elemento de proceso en varios Casos de Pruebas.", description= "Elementos del Proceso de Negocio para los que se definen Datos de Prueba en el Caso de Prueba.", relationship='DatosDePrueba_ElementosProceso', inverse_relation_field_name='elementosDeProceso', inverse_relation_label2="Test Data", label2="Process Elements", inverse_relation_description2= "Test Data defined for this process element in various Test Cases.", widget=ReferenceBrowserWidget( label="Elementos de Proceso", label2="Process Elements", description= "Elementos del Proceso de Negocio para los que se definen Datos de Prueba en el Caso de Prueba.", description2= "Business Process elements for which Test Data is defined in the Test Case.", label_msgid='gvSIGbpd_BPDConDatosDePrueba_rel_datosDePruebas_label', description_msgid= 'gvSIGbpd_BPDConDatosDePrueba_rel_datosDePruebas_help', i18n_domain='gvSIGbpd', ), write_permission='Modify portal content', label="Elementos de Proceso", description2= "Business Process elements for which Test Data is defined in the Test Case.", multiValued=1, deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", containment="Unspecified", inverse_relationship='ElementosProceso_DatosDePrueba', owner_class_name="BPDConDatosDePrueba", dependency_supplier=True),
RelationField( name='people', widget=atapi.RelatedItemsWidget( allow_search=True, allow_browse=True, show_indexes=False, force_close_on_insert=True, label=u"People", label_msgid="FacultyStaffDirectory_label_people", i18n_domain="FacultyStaffDirectory", visible={ 'edit': 'visible', 'view': 'visible' }, pattern_options={ 'baseCriteria': [{ 'i': 'portal_type', 'o': 'plone.app.querystring.operation.string.is', 'v': 'FSDPerson', }], 'basePath': '', "contextPath": None, 'selectableTypes': [ 'FSDPerson', ], 'placeholder': _(u'Begin typing a name'), }, ), write_permission=ASSIGN_SPECIALTIES_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=True, relationship= 'SpecialtyInformation' # weird relationship name is ArchGenXML's fault ),
RelationField( name='escenario', inverse_relation_label="Escenario", inverse_relation_description= "Escenario para el que se definen los conjuntos de valores.", description= "Casos de Prueba definiendo conjuntos de valores concretos para el Escenario contenedor.", relationship='CasosDePrueba_Escenario', inverse_relation_field_name='casosDePrueba', inverse_relation_label2="Scenario", label2="Test Cases", inverse_relation_description2= "Scenario for which concreate value sets are defined.", widget=ReferenceBrowserWidget( label="Casos de Prueba", label2="Test Cases", description= "Casos de Prueba definiendo conjuntos de valores concretos para el Escenario contenedor.", description2= "Test Cases defining concrete data sets of values for the container Scenario.", label_msgid='gvSIGbpd_BPDCasoDePrueba_rel_escenario_label', description_msgid='gvSIGbpd_BPDCasoDePrueba_rel_escenario_help', i18n_domain='gvSIGbpd', ), write_permission='Modify portal content', label="Casos de Prueba", description2= "Test Cases defining concrete data sets of values for the container Scenario.", multiValued=0, deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", containment="Unspecified", inverse_relationship='Escenario_CasosDePrueba', owner_class_name="BPDCasoDePrueba", dependency_supplier=True),
from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here ##/code-section module-header schema = Schema(( StringField(name='shortTitle', widget=StringWidget( label='Shorttitle', label_msgid='Bungeni_label_shortTitle', i18n_domain='Bungeni', )), RelationField(name='ministrys', widget=ReferenceWidget( label='Ministrys', label_msgid='Bungeni_label_ministrys', i18n_domain='Bungeni', ), multiValued=1, relationship='supersedes'), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema Ministry_schema = BaseFolderSchema.copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema
name='scheduledDate') copied_fields[ 'scheduledDate'].read_permission = "Bungeni: Schedule parliamentary business" copied_fields['scheduledDate'].mutator = "setScheduledDate" copied_fields['scheduledDate'].accessor = "getScheduledDate" copied_fields[ 'scheduledDate'].write_permission = "Bungeni: Schedule parliamentary business" copied_fields['scheduledDate'].edit_accessor = "getRawScheduledDate" copied_fields['scheduledDate'].widget.label = "Scheduled date" schema = Schema(( copied_fields['tabledDate'], copied_fields['scheduledDate'], RelationField(name='questions', widget=ReferenceWidget( label='Questions', label_msgid='Bungeni_label_questions', i18n_domain='Bungeni', ), multiValued=0, relationship='agendaitem_question'), RelationField(name='motions', widget=ReferenceWidget( label='Motions', label_msgid='Bungeni_label_motions', i18n_domain='Bungeni', ), multiValued=0, relationship='agendaitem_motion'), RelationField(name='bills', widget=ReferenceWidget( label='Bills', label_msgid='Bungeni_label_bills',
widget=OrderableReferenceField._properties['widget']( label='Availablereporters', label_msgid='Bungeni_label_AvailableReporters', i18n_domain='Bungeni', ), allowed_types=[ 'Staff', ], relationship="rotatool_availablereporters", relation_implementation="basic"), RelationField(name='RotaSubscribers', widget=ReferenceWidget( label='Rotasubscribers', label_msgid='Bungeni_label_RotaSubscribers', i18n_domain='Bungeni', ), relationship='rotatool_rotasubscribers', multiValued=1, vocabulary='getRotaSubscribersVocab', default_method='setRotaSubscribersDefault', allowed_types="['MemberOfParliament', 'Staff']"), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema RotaTool_schema = BaseSchema.copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema
StringField( name='duration', widget=SelectionWidget( label='Duration', label_msgid='Bungeni_label_duration', i18n_domain='Bungeni', ), vocabulary=['parliament', 'annual'] ), RelationField( name='DeputyChairperson', vocabulary='getMembershipVocab', widget=ReferenceWidget( label='Deputychairperson', label_msgid='Bungeni_label_DeputyChairperson', i18n_domain='Bungeni', ), allowed_types=['MemberOfParliament', 'Staff'], multiValued=1, relationship='committee_deputychairperson' ), RelationField( name='Secretary', vocabulary='getMembershipVocab', widget=ReferenceWidget( label='Secretary', label_msgid='Bungeni_label_Secretary', i18n_domain='Bungeni', ), allowed_types=['MemberOfParliament', 'Staff'],
VIEW_SECURITY_PERMISSION, EDIT_PASSWORD_PERMISSION, \ EDIT_SECURITY_PERMISSION, MAIL_PASSWORD_PERMISSION, \ ADD_MEMBER_PERMISSION from AccessControl import ModuleSecurityInfo from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here ##/code-section module-header schema = Schema(( RelationField( name='constituencys', widget=ReferenceWidget( label='Constituencys', label_msgid='Bungeni_label_constituencys', i18n_domain='Bungeni', ), multiValued=0, relationship='memberofparliament_constituency' ), RelationField( name='portfolios', widget=ReferenceWidget( label='Portfolios', label_msgid='Bungeni_label_portfolios', i18n_domain='Bungeni', ), multiValued=1, relationship='notminister_portfolio' ),
RelationField( name='referentes', inverse_relation_label="Elementos Referenciados", inverse_relation_description= "Elementos de la aplicacion referidos desde este elemento.", description= "Elementos de la aplicacion que refieren al presente elemento.", relationship='BPDReferentes', label2="Refering elements", widget=ReferenceBrowserWidget( label="Elementos Referentes", label2="Refering elements", description= "Elementos de la aplicacion que refieren al presente elemento.", description2="Application elements referencing this one.", label_msgid= 'gvSIGbpd_BPDArquetipoReferenciable_rel_referentes_label', description_msgid= 'gvSIGbpd_BPDArquetipoReferenciable_rel_referentes_help', i18n_domain='gvSIGbpd', ), description2="Application elements referencing this one.", sourcestyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", inverse_relation_label2="Referenced elements", dependency_supplier=True, inverse_relation_field_name='referidos', inverse_relation_description2= "Elements in the application referenced by this element.", write_permission='Modify portal content', label="Elementos Referentes", multiValued=1, containment="Unspecified", inverse_relationship='BPDReferidos'),
RelationField( name='elementosDerivados', inverse_relation_label="Elementos Base", inverse_relation_description= "Elementos a partir de los cuales se ha derivado el actual.", description="Elementos que han sido derivados a partir del actual.", relationship='BPDElementosDerivados', inverse_relation_field_name='elementosBase', inverse_relation_label2="Base Elements", label2="Derived Elements", inverse_relation_description2= "Elements from whish this one has been derived.", widget=ReferenceBrowserWidget( label="Elementos Derivados", label2="Derived Elements", description="Elementos que han sido derivados a partir del actual.", description2="Elements that have been derived from this one.", label_msgid='gvSIGbpd_BPDElemento_rel_elementosDerivados_label', description_msgid= 'gvSIGbpd_BPDElemento_rel_elementosDerivados_help', i18n_domain='gvSIGbpd', ), write_permission='Modify portal content', label="Elementos Derivados", description2="Elements that have been derived from this one.", multiValued=1, deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", containment="Unspecified", inverse_relationship='BPDElementosBase', owner_class_name="BPDElemento", dependency_supplier=True),
from zope.interface import implements #from zope.i18nmessageid import MessageFactory #_ = MessageFactory('FacultyStaffDirectory') from Products.FacultyStaffDirectory import FSDMessageFactory as _ schema = Schema( ( RelationField( name='people', widget=ReferenceBrowserWidget( label=_(u"FacultyStaffDirectory_label_people", default=u"People"), i18n_domain='FacultyStaffDirectory', allow_browse=0, allow_search=1, show_results_without_query=1, base_query="_search_people_in_this_fsd", startup_directory_method="_get_parent_fsd_path", ), write_permission=ASSIGN_SPECIALTIES_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=True, relationship= 'SpecialtyInformation' # weird relationship name is ArchGenXML's fault ), ImageField( name='overviewImage', schemata='Overview', widget=ImageWidget( label=_( u"FacultyStaffDirectory_label_overview_image", default=u"Overview image (used for specialty overview view)"
schema = Schema((RelationField( name='referidosCualificados', inverse_relation_label="Referentes Cualificados", inverse_relation_description= "Referencias Cualificadas refiriendo a este elemento.", description="Elementos referidos desde esta Referencia Cualificada.", relationship='BPDReferidosCualificados', label2="Refered Elements", widget=ReferenceBrowserWidget( label="Elementos cualificadamente Referidos", label2="Refered Elements", description="Elementos referidos desde esta Referencia Cualificada.", description2="Elements refered to by this qualified Reference.", label_msgid= 'gvSIGbpd_BPDReferenciaCualificada_rel_referidosCualificados_label', description_msgid= 'gvSIGbpd_BPDReferenciaCualificada_rel_referidosCualificados_help', i18n_domain='gvSIGbpd', ), description2="Elements refered to by this qualified Reference.", inverse_relation_label2="Refering Qualified References", deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", write_permission='Modify portal content', inverse_relation_field_name='referentesCualificados', inverse_relation_description2= "Qualified References referencing this element.", label="Elementos cualificadamente Referidos", multiValued=1, containment="Unspecified", inverse_relationship='BPDReferentesCualificados', owner_class_name="BPDReferenciaCualificada"), ), )
schema = Schema(( RelationField( name='members', widget = RelatedItemsWidget( allow_search = True, allow_browse = True, show_indexes = False, force_close_on_insert = True, label = u"Members", label_msgid = "FacultyStaffDirectory_label_members", i18n_domain = "FacultyStaffDirectory", visible = {'edit' : 'visible', 'view' : 'visible' }, pattern_options={ 'baseCriteria': [{ 'i': 'portal_type', 'o': 'plone.app.querystring.operation.string.is', 'v': 'FSDPerson', }], 'basePath': '', "contextPath": None, 'selectableTypes': ['FSDPerson', ], 'placeholder': _(u'Begin typing a name'), }, ), write_permission=ASSIGN_DEPARTMENTS_TO_PEOPLE, allowed_types=('FSDPerson',), multiValued=1, relationship='departments_members' ), ), )
RelationField( name='puntosExtension', inverse_relation_label="Extensiones Procesos", additional_columns=['tituloProcesoDeNegocio'], inverse_relation_description= "Extensiones de Procesos de Negocio insertando comportamiento en este Punto de Extension.", description= "El Punto de Extension en el Proceso de Negocio que se extiende insertando el comportamiento de este Proceso de Negocio.", relationship='BPDPuntosExtension', inverse_relation_field_name='extensionesProcesos', inverse_relation_label2="Process Extensions", label2="Extension Points", inverse_relation_description2= "Business Process Extensions inserting behavior in this Extension Point.", widget=ReferenceBrowserWidget( label="Puntos de Extension", label2="Extension Points", description= "El Punto de Extension en el Proceso de Negocio que se extiende insertando el comportamiento de este Proceso de Negocio.", description2= "The Extension Point in the Business Process that is being extended by inserting the behavior of this Business Process.", label_msgid= 'gvSIGbpd_BPDExtensionProceso_rel_puntosExtension_label', description_msgid= 'gvSIGbpd_BPDExtensionProceso_rel_puntosExtension_help', i18n_domain='gvSIGbpd', ), label="Puntos de Extension", description2= "The Extension Point in the Business Process that is being extended by inserting the behavior of this Business Process.", multiValued=1, containment="Unspecified", inverse_relationship='BPDExtensionesProcesos', owner_class_name="BPDExtensionProceso", deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;"),