RelationField( name='pasosSiguientes', inverse_relation_label="Pasos Anteriores", inverse_relation_description= "Pasos que se ejecutan antes de este paso. Este paso se ejecuta tras completarse alguno de sus pasos anteriores.", description="Pasos que se ejecutaran tras completarse este paso.", relationship='BPDPasosSiguientes', label2="Next Steps", widget=ReferenceBrowserWidget( label="Pasos Siguientes", label2="Next Steps", description="Pasos que se ejecutaran tras completarse este paso.", description2= "Steps that will execute after the completion of this step.", label_msgid= 'gvSIGbpd_BPDPasoConSiguientes_rel_pasosSiguientes_label', description_msgid= 'gvSIGbpd_BPDPasoConSiguientes_rel_pasosSiguientes_help', i18n_domain='gvSIGbpd', ), description2= "Steps that will execute after the completion of this step.", inverse_relation_label2="Previous Steps", deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", write_permission='Modify portal content', inverse_relation_field_name='pasosAnteriores', inverse_relation_description2= "Steps that execute before this step. This step will execute after the completion of any of its previous steps.", additional_columns=['detallesPaso'], label="Pasos Siguientes", multiValued=1, containment="Unspecified", inverse_relationship='BPDPasosAnteriores', owner_class_name="BPDPasoConSiguientes"),
from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin from Products.Archetypes.ReferenceEngine import ContentReferenceCreator from Products.Relations.field import RelationField from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here ##/code-section module-header schema = Schema(( RelationField( name='Minister', widget=ReferenceWidget( label='Minister', label_msgid='Bungeni_label_Minister', i18n_domain='Bungeni', ), multiValued=1, relationship='portfolio_minister' ), RelationField( name='AssistentMinister', widget=ReferenceWidget( label='Assistentminister', label_msgid='Bungeni_label_AssistentMinister', i18n_domain='Bungeni', ), multiValued=1, relationship='portfolio_assistentminister' ),
from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here ##/code-section module-header schema = Schema(( BooleanField(name='requireWrittenAnswer', widget=BooleanField._properties['widget']( label="Require written answer?", label_msgid='Bungeni_label_requireWrittenAnswer', i18n_domain='Bungeni', )), RelationField(name='respondents', widget=ReferenceWidget( label='Respondents', label_msgid='Bungeni_label_respondents', i18n_domain='Bungeni', ), multiValued=1, relationship='Question_MemberOfParliament'), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema Question_schema = BaseFolderSchema.copy() + \ getattr(ParliamentaryEvent, 'schema', Schema(())).copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema
VIEW_PUBLIC_PERMISSION, EDIT_ID_PERMISSION, \ EDIT_PROPERTIES_PERMISSION, VIEW_OTHER_PERMISSION, \ 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='portfolios', widget=ReferenceWidget( label='Portfolios', label_msgid='Bungeni_label_portfolios',
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'
RelationField( name='pasosAplicandoLaRegla', inverse_relation_label="Reglas de Negocio aplicadas", inverse_relation_description= "Reglas de Negocio aplicadas durante la ejecucion del Paso.", description= "Pasos de Procesos de Negocio donde se aplica la Regla de Negocio", relationship='BPDPasosAplicandoLaRegla', label2="Business Process Steps applying the Business Rule", widget=ReferenceBrowserWidget( label="Pasos dirigidos", label2="Business Process Steps applying the Business Rule", description= "Pasos de Procesos de Negocio donde se aplica la Regla de Negocio", description2="Business Process Steps applying the Business Rule.", label_msgid= 'gvSIGbpd_BPDReglaDeNegocio_rel_pasosAplicandoLaRegla_label', description_msgid= 'gvSIGbpd_BPDReglaDeNegocio_rel_pasosAplicandoLaRegla_help', i18n_domain='gvSIGbpd', ), description2="Business Process Steps applying the Business Rule.", sourcestyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", inverse_relation_label2="Applied Business Rules", dependency_supplier=True, inverse_relation_field_name='reglasDeNegocioAplicadas', inverse_relation_description2= "Business Rules applicable in the Business Process Steps.", additional_columns=[ 'codigo', ], write_permission='Modify portal content', label="Pasos dirigidos", multiValued=1, containment="Unspecified", inverse_relationship='BPDReglasDeNegocioAplicadas'),
), RelationField( name='originalDeTraduccion', inverse_relation_label="Elementos Traducidos", containment="Unspecified", inverse_relation_description="Traducciones de este elemento a otros idiomas.", description="El elemento original de esta traduccion a otro idioma.", relationship='BPDOriginalDeTraduccion', inverse_relation_field_name='elementosTraducidos', sourcestyle="Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", label2="Original of this translation", inverse_relation_description2="Translations of this element into other languages.", widget=ReferenceBrowserWidget( label="Original de esta Traduccion", label2="Original of this translation", description="El elemento original de esta traduccion a otro idioma.", description2="The original element of this translation into a different language.", label_msgid='gvSIGbpd_BPDConTraducciones_rel_originalDeTraduccion_label', description_msgid='gvSIGbpd_BPDConTraducciones_rel_originalDeTraduccion_help', i18n_domain='gvSIGbpd', ), label="Original de esta Traduccion", description2="The original element of this translation into a different language.", multiValued=0, inverse_relation_label2="Translated Elements", inverse_relationship='BPDElementosTraducidos', write_permission='Modify portal content' ), StringField(
RelationField( name='pasosRequeridos', inverse_relation_label="Plazos a cumplir", inverse_relation_description= "Plazos en los que este Paso debe ejecutarse.", description= "Pasos que deben ejecutarse dentro del Plazo. Son los pasos que se espera que acontezcan en el tiempo de espera indicado.", relationship='BPDPasosRequeridosEnPlazo', label2="Required steps", widget=ReferenceBrowserWidget( label="Pasos requeridos", label2="Required steps", description= "Pasos que deben ejecutarse dentro del Plazo. Son los pasos que se espera que acontezcan en el tiempo de espera indicado.", description2= "Steps that must execute whithin the Deadline. It is what the Deadline actually expects and waits to happen.", label_msgid='gvSIGbpd_BPDPlazo_rel_pasosRequeridos_label', description_msgid='gvSIGbpd_BPDPlazo_rel_pasosRequeridos_help', i18n_domain='gvSIGbpd', ), description2= "Steps that must execute whithin the Deadline. It is what the Deadline actually expects and waits to happen.", inverse_relation_label2="Deadlines to meet", deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", write_permission='Modify portal content', inverse_relation_field_name='requeridoEnPlazos', inverse_relation_description2= "Deadlines by which this step must execute.", additional_columns=['detallesPaso'], label="Pasos requeridos", multiValued=1, containment="Unspecified", inverse_relationship='BPDRequeridosEnPlazos', owner_class_name="BPDPlazo"),
from Products.Bungeni.groups.BungeniTeam import BungeniTeam from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin from Products.Relations.field import RelationField from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here from Products.TeamSpace.permissions import * ##/code-section module-header schema = Schema(( RelationField(name='Chairperson', vocabulary='getMembershipVocab', widget=ReferenceWidget( label='Chairperson', label_msgid='Bungeni_label_Chairperson', i18n_domain='Bungeni', ), multiValued=0, relationship='office_chairperson'), RelationField(name='DeputyChairperson', vocabulary='getMembershipVocab', widget=ReferenceWidget( label='Deputychairperson', label_msgid='Bungeni_label_DeputyChairperson', i18n_domain='Bungeni', ), multiValued=0, relationship='office_deputychairperson'), RelationField(name='Secretary', vocabulary='getMembershipVocab',
widget=RichWidget( label='Biography', label_msgid='TKContactManager_label_biography', i18n_domain='TKContactManager', ), default_output_type='text/html', schemata="Personal Details", searchable=1 ), RelationField( name='employers', widget=ReferenceBrowserWidget( label='Employers', label_msgid='TKContactManager_label_employers', i18n_domain='TKContactManager', ), multiValued=1, relationship='employees_employers', schemata='Business Structure' ), RelationField( name='reportingTo', widget=ReferenceBrowserWidget( label='Reporting to', label_msgid='TKContactManager_label_reportingTo', i18n_domain='TKContactManager', ), multiValued=1, relationship='manages_reportingto',
RelationField( name='tiposDeArtefactos', inverse_relation_label="Caracteristicas del Tipo", inverse_relation_description="Caracteristicas de Clase Referencia o Agregacion que estan restringidas a Artefactos de este tipo.", description="Si la Clase de Caracteristica es Referencia o Agregacion, entonces restringe los tipos de Artefactos referenciados o agregados.", relationship='BPDTiposDeCaracteristicas', label2="Artefact Types", widget=ReferenceBrowserWidget( label="Tipos de Artefactos", label2="Artefact Types", description="Si la Clase de Caracteristica es Referencia o Agregacion, entonces restringe los tipos de Artefactos referenciados o agregados.", description2="If the Feature Class is Reference or Aggregation, then constrains the types of Artefacts that can be referenced or aggregated.", label_msgid='gvSIGbpd_BPDCaracteristica_rel_tiposDeArtefactos_label', description_msgid='gvSIGbpd_BPDCaracteristica_rel_tiposDeArtefactos_help', i18n_domain='gvSIGbpd', ), description2="If the Feature Class is Reference or Aggregation, then constrains the types of Artefacts that can be referenced or aggregated.", inverse_relation_label2="Features of the Type", deststyle="Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", write_permission='Modify portal content', inverse_relation_field_name='caracteristicasDelTipo', inverse_relation_description2="Features of Reference or Aggregation Class constrained to Artefacts of this type.", additional_columns=['codigo'], label="Tipos de Artefactos", multiValued=1, containment="Unspecified", inverse_relationship='BPDCaracteristicasDelTipo', owner_class_name="BPDCaracteristica" ),
from Products.Bungeni.config import * ##code-section module-header #fill in your manual code here ##/code-section module-header schema = Schema(( BooleanField(name='Aye', widget=BooleanField._properties['widget']( label='Aye', label_msgid='Bungeni_label_Aye', i18n_domain='Bungeni', )), RelationField(name='memberofparliaments', widget=ReferenceWidget( label='Memberofparliaments', label_msgid='Bungeni_label_memberofparliaments', i18n_domain='Bungeni', ), multiValued=0, relationship='voteofmp_memberofparliament'), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema VoteOfMP_schema = BaseSchema.copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema
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
RelationField( name='pasos', inverse_relation_label="Pasos", inverse_relation_description="Secuencia de Pasos del Proceso de Negocio a ejecutar como comportamiento del Episodio.", description="Episodios en los que se ejecuta el Paso.", relationship='Pasos_De_Episodio', label2="Episodes", widget=ReferenceBrowserWidget( label="Episodios", label2="Episodes", description="Episodios en los que se ejecuta el Paso.", description2="Episodes executing the Step.", label_msgid='gvSIGbpd_BPDEpisodio_rel_pasos_label', description_msgid='gvSIGbpd_BPDEpisodio_rel_pasos_help', i18n_domain='gvSIGbpd', ), description2="Episodes executing the Step.", inverse_relation_label2="Steps", deststyle="Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", write_permission='Modify portal content', inverse_relation_field_name='episodios', inverse_relation_description2="Sequence of Business Process Steps to execute as the behavior of the Episode.", additional_columns=['detallesPaso'], label="Episodios", multiValued=1, containment="Unspecified", inverse_relationship='pasos_episodios', owner_class_name="BPDEpisodio" ),
from Products.CMFCore.utils import getToolByName from Products.membrane.at.interfaces import IPropertiesProvider from Products.FacultyStaffDirectory.interfaces.committee import ICommittee from Acquisition import aq_inner, aq_parent from Products.FacultyStaffDirectory.permissions import ASSIGN_COMMITTIES_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_COMMITTIES_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=True, relationship='CommitteeMembership'), ), ) Committee_schema = getattr(PersonGrouping, 'schema', Schema( ())).copy() + schema.copy() class Committee(PersonGrouping): """ """
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): """ """
visible={ 'edit': 'invisible', 'view': 'visible' }, i18n_domain='FacultyStaffDirectory', ), schemata="Basic Information", accessor="Title", user_property='fullname', searchable=True), RelationField(name='classifications', vocabulary="_classificationReferences", widget=atapi.ReferenceWidget( label=_(u"FacultyStaffDirectory_label_classifications", default=u"Classifications"), i18n_domain='FacultyStaffDirectory', ), write_permission=ASSIGN_CLASSIFICATIONS_TO_PEOPLE, schemata="Basic Information", multiValued=True, relationship='people_classifications'), RelationField(name='departments', widget=ReferenceBrowserWidget( label=_(u"FacultyStaffDirectory_label_departments", default=u"Departments"), i18n_domain='FacultyStaffDirectory', base_query="_search_departments_in_this_fsd", allow_browse=0, allow_search=1, show_results_without_query=1, startup_directory_method="_get_parent_fsd_path",
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'],
RelationField( name='casosDePrueba', inverse_relation_label="Listas de Pruebas", inverse_relation_description= "Listas de Pruebas en cuya secuencia se ejercita este Caso de Prueba.", description= "Casos de Prueba ensablados en esta Lista de Prueba, para ser ejercitados en secuencia.", relationship='ListasDePruebas_CasosDePrueba', inverse_relation_field_name='listasDePruebas', inverse_relation_label2="Test Suites", label2="Test Cases", inverse_relation_description2= "Test Suites exercising this Test Case as part of their sequences.", widget=ReferenceBrowserWidget( label="Casos de Prueba", label2="Test Cases", description= "Casos de Prueba ensablados en esta Lista de Prueba, para ser ejercitados en secuencia.", description2= "Test Cases assembled in this Test Suite, to be exercised in sequence.", label_msgid='gvSIGbpd_BPDListaDePruebas_rel_casosDePrueba_label', description_msgid= 'gvSIGbpd_BPDListaDePruebas_rel_casosDePrueba_help', i18n_domain='gvSIGbpd', ), write_permission='Modify portal content', label="Casos de Prueba", description2= "Test Cases assembled in this Test Suite, to be exercised in sequence.", multiValued=1, deststyle= "Union=0;Derived=0;AllowDuplicates=0;Owned=0;Navigable=Unspecified;", containment="Unspecified", inverse_relationship='CasosDePrueba_ListasDePruebas', owner_class_name="BPDListaDePruebas", dependency_supplier=True),
RelationField( name='artefactosDeHerramienta', inverse_relation_label="Herramientas", containment="Unspecified", inverse_relation_description= "Herramientas utiles para manejar Artefactos de este tipo.", description="Artefactos que pueden ser manipulados con la Herramienta.", relationship='BPDArtefactos', inverse_relation_field_name='herramientas', sourcestyle= "Navigable=Unspecified;Union=0;Derived=0;AllowDuplicates=0;Owned=0;", label2="Artefacts handled with the Tool", inverse_relation_description2= "Useful tools to handle Artefacts of this type.", widget=ReferenceBrowserWidget( label="Artefactos", label2="Artefacts handled with the Tool", description= "Artefactos que pueden ser manipulados con la Herramienta.", description2= "Artefacts where the tool is applied to visualize, edit or otherwise handle the Artefact content.", label_msgid= 'gvSIGbpd_BPDHerramienta_rel_artefactosDeHerramienta_label', description_msgid= 'gvSIGbpd_BPDHerramienta_rel_artefactosDeHerramienta_help', i18n_domain='gvSIGbpd', ), label="Artefactos", description2= "Artefacts where the tool is applied to visualize, edit or otherwise handle the Artefact content.", multiValued=1, inverse_relation_label2="Tools", inverse_relationship='BPDHerramientas', write_permission='Modify portal content', additional_columns=[ 'codigo', ]),
schema = Schema((RelationField( name='people', widget=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_CLASSIFICATIONS_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=1, relationship='classifications_people'), ), )
RelationField( name='artefactosDeEntrada', inverse_relation_label="Entrada a Procesos de Negocio", inverse_relation_description="Entradas a Procesos de Negocio en que el Artefacto debe estar disponible, para poder comenzar la ejecucion.", description="Artefactos que deben estar disponibles para comenzar el Proceso de Negocio", relationship='BPDArtefactosDeEntrada', label2="Input Artefacts", widget=ReferenceBrowserWidget( label="Artefactos de Entrada", label2="Input Artefacts", description="Artefactos que deben estar disponibles para comenzar el Proceso de Negocio", description2="Artefacts required as input to allow the start of the Business Processes.", label_msgid='gvSIGbpd_BPDEntrada_rel_artefactosDeEntrada_label', description_msgid='gvSIGbpd_BPDEntrada_rel_artefactosDeEntrada_help', i18n_domain='gvSIGbpd', ), description2="Artefacts required as input to allow the start of the Business Processes.", inverse_relation_label2="Input to Business Processes", deststyle="Navigable=Unspecified;Union=0;Derived=0;AllowDuplicates=0;Owned=0;", write_permission='Modify portal content', inverse_relation_field_name='entradasAProcesosDeNegocio', inverse_relation_description2="Inputs to Business Processes where the Artefact must be made available , in order to start execution.", additional_columns=['codigo'], label="Artefactos de Entrada", multiValued=1, containment="Unspecified", inverse_relationship='BPDEntradasAProcesosDeNegocio', owner_class_name="BPDEntrada" ),