Exemplo n.º 1
0
                             fullname='M. PMObserver Two')
pmAdviser1 = UserDescriptor('pmAdviser1', [],
                            email="*****@*****.**",
                            fullname='M. PMAdviser One (Hé)')
voter1 = UserDescriptor('voter1', [],
                        email="*****@*****.**",
                        fullname='M. Voter One')
voter2 = UserDescriptor('voter2', [],
                        email="*****@*****.**",
                        fullname='M. Voter Two')
powerobserver1 = UserDescriptor('powerobserver1', [],
                                email="*****@*****.**",
                                fullname='M. Power Observer1')
cfg1_powerobservers = PloneGroupDescriptor('cfg1_powerobservers',
                                           'cfg1_powerobservers', [])
powerobserver1.ploneGroups = [cfg1_powerobservers]
powerobserver2 = UserDescriptor('powerobserver2', [],
                                email="*****@*****.**",
                                fullname='M. Power Observer2')
cfg2_powerobservers = PloneGroupDescriptor('cfg2_powerobservers',
                                           'cfg2_powerobservers', [])
powerobserver2.ploneGroups = [cfg2_powerobservers]
restrictedpowerobserver1 = UserDescriptor(
    'restrictedpowerobserver1', [],
    email="*****@*****.**",
    fullname='M. Restricted Power Observer 1')
cfg1_restrictedpowerobservers = PloneGroupDescriptor(
    'cfg1_restrictedpowerobservers', 'cfg1_restrictedpowerobservers', [])
restrictedpowerobserver1.ploneGroups = [cfg1_restrictedpowerobservers]
restrictedpowerobserver2 = UserDescriptor(
    'restrictedpowerobserver2', [],
Exemplo n.º 2
0
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)

# Groups

developers = data.orgs[0]
developers.serviceheads.append(pmReviewer1)
developers.serviceheads.append(pmServiceHead1)
developers.serviceheads.append(pmManager)