Conjunto de mudanças 501 no repositório publico


Ignorar:
Timestamp:
30/08/2005 15:21:46 (15 anos atrás)
Autor:
rafahelabazzanella
Mensagem:

Alterado workflow do OnbudsmanFolder?

Localização:
ILPortalCasas/trunk/Ouvidoria/PloneOnbudsman
Arquivos:
3 editados

Legenda:

Não Modificado
Adicionado
Removido
  • ILPortalCasas/trunk/Ouvidoria/PloneOnbudsman/Extensions/onbudsman_folder_workflow.py

    r500 r501  
    4040    """Define the onbudsman_folder_workflow workflow.
    4141    """
     42    # add additional roles to portal
     43    portal = getToolByName(self,'portal_url').getPortalObject()
     44    data = list(portal.__ac_roles__)
     45    for role in ['Member\nAnonymous']:
     46        if not role in self.__ac_roles__:
     47            data.append(role)
     48    portal.__ac_roles__ = tuple(data)
    4249
    4350    workflow.setProperties(title='onbudsman_folder_workflow')
     
    5663        workflow.variables.addVariable(v)
    5764
    58     for p in ['View', 'Modify portal content', 'Change portal events', 'Add OnbudsmanClaim Content', 'List folder contents', 'Access contents information']:
     65    for p in ['View', 'Modify portal content', 'Change portal events', 'Add OnbudsmanClaim Content', 'Add portal contents', 'Access contents information']:
    5966        workflow.addManagedPermission(p)
    6067
     
    7784    stateDef.setPermission('Modify portal content',
    7885                           1,
    79                            ['Owner', 'Manager'])
     86                           ['Anonymous', 'Owner', 'Manager'])
    8087    stateDef.setPermission('Change portal events',
    8188                           1,
     
    8491                           0,
    8592                           ['Anonymous', 'Manager'])
    86     stateDef.setPermission('List folder contents',
    87                            0,
    88                            ['Anonymous', 'Manager', 'Reviewer', 'Member'])
     93    stateDef.setPermission('Add portal contents',
     94                           0,
     95                           ['Anonymous', 'Manager', 'Reviewer', 'Member\nAnonymous', 'Manager', 'Reviewer', 'Member'])
    8996    stateDef.setPermission('Access contents information',
    9097                           1,
     
    125132                           0,
    126133                           ['Anonymous', 'Manager'])
    127     stateDef.setPermission('List folder contents',
    128                            0,
    129                            ['Manager', 'Reviewer', 'Member'])
     134    stateDef.setPermission('Add portal contents',
     135                           0,
     136                           ['Anonymous', 'Manager', 'Reviewer', 'Member'])
    130137    stateDef.setPermission('Access contents information',
    131138                           1,
  • ILPortalCasas/trunk/Ouvidoria/PloneOnbudsman/version.txt

    r500 r501  
    1 0.1 build 12
     10.1 build 13
Note: Veja TracChangeset para ajuda no uso do visualizador de conjunto de mudanças.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.