def contributed_services(): return [ service('workflows', models.Workflow), service('workflow_people', models.WorkflowPerson), service('task_groups', models.TaskGroup), service('task_group_tasks', models.TaskGroupTask), service('task_group_objects', models.TaskGroupObject), service('cycles', models.Cycle), service('cycle_task_entries', models.CycleTaskEntry), service('cycle_task_groups', models.CycleTaskGroup), service('cycle_task_group_object_tasks', models.CycleTaskGroupObjectTask) ]
def contributed_services(): from ggrc_workflows import models return [ service(models.Workflow.__tablename__, models.Workflow), service(models.WorkflowPerson.__tablename__, models.WorkflowPerson), service(models.TaskGroup.__tablename__, models.TaskGroup), service(models.TaskGroupTask.__tablename__, models.TaskGroupTask), service(models.TaskGroupObject.__tablename__, models.TaskGroupObject), service(models.Cycle.__tablename__, models.Cycle), service(models.CycleTaskEntry.__tablename__, models.CycleTaskEntry), service(models.CycleTaskGroup.__tablename__, models.CycleTaskGroup), service(models.CycleTaskGroupObjectTask.__tablename__, models.CycleTaskGroupObjectTask, resource.CycleTaskResource), ]
def contributed_services(): from ggrc_workflows import models return [ service(models.Workflow.__tablename__, models.Workflow), service(models.TaskGroup.__tablename__, models.TaskGroup), service(models.TaskGroupTask.__tablename__, models.TaskGroupTask), service(models.TaskGroupObject.__tablename__, models.TaskGroupObject), service(models.Cycle.__tablename__, models.Cycle), service(models.CycleTaskEntry.__tablename__, models.CycleTaskEntry), service(models.CycleTaskGroup.__tablename__, models.CycleTaskGroup), service(models.CycleTaskGroupObjectTask.__tablename__, models.CycleTaskGroupObjectTask, resource.CycleTaskResource), ]
def contributed_services(): return [ service('risk_assessments', models.RiskAssessment), ]
def contributed_services(): """The list of all collections provided by this extension.""" return [ service('roles', Role), service('user_roles', UserRole), ]
Document.late_init_fileable() Meeting.__bases__ = (Eventable, ) + Meeting.__bases__ Meeting.late_init_eventable() # TODO: now the Gdrive module is dependant on the Workflows module. it used to # be the other way around but none of them are actually okay Workflow.__bases__ = (Folderable, ) + Workflow.__bases__ Workflow.late_init_folderable() # Initialize views def init_extra_views(application): ggrc_gdrive_integration.views.init_extra_views(application) contributed_services = [ service('object_folders', models.ObjectFolder), service('object_files', models.ObjectFile), service('object_events', models.ObjectEvent) ] class GDriveRoleContributions(RoleContributions): contributions = { 'Auditor': { 'read': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], }, 'ProgramAuditEditor': { 'read': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], 'create': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], 'update': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], 'delete': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'],
def contributed_services(): """The list of all GGRC collection services as a list of (url, ModelClass) tuples. """ import ggrc.models.all_models as models from ggrc.access_control import role from ggrc.models import review from ggrc.services.resources import access_controle_role from ggrc.services.resources import assessment from ggrc.services.resources import audit from ggrc.services.resources import external from ggrc.services.resources import issue from ggrc.services.resources import person from ggrc.services.resources import related_assessments from ggrc.services.resources import relationship from ggrc.services.resources import snapshot return [ service('background_tasks', models.BackgroundTask), service('access_groups', models.AccessGroup), service('audits', models.Audit, audit.AuditResource), service('calendar_events', models.CalendarEvent), service('contexts', models.Context), service('controls', models.Control, external.ExternalResource), service('assessments', models.Assessment, assessment.AssessmentResource), service('assessment_templates', models.AssessmentTemplate), service('comments', models.Comment), service('external_comments', models.ExternalComment), service('custom_attribute_definitions', models.CustomAttributeDefinition), service('data_assets', models.DataAsset), service('directives', models.Directive, common.ReadOnlyResource), service('contracts', models.Contract), service('evidence', models.Evidence), service('policies', models.Policy), service('regulations', models.Regulation), service('standards', models.Standard), service('documents', models.Document), service('events', models.Event, common.ReadOnlyResource), service('facilities', models.Facility), service('markets', models.Market), service('object_people', models.ObjectPerson), service('objectives', models.Objective), service('options', models.Option), service('org_groups', models.OrgGroup), service('vendors', models.Vendor), service('people', models.Person, person.PersonResource), service('people_profiles', models.PersonProfile), service('products', models.Product), service('projects', models.Project), service('programs', models.Program), service('relationships', models.Relationship, relationship.RelationshipResource), service('revisions', models.Revision, common.ReadOnlyResource), service('requirements', models.Requirement), service('risks', models.Risk, external.ExternalResource), service('threats', models.Threat), service('systems_or_processes', models.SystemOrProcess, common.ReadOnlyResource), service('systems', models.System, external_internal.ExternalInternalResource), service('processes', models.Process), service('metrics', models.Metric), service('notification_configs', models.NotificationConfig), service('issues', models.Issue, issue.IssueResource), service('snapshots', models.Snapshot, snapshot.SnapshotResource), service('access_control_roles', role.AccessControlRole, access_controle_role.AccessControlRoleResource), service('labels', models.Label), service('proposals', models.Proposal), service('related_assessments', None, related_assessments.RelatedAssessmentsResource), service('technology_environments', models.TechnologyEnvironment), service('product_groups', models.ProductGroup), service('reviews', review.Review), service('key_reports', models.KeyReport), service('account_balances', models.AccountBalance), ]
def contributed_services(): return [ service('risks', models.Risk), service('risk_objects', models.RiskObject), service('threats', models.Threat), ]
def contributed_services(): """The list of all GGRC collection services as a list of (url, ModelClass) tuples. """ import ggrc.models.all_models as models from ggrc.access_control import role from ggrc.models import review from ggrc.services.resources import assessment from ggrc.services.resources import audit from ggrc.services.resources import external from ggrc.services.resources import issue from ggrc.services.resources import person from ggrc.services.resources import related_assessments from ggrc.services.resources import relationship from ggrc.services.resources import snapshot return [ service('background_tasks', models.BackgroundTask), service('access_groups', models.AccessGroup), service('audits', models.Audit, audit.AuditResource), service('calendar_events', models.CalendarEvent), service('contexts', models.Context), service('controls', models.Control, external.ExternalResource), service('assessments', models.Assessment, assessment.AssessmentResource), service('assessment_templates', models.AssessmentTemplate), service('comments', models.Comment), service('external_comments', models.ExternalComment), service('custom_attribute_definitions', models.CustomAttributeDefinition), service('data_assets', models.DataAsset), service('directives', models.Directive, common.ReadOnlyResource), service('contracts', models.Contract), service('evidence', models.Evidence), service('policies', models.Policy), service('regulations', models.Regulation), service('standards', models.Standard), service('documents', models.Document), service('events', models.Event, common.ReadOnlyResource), service('facilities', models.Facility), service('markets', models.Market), service('object_people', models.ObjectPerson), service('objectives', models.Objective), service('options', models.Option), service('org_groups', models.OrgGroup), service('vendors', models.Vendor), service('people', models.Person, person.PersonResource), service('people_profiles', models.PersonProfile), service('products', models.Product), service('projects', models.Project), service('programs', models.Program), service('relationships', models.Relationship, relationship.RelationshipResource), service('revisions', models.Revision, common.ReadOnlyResource), service('requirements', models.Requirement), service('risk_assessments', models.RiskAssessment), service('risks', models.Risk), service('threats', models.Threat), service('systems_or_processes', models.SystemOrProcess, common.ReadOnlyResource), service('systems', models.System, external_internal.ExternalInternalResource), service('processes', models.Process), service('metrics', models.Metric), service('notification_configs', models.NotificationConfig), service('issues', models.Issue, issue.IssueResource), service('snapshots', models.Snapshot, snapshot.SnapshotResource), service('access_control_roles', role.AccessControlRole), service('labels', models.Label), service('proposals', models.Proposal), service('related_assessments', None, related_assessments.RelatedAssessmentsResource), service('technology_environments', models.TechnologyEnvironment), service('product_groups', models.ProductGroup), service('reviews', review.Review), service('key_reports', models.KeyReport), service('account_balances', models.AccountBalance), ]
def contributed_services(): """The list of all GGRC collection services as a list of (url, ModelClass) tuples. """ import ggrc.models.all_models as models from ggrc.services.resources.relationship import RelationshipResource from ggrc.services.resources.audit import AuditResource from ggrc.services.resources.assessment import AssessmentResource from ggrc.services.resources.person import PersonResource from ggrc.services.resources import related_assessments from ggrc.access_control.role import AccessControlRole return [ service('background_tasks', models.BackgroundTask), service('access_groups', models.AccessGroup), service('audits', models.Audit, AuditResource), service('categorizations', models.Categorization), service('category_bases', models.CategoryBase), service('control_categories', models.ControlCategory), service('control_assertions', models.ControlAssertion), service('contexts', models.Context), service('controls', models.Control), service('assessments', models.Assessment, AssessmentResource), service('assessment_templates', models.AssessmentTemplate), service('comments', models.Comment), service('custom_attribute_definitions', models.CustomAttributeDefinition), service('custom_attribute_values', models.CustomAttributeValue), service('data_assets', models.DataAsset), service('directives', models.Directive, ReadOnlyResource), service('contracts', models.Contract), service('evidence', models.Evidence), service('policies', models.Policy), service('regulations', models.Regulation), service('standards', models.Standard), service('documents', models.Document), service('events', models.Event, ReadOnlyResource), service('facilities', models.Facility), service('markets', models.Market), service('object_people', models.ObjectPerson), service('objectives', models.Objective), service('options', models.Option), service('org_groups', models.OrgGroup), service('vendors', models.Vendor), service('people', models.Person, PersonResource), service('products', models.Product), service('projects', models.Project), service('programs', models.Program), service('relationships', models.Relationship, RelationshipResource), service('revisions', models.Revision, ReadOnlyResource), service('sections', models.Section), service('clauses', models.Clause), service( 'systems_or_processes', models.SystemOrProcess, ReadOnlyResource), service('systems', models.System), service('processes', models.Process), service('metrics', models.Metric), service('notification_configs', models.NotificationConfig), service('issues', models.Issue), service('snapshots', models.Snapshot), service('access_control_roles', AccessControlRole), service('labels', models.Label), service('proposals', models.Proposal), service('related_assessments', None, related_assessments.RelatedAssessmentsResource), ]
def contributed_services(): """The list of all GGRC collection services as a list of (url, ModelClass) tuples. """ import ggrc.models.all_models as models return [ service('background_tasks', models.BackgroundTask), service('access_groups', models.AccessGroup), service('audits', models.Audit), service('audit_objects', models.AuditObject), service('categorizations', models.Categorization), service('category_bases', models.CategoryBase), service('control_categories', models.ControlCategory), service('control_assertions', models.ControlAssertion), service('contexts', models.Context), service('controls', models.Control), service('assessments', models.Assessment), service('assessment_templates', models.AssessmentTemplate), service('comments', models.Comment), service('custom_attribute_definitions', models.CustomAttributeDefinition), service('custom_attribute_values', models.CustomAttributeValue), service('data_assets', models.DataAsset), service('directives', models.Directive, ReadOnlyResource), service('contracts', models.Contract), service('policies', models.Policy), service('regulations', models.Regulation), service('standards', models.Standard), service('documents', models.Document), service('events', models.Event, ReadOnlyResource), service('facilities', models.Facility), service('help', models.Help), service('markets', models.Market), service('meetings', models.Meeting), service('object_documents', models.ObjectDocument), service('object_owners', models.ObjectOwner), service('object_people', models.ObjectPerson), service('objectives', models.Objective), service('options', models.Option), service('org_groups', models.OrgGroup), service('vendors', models.Vendor), service('people', models.Person), service('products', models.Product), service('projects', models.Project), service('programs', models.Program), service('relationships', models.Relationship), service('revisions', models.Revision, ReadOnlyResource), service('sections', models.Section), service('clauses', models.Clause), service( 'systems_or_processes', models.SystemOrProcess, ReadOnlyResource), service('systems', models.System), service('processes', models.Process), service('notification_configs', models.NotificationConfig), service('issues', models.Issue), service('snapshots', models.Snapshot), ]
Document.late_init_fileable() Meeting.__bases__ = (Eventable,) + Meeting.__bases__ Meeting.late_init_eventable() # TODO: now the Gdrive module is dependant on the Workflows module. it used to # be the other way around but none of them are actually okay Workflow.__bases__ = (Folderable,) + Workflow.__bases__ Workflow.late_init_folderable() # Initialize views def init_extra_views(application): ggrc_gdrive_integration.views.init_extra_views(application) contributed_services = [ service('object_folders', models.ObjectFolder), service('object_files', models.ObjectFile), service('object_events', models.ObjectEvent) ] class GDriveRoleContributions(RoleContributions): contributions = { 'Auditor': { 'read': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], }, 'ProgramAuditEditor': { 'read': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], 'create': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], 'update': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'], 'delete': ['ObjectFolder', 'ObjectFile', 'ObjectEvent'],
def contributed_services(): """The list of all GGRC collection services as a list of (url, ModelClass) tuples. """ import ggrc.models.all_models as models from ggrc.services.resources.relationship import RelationshipResource from ggrc.services.resources.audit import AuditResource from ggrc.services.resources.assessment import AssessmentResource from ggrc.services.resources.person import PersonResource from ggrc.services.resources import related_assessments from ggrc.access_control.role import AccessControlRole return [ service('background_tasks', models.BackgroundTask), service('access_groups', models.AccessGroup), service('audits', models.Audit, AuditResource), service('audit_objects', models.AuditObject), service('categorizations', models.Categorization), service('category_bases', models.CategoryBase), service('control_categories', models.ControlCategory), service('control_assertions', models.ControlAssertion), service('contexts', models.Context), service('controls', models.Control), service('assessments', models.Assessment, AssessmentResource), service('assessment_templates', models.AssessmentTemplate), service('comments', models.Comment), service('custom_attribute_definitions', models.CustomAttributeDefinition), service('custom_attribute_values', models.CustomAttributeValue), service('data_assets', models.DataAsset), service('directives', models.Directive, ReadOnlyResource), service('contracts', models.Contract), service('policies', models.Policy), service('regulations', models.Regulation), service('standards', models.Standard), service('documents', models.Document), service('events', models.Event, ReadOnlyResource), service('facilities', models.Facility), service('help', models.Help), service('markets', models.Market), service('object_people', models.ObjectPerson), service('objectives', models.Objective), service('options', models.Option), service('org_groups', models.OrgGroup), service('vendors', models.Vendor), service('people', models.Person, PersonResource), service('products', models.Product), service('projects', models.Project), service('programs', models.Program), service('relationships', models.Relationship, RelationshipResource), service('revisions', models.Revision, ReadOnlyResource), service('sections', models.Section), service('clauses', models.Clause), service('systems_or_processes', models.SystemOrProcess, ReadOnlyResource), service('systems', models.System), service('processes', models.Process), service('notification_configs', models.NotificationConfig), service('issues', models.Issue), service('snapshots', models.Snapshot), service('access_control_roles', AccessControlRole), service('labels', models.Label), service('proposals', models.Proposal), service('related_assessments', None, related_assessments.RelatedAssessmentsResource), ]
def all_collections(): """The list of all collections provided by this extension.""" return [ service('roles', Role), service('user_roles', UserRole), ]
def contributed_services(): """The list of all gGRC collection services as a list of (url, ModelClass) tuples. """ import ggrc.models.all_models as models return [ service('background_tasks', models.BackgroundTask), service('access_groups', models.AccessGroup), service('audits', models.Audit), service('audit_objects', models.AuditObject), service('categorizations', models.Categorization), service('category_bases', models.CategoryBase), service('control_categories', models.ControlCategory), service('control_assertions', models.ControlAssertion), service('contexts', models.Context), service('controls', models.Control), service('assessments', models.Assessment), service('assessment_templates', models.AssessmentTemplate), service('comments', models.Comment), service('custom_attribute_definitions', models.CustomAttributeDefinition), service('custom_attribute_values', models.CustomAttributeValue), service('data_assets', models.DataAsset), service('directives', models.Directive, ReadOnlyResource), service('contracts', models.Contract), service('policies', models.Policy), service('regulations', models.Regulation), service('standards', models.Standard), service('documents', models.Document), service('events', models.Event, ReadOnlyResource), service('facilities', models.Facility), service('help', models.Help), service('markets', models.Market), service('meetings', models.Meeting), service('object_documents', models.ObjectDocument), service('object_owners', models.ObjectOwner), service('object_people', models.ObjectPerson), service('objectives', models.Objective), service('options', models.Option), service('org_groups', models.OrgGroup), service('vendors', models.Vendor), service('people', models.Person), service('products', models.Product), service('projects', models.Project), service('programs', models.Program), service('relationships', models.Relationship), service('requests', models.Request), service('revisions', models.Revision, ReadOnlyResource), service('sections', models.Section), service('clauses', models.Clause), service('systems_or_processes', models.SystemOrProcess, ReadOnlyResource), service('systems', models.System), service('processes', models.Process), service('notification_configs', models.NotificationConfig), service('issues', models.Issue), ]