Conjunto de mudanças 1048 no repositório publico


Ignorar:
Timestamp:
25/10/2005 15:13:40 (14 anos atrás)
Autor:
rafahelabazzanella
Mensagem:

Implementado worklist no estado pendente

Localização:
ILPortalCasas/trunk
Arquivos:
6 editados

Legenda:

Não Modificado
Adicionado
Removido
  • ILPortalCasas/trunk/Extensions/AppInstall.py

    r1039 r1048  
    678678def addBackup(portal):
    679679    DIR = INSTANCE_HOME+'backup'
    680     if os.path.exists(DIR):
    681       print >> out, 'Ja existe um diretorio com este nome na raiz da sua instancia.'
    682     else:
    683       os.system('mkdir backup')
    684        
     680    os.system('mkdir backup')
     681
     682
    685683
    686684def uninstall(self):
  • ILPortalCasas/trunk/Extensions/portal_modelo_workflow.py

    r1040 r1048  
    4040    """Define the portal_modelo_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 ['Review portal content', 'pending']:
     46        if not role in self.__ac_roles__:
     47            data.append(role)
     48    portal.__ac_roles__ = tuple(data)
    4249
    4350    workflow.setProperties(title='portal_modelo_workflow')
     
    5663        workflow.variables.addVariable(v)
    5764
    58     for p in ['View', 'Modify portal content', 'Change portal events', 'Access contents information']:
     65    for p in ['View', 'Modify portal content', 'Change portal events', 'Access contents information', 'worklist:guard', 'worklist:guard_transitions']:
    5966        workflow.addManagedPermission(p)
    6067
    61     for l in []:
     68    for l in ['review_queue']:
    6269        if not l in workflow.worklists.objectValues():
    6370            workflow.worklists.addWorklist(l)
     
    113120                           0,
    114121                           ['Manager', 'Reviewer'])
     122    stateDef.setPermission('worklist:guard',
     123                           0,
     124                           ['Review portal content'])
     125    stateDef.setPermission('worklist:guard_transitions',
     126                           0,
     127                           ['pending'])
    115128    stateDef.setPermission('Access contents information',
    116129                           1,
     
    234247    ## Worklists Initialization
    235248
     249    worklistDef = workflow.worklists['review_queue']
     250    worklistStates = ['pending']
     251    actbox_url = "%(portal_url)s/search?review_state=" + "&review_state=".join(worklistStates)
     252    worklistDef.setProperties(description="Reviewer tasks",
     253                              actbox_name="Pending (%(count)d)",
     254                              actbox_url=actbox_url,
     255                              actbox_category="global",
     256                              props={'guard_permissions': 'Review portal content',
     257                                     'var_match_review_state': ';'.join(worklistStates)})
    236258
    237259    # WARNING: below protected section is deprecated.
  • ILPortalCasas/trunk/__init__.py

    r690 r1048  
    4646    # imports packages and types for registration
    4747
     48
    4849    # initialize portal content
    4950    all_content_types, all_constructors, all_ftis = process_types(
  • ILPortalCasas/trunk/config.py

    r1040 r1048  
    1515setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
    1616ADD_CONTENT_PERMISSIONS = {
     17
    1718}
    1819
  • ILPortalCasas/trunk/version.txt

    r1040 r1048  
    1 0.1 build 7
     10.1 build 9
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.