コード例 #1
0
# -*- coding: utf-8 -*-

from copy import deepcopy
from Products.MeetingCommunes.profiles.examples_fr import import_data as examples_fr_import_data
from Products.MeetingCommunes.profiles.examples_fr.import_data import conseiller
from Products.PloneMeeting.profiles import patch_pod_templates
from Products.PloneMeeting.profiles import PloneMeetingConfiguration
from Products.PloneMeeting.profiles import UserDescriptor

# Users and groups -------------------------------------------------------------
president = UserDescriptor('president', [],
                           email="*****@*****.**",
                           fullname="Président")

# Meeting configurations -------------------------------------------------------
# College
collegeMeeting = deepcopy(examples_fr_import_data.collegeMeeting)
collegeMeeting.id = 'meeting-config-zcollege'
collegeMeeting.title = 'Collège'
collegeMeeting.folderTitle = 'Collège'
collegeMeeting.shortName = 'ZCollege'
collegeMeeting.assembly = ''
collegeMeeting.signatures = ''
collegeMeeting.selectableAdvisers = []
collegeMeeting.meetingConfigsToCloneTo = [
    {
        'meeting_config': 'cfg2',
        'trigger_workflow_transitions_until': '__nothing__'
    },
]
collegeMeeting.addContactsCSV = False
コード例 #2
0
# -*- coding: utf-8 -*-

from copy import deepcopy
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data
from Products.MeetingCommunes.profiles.testing import import_data as mc_import_data
from Products.PloneMeeting.config import MEETINGREVIEWERS
from Products.PloneMeeting.profiles import UserDescriptor

data = deepcopy(mc_import_data.data)

# Users and groups -------------------------------------------------------------
pmCreator1 = UserDescriptor("pmCreator1", [],
                            email="*****@*****.**",
                            fullname="M. PMCreator One")
pmCreator1b = UserDescriptor(
    "pmCreator1b",
    [],
    email="*****@*****.**",
    fullname="M. PMCreator One bee",
)
pmObserver1 = UserDescriptor(
    "pmObserver1",
    [],
    email="*****@*****.**",
    fullname="M. PMObserver One",
)
pmCreator2 = UserDescriptor("pmCreator2", [])
pmAdviser1 = UserDescriptor("pmAdviser1", [])
pmDepartmentHead1 = UserDescriptor("pmDepartmentHead1", [])
pmDirector1 = UserDescriptor("pmDirector1", [])
pmDirector2 = UserDescriptor("pmDirector2", [])
コード例 #3
0
from copy import deepcopy
from Products.PloneMeeting.profiles import UserDescriptor
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data
from Products.MeetingCommunes.profiles.testing import import_data as mc_import_data

data = deepcopy(mc_import_data.data)

# Inherited users
pmReviewer1 = deepcopy(pm_import_data.pmReviewer1)
pmReviewer2 = deepcopy(pm_import_data.pmReviewer2)
pmReviewerLevel1 = deepcopy(pm_import_data.pmReviewerLevel1)
pmReviewerLevel2 = deepcopy(pm_import_data.pmReviewerLevel2)
pmManager = deepcopy(pm_import_data.pmManager)
# xxx specific to CPAS La louvière
pmN1 = UserDescriptor('pmN1', [])
pmN2 = UserDescriptor('pmN2', [])
pmSecretaire = UserDescriptor('pmSecretaire', [])

developers = data.orgs[0]
developers.n1.append(pmN1)
developers.n2.append(pmN2)
developers.secretaire.append(pmSecretaire)
developers.n1.append(pmManager)
developers.n2.append(pmManager)

# Meeting configurations -------------------------------------------------------
# College communal
bpMeeting = deepcopy(mc_import_data.collegeMeeting)
bpMeeting.id = 'meeting-config-bp'
bpMeeting.title = 'Bureau Permanent'
コード例 #4
0
# -*- coding: utf-8 -*-
from copy import deepcopy

from Products.MeetingCommunes.profiles.testing import import_data as mc_import_data
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data

from Products.PloneMeeting.profiles import UserDescriptor, PodTemplateDescriptor

data = deepcopy(mc_import_data.data)

# USERS
pmServiceHead1 = UserDescriptor("pmServiceHead1", [])
pmServiceHead2 = UserDescriptor("pmServiceHead2", [])
pmOfficeManager1 = UserDescriptor("pmOfficeManager1", [])
pmOfficeManager2 = UserDescriptor("pmOfficeManager2", [])
pmDivisionHead1 = UserDescriptor("pmDivisionHead1", [])
pmDivisionHead2 = UserDescriptor("pmDivisionHead2", [])
pmDirector1 = UserDescriptor("pmDirector1", [])
pmDirector2 = UserDescriptor("pmDirector2", [])
pmCreator2 = UserDescriptor("pmCreator2", [])
pmAdviser1 = UserDescriptor("pmAdviser1", [])
pmAdviser2 = UserDescriptor("pmAdviser2", [])
voter1 = UserDescriptor("voter1", [], fullname="M. Voter One")
voter2 = UserDescriptor("voter2", [], fullname="M. Voter Two")

