Esempio n. 1
0
 ),
 atapi.ReferenceField(
     'contact',
     relationship='contact',
     allowed_types=('Person', ),
     widget=ReferenceBrowserWidget(
         label='Contact',
         allow_browse=1,
         startup_directory='/people',
     ),
 ),
 ateapi.UrlField(
     'service_complete_link',
     read_permission='View internals',
     write_permission='Modify internals',
     widget=ateapi.UrlWidget(label='Link to SPMT'),
 ),
 atapi.StringField(
     'competitors',
     read_permission='View internals',
     write_permission='Modify internals',
     widget=atapi.StringWidget(
         label='Competitors',
         macro_view='trusted_string',
     ),
 ),
 BackReferenceField(
     'resources_used',
     relationship='used_by',
     multiValued=True,
     widget=BackReferenceWidget(
Esempio n. 2
0
    atapi.ReferenceField('project_enabler',
                         relationship='enabled_by',
                         allowed_types=('Person',),
                         widget=ReferenceBrowserWidget(label='Enabled by',
                                                       allow_browse=1,
                                                       startup_directory='/people',
                                                      ),
                         ),
    atapi.DateTimeField('start_date',
                        widget=atapi.CalendarWidget(label='Start date',
                                                    show_hm=False,
                                                    ),
                        ),
    ateapi.UrlField('call_for_collaboration',
                    widget=ateapi.UrlWidget(label='Call for collaboration',
                                            description='URL to the call that '\
                                            'triggered this project',
                                            ),
                    ),
    ateapi.UrlField('uptake_plan',
                    widget=ateapi.UrlWidget(label='Uptake plan',
                                            description='URL to the projects '\
                                            'uptake plan (if not on this site). '\
                                            'Often to be found on the '\
                                            'confluence site.',
                                            ),
                    ),
    atapi.StringField('repository'),
    atapi.StringField('topics'),
)) + CommonFields.copy()

schemata.finalizeATCTSchema(ProjectSchema,
Esempio n. 3
0
                                              description='When does the downtime end? In UTC!'),
                        ),

    atapi.ReferenceField('affected_registered_serivces',
                         relationship='affected_registered_services',
                         allowed_types=('RegisteredService', 'RegisteredServiceComponent',),
                         multiValued=True,
                         widget=ReferenceBrowserWidget(label='Affected registered services',
                                                       description='All registered services and components unavailable during downtime',
                                                       allow_browse=1,
                                                       startup_directory_method='getStartupDirectory',
                                                       ),
                         ),
    ateapi.UrlField('reason',
                    widget=ateapi.UrlWidget(label='Reason',
                                            description='Optional URL to the change management document providing the reason for this downtime.',
                                        ),
                ),
    atapi.StringField('severity',
                      searchable=1,
                      default='warning',
                      vocabulary=NamedVocabulary('severity_levels'),
                      widget=atapi.SelectionWidget(label='Severity',
                                                   ),
                      ),
    atapi.StringField('classification',
                      searchable=1,
                      default='scheduled',
                      vocabulary=NamedVocabulary('downtime_classes'),
                      widget=atapi.SelectionWidget(label='Classification',
                                                   ),
Esempio n. 4
0
        multiValued=True,
        widget=BackReferenceWidget(visible={'edit': 'invisible'}, ),
    ),
    BackReferenceField(
        'projects_invloved',
        relationship='provided_by',
        multiValued=True,
        widget=BackReferenceWidget(
            label='Projects involved',
            visible={'edit': 'invisible'},
        ),
    ),
    ateapi.UrlField(
        'getAccount',
        widget=ateapi.UrlWidget(
            label='Account',
            description='URL to instructions on how to get an account',
        ),
    ),
)) + CommonFields.copy()

schemata.finalizeATCTSchema(ProviderSchema,
                            folderish=True,
                            moveDiscussion=False)


class Provider(folder.ATFolder, CommonUtilities):
    """Compute or data service provider"""
    implements(IProvider)

    meta_type = "Provider"
    schema = ProviderSchema
Esempio n. 5
0
 ),
 atapi.ReferenceField(
     'dependencies',
     relationship='depends_on',
     allowed_types=('Service', ),
     multiValued=True,
     widget=ReferenceBrowserWidget(
         label='Depends on',
         allow_browse=1,
         startup_directory='/catalog',
     ),
 ),
 ateapi.UrlField(
     'usage_policy_link',
     searchable=1,
     widget=ateapi.UrlWidget(label='Usage policy'),
 ),
 ateapi.UrlField(
     'user_documentation_link',
     searchable=1,
     widget=ateapi.UrlWidget(label='User documentation'),
 ),
 ateapi.UrlField(
     'operations_documentation_link',
     searchable=1,
     widget=ateapi.UrlWidget(label='Operations documentation'),
 ),
 ateapi.UrlField(
     'monitoring_link',
     searchable=1,
     widget=ateapi.UrlWidget(label='Monitoring'),
Esempio n. 6
0
                      ),
 atapi.DateTimeField('start_date',
                     widget=atapi.CalendarWidget(label='Start date',
                                                 show_hm=False,
                                                 condition="python:here.stateNotIn(['considered'])",
                                                 ),
                     ),
 atapi.DateTimeField('end_date',
                     widget=atapi.CalendarWidget(label='End date',
                                                 show_hm=False,
                                                 condition="python:here.stateNotIn(['considered'])",
                                                 ),
                     ),
 ateapi.UrlField('call_for_collaboration',
                 widget=ateapi.UrlWidget(label='Call for collaboration',
                                         description='URL to the call that '
                                         'triggered this project',
                                         ),
                 ),
 ateapi.UrlField('uptake_plan',
                 read_permission='View internals',
                 write_permission='Modify internals',
                 widget=ateapi.UrlWidget(label='Uptake plan',
                                         description='URL to the project '
                                         'uptake plan (if not available on this site). '
                                         'Otherwise, often found on the '
                                         'confluence site.',
                                         ),
                 ),
 atapi.StringField('repository',
                   widget=atapi.StringWidget(description="If the data to be "
                                             "dealt with here are in a web-accessible "