# Commission editors
commissioneditor = UserDescriptor(
    "commissioneditor",
    [],
    email="*****@*****.**",
    fullname="M. Commission Editor",
コード例 #5
0
# -*- coding: utf-8 -*-

from copy import deepcopy

from Products.PloneMeeting.config import MEETINGREVIEWERS
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data
from Products.MeetingCommunes.profiles.testing import import_data as mc_import_data
from Products.PloneMeeting.profiles import UserDescriptor

data = deepcopy(mc_import_data.data)

# Users and groups -------------------------------------------------------------
pmCreator1 = UserDescriptor("pmCreator1", [],
                            email="*****@*****.**",
                            fullname="M. PMCreator One")
pmCreator1b = UserDescriptor(
    "pmCreator1b",
    [],
    email="*****@*****.**",
    fullname="M. PMCreator One bee",
)
pmObserver1 = UserDescriptor(
    "pmObserver1",
    [],
    email="*****@*****.**",
    fullname="M. PMObserver One",
)
pmServiceHead1 = UserDescriptor("pmServiceHead1", [])
pmOfficeManager1 = UserDescriptor("pmOfficeManager1", [])
pmDivisionHead1 = UserDescriptor("pmDivisionHead1", [])
pmDirector1 = UserDescriptor("pmDirector1", [])
コード例 #6
0
allItemTemplate.pod_portal_types = ['Meeting']
allItemTemplate.merge_templates = [{
    'pod_context_name': u'item',
    'do_rendering': False,
    'template': 'itemTemplate'
}]

dashboardTemplate = PodTemplateDescriptor('dashboardTemplate',
                                          'Dashboard summary',
                                          dashboard=True)
dashboardTemplate.odt_file = 'Dashboard.odt'
dashboardTemplate.tal_condition = u'python: context.absolute_url().endswith("/searches_items")'

# Test users and groups
siteadmin = UserDescriptor('siteadmin', ['Manager'],
                           email="*****@*****.**",
                           fullname='Site administrator')
pmManager = UserDescriptor('pmManager', [],
                           email="*****@*****.**",
                           fullname='M. PMManager')
pmCreator1 = UserDescriptor('pmCreator1', [],
                            email="*****@*****.**",
                            fullname='M. PMCreator One')
pmCreator1b = UserDescriptor('pmCreator1b', [],
                             email="*****@*****.**",
                             fullname='M. PMCreator One bee')
pmObserver1 = UserDescriptor('pmObserver1', [],
                             email="*****@*****.**",
                             fullname='M. PMObserver One')
pmReviewer1 = UserDescriptor('pmReviewer1', [],
                             email="*****@*****.**",
コード例 #7
0
# -*- coding: utf-8 -*-

from copy import deepcopy
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data
from Products.MeetingCommunes.profiles.testing import import_data as mc_import_data
from Products.PloneMeeting.config import MEETINGREVIEWERS
from Products.PloneMeeting.profiles import UserDescriptor

data = deepcopy(mc_import_data.data)

# Users
pmFinController = UserDescriptor('pmFinController', [])
pmFinEditor = UserDescriptor('pmFinEditor', [])
pmFinReviewer = UserDescriptor('pmFinReviewer', [])
pmFinManager = UserDescriptor('pmFinManager', [])
dfin = UserDescriptor('dfin', [])
pmServiceHead1 = UserDescriptor('pmServiceHead1', [])
pmRefAdmin1 = UserDescriptor('pmRefAdmin1', [])
# Inherited users
pmReviewer1 = deepcopy(pm_import_data.pmReviewer1)
pmReviewer2 = deepcopy(pm_import_data.pmReviewer2)
pmReviewerLevel1 = deepcopy(pm_import_data.pmReviewerLevel1)
pmReviewerLevel2 = deepcopy(pm_import_data.pmReviewerLevel2)
pmManager = deepcopy(pm_import_data.pmManager)

# Groups
developers = data.orgs[0]
developers.serviceheads.append(pmServiceHead1)
developers.serviceheads.append(pmRefAdmin1)
developers.serviceheads.append(pmReviewer1)
developers.serviceheads.append(pmManager)
コード例 #8
0
                                 relatedTo='advice')
annexeSeance = AnnexTypeDescriptor('annexe',
                                   'Annexe',
                                   u'attach.png',
                                   relatedTo='meeting')

# No Categories -------------------------------------------------------------------
categories = []

# No Pod templates ----------------------------------------------------------------

bourgmestreTemplates = []

# Users and groups -------------------------------------------------------------
generalManager = UserDescriptor('generalManager', [],
                                email="*****@*****.**",
                                fullname='M. GeneralManager')
bourgmestreManager = UserDescriptor(
    'bourgmestreManager', [],
    email="*****@*****.**",
    fullname='M. Bourgmestre Manager')
bourgmestreReviewer = UserDescriptor(
    'bourgmestreReviewer', [],
    email="*****@*****.**",
    fullname='M. Bourgmestre Reviewer')
general_manager_group = OrgDescriptor(GENERAL_MANAGER_GROUP_ID,
                                      u'General Managers', u'GMs')
general_manager_group.reviewers.append(generalManager)
bourgmestre_group = OrgDescriptor(BOURGMESTRE_GROUP_ID, u'Bourgmestre', u'BG')
bourgmestre_group.creators.append(bourgmestreManager)
bourgmestre_group.reviewers.append(bourgmestreReviewer)
コード例 #9
0
# -*- coding: utf-8 -*-

from copy import deepcopy
from Products.MeetingCommunes.profiles.testing import import_data as mc_import_data
from Products.PloneMeeting.config import MEETINGREVIEWERS
from Products.PloneMeeting.profiles import PloneGroupDescriptor
from Products.PloneMeeting.profiles import UserDescriptor
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data

data = deepcopy(mc_import_data.data)

# Users and groups -------------------------------------------------------------4
pmServiceHead1 = UserDescriptor('pmServiceHead1', [])
pmOfficeManager1 = UserDescriptor('pmOfficeManager1', [])
pmDivisionHead1 = UserDescriptor('pmDivisionHead1', [])

plonemeeting_assembly_powereditors = PloneGroupDescriptor(
    'meeting-config-college_powereditors',
    'meeting-config-council_powereditors', [])
powerEditor1 = UserDescriptor('powerEditor1', [])
powerEditor1.ploneGroups = [
    plonemeeting_assembly_powereditors,
]

# Inherited users
pmReviewer1 = deepcopy(pm_import_data.pmReviewer1)
pmReviewer2 = deepcopy(pm_import_data.pmReviewer2)
pmReviewerLevel1 = deepcopy(pm_import_data.pmReviewerLevel1)
pmReviewerLevel2 = deepcopy(pm_import_data.pmReviewerLevel2)
pmManager = deepcopy(pm_import_data.pmManager)
コード例 #10
0
# -*- coding: utf-8 -*-

from copy import deepcopy
from Products.MeetingLiege.profiles.liege import import_data as ml_import_data
from Products.MeetingLiege.profiles.zbourgmestre import import_data as bg_import_data
from Products.PloneMeeting.config import DEFAULT_LIST_TYPES
from Products.PloneMeeting.profiles import MeetingConfigDescriptor
from Products.PloneMeeting.profiles import UserDescriptor
from Products.PloneMeeting.profiles.testing import import_data as pm_import_data


# Users and groups -------------------------------------------------------------
pmFinController = UserDescriptor('pmFinController', [])
pmFinControllerCompta = UserDescriptor('pmFinControllerCompta', [])
pmFinReviewer = UserDescriptor('pmFinReviewer', [])
pmFinManager = UserDescriptor('pmFinManager', [])
pmMeetingManagerBG = UserDescriptor('pmMeetingManagerBG', [], email="*****@*****.**", fullname='M. PMMMBG')
pmAdminReviewer1 = UserDescriptor('pmAdminReviewer1', [])
pmInternalReviewer1 = UserDescriptor('pmInternalReviewer1', [])

developers = pm_import_data.developers
pmManager = pm_import_data.pmManager
pmReviewerLevel1 = pm_import_data.pmReviewerLevel1
developers.administrativereviewers.append(pmAdminReviewer1)
developers.administrativereviewers.append(pmManager)
developers.administrativereviewers.append(pmReviewerLevel1)
developers.internalreviewers.append(pmInternalReviewer1)
developers.internalreviewers.append(pmManager)

# Meeting configurations -------------------------------------------------------
collegeMeeting = deepcopy(pm_import_data.meetingPma)
コード例 #11
0
                                      'Statistiques Avis DF',
                                      dashboard=True)
statsDFAdvice.odt_file = 'stats_DF_advice.ods'
statsDFAdvice.dashboard_collections_ids = ['searchitemswithfinanceadvice']
statsDFAdvice.tal_condition = u''

collegeTemplates = [
    agendaTemplate, decisionsTemplate, itemTemplate, dfAdviceTemplate,
    statsDFAdvice
]

councilTemplates = []

# Users and groups -------------------------------------------------------------
dgen = UserDescriptor('dgen', [],
                      email="*****@*****.**",
                      fullname="Henry Directeur")
bourgmestre = UserDescriptor('bourgmestre', [],
                             email="*****@*****.**",
                             fullname="Pierre Bourgmestre")
dfin = UserDescriptor('dfin', [],
                      email="*****@*****.**",
                      fullname="Directeur Financier")
agentInfo = UserDescriptor('agentInfo', [],
                           email="*****@*****.**",
                           fullname="Agent Service Informatique")
agentCompta = UserDescriptor('agentCompta', [],
                             email="*****@*****.**",
                             fullname="Agent Service Comptabilité")
agentPers = UserDescriptor('agentPers', [],
                           email="*****@*****.**",