Conjunto de mudanças 892 no repositório publico


Ignorar:
Timestamp:
10/10/2005 15:09:46 (14 anos atrás)
Autor:
rafahelabazzanella
Mensagem:

Alterado workflow do CalendarX para plone_workflow

Localização:
ILPortalCasas/trunk/Extensions
Arquivos:
3 editados

Legenda:

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

    r838 r892  
    5555    addNoticia(portal)
    5656    addEvento(portal)
    57     addOuvidoria(portal)
     57#    addOuvidoria(portal)
    5858    addWebmail(portal)
    5959    addSaap(portal)
     60    addSaal(portal)
    6061    setupPortal(portal)
    6162    setupSlots(portal)
     
    166167def addAgenda(portal):
    167168    portal.invokeFactory('CalendarX', id='agenda', title='Agenda')
    168     portal_workflow = getToolByName(portal, 'portal_workflow')
    169169    agenda = getattr(portal, 'agenda', None)
    170170    agenda.manage_addProperty('right_slots', [''], 'lines')
     
    296296        utd.setLocallyAllowedTypes(addable_types)
    297297
    298     utilidades = getattr(aq_base(portal), 'utilidades')
    299     addable_types = ['Link']
    300     if getattr(utilidades.aq_base, 'setConstrainTypesMode', None) is not None:
    301         utilidades.setConstrainTypesMode(1)
    302         utilidades.setImmediatelyAddableTypes(addable_types)
    303         utilidades.setLocallyAllowedTypes(addable_types)
    304 
    305     portal_workflow = getToolByName(portal, 'portal_workflow')
    306 
    307298    link = getattr(portal, 'utilidades', None)
    308299    link.invokeFactory('Link', id='interlegis', title='Programa Interlegis', remoteUrl='http://www.interlegis.gov.br')
     300    link.invokeFactory('Link', id='senado', title='Senado Federal', remoteUrl='http://www.senado.gov.br')
     301    link.invokeFactory('Link', id='camara', title='Câmara dos Deputados', remoteUrl='http://www.camara.gov.br')
     302    portal_workflow = getToolByName(portal, 'portal_workflow')
    309303    interlegis = getattr(link, 'interlegis', None)
    310304    if interlegis is not None:
    311305        portal_workflow.doActionFor(interlegis, 'publish')
    312     link.invokeFactory('Link', id='senado', title='Senado Federal', remoteUrl='http://www.senado.gov.br')
    313306    senado = getattr(link, 'senado', None)
    314307    if senado is not None:
    315308        portal_workflow.doActionFor(senado, 'publish')
    316     link.invokeFactory('Link', id='camara', title='Câmara dos Deputados', remoteUrl='http://www.camara.gov.br')
    317309    camara = getattr(link, 'camara', None)
    318310    if camara is not None:
     
    407399        pass
    408400
    409 def addOuvidoria(portal):
    410     portal.invokeFactory('OmbudsmanFolder', id='ouvidoria', title='Ouvidoria', excludeFromNav=1)
     401#def addOuvidoria(portal):
     402#    portal.invokeFactory('OmbudsmanFolder', id='ouvidoria', title='Ouvidoria', excludeFromNav=1)
    411403
    412404def addWebmail(portal):
     
    421413    saap = getattr(portal, 'saap', None)
    422414    saap.manage_addProduct['PageTemplates'].manage_addPageTemplate('index_html', '', SAAP)
     415
     416def addSaal(portal):
     417    portal.invokeFactory('Folder', id='saal', title='SAAL', excludeFromNav=1)
    423418
    424419def setupPortal(portal):
     
    492487    portal_actions.addAction(id='ouvidoria', name='Ouvidoria', action='string:${portal_url}/ouvidoria', condition='', permission='View', category='portal_tabs', visible=1)
    493488
    494     portal_actions.addAction(id='contact', name='Fale com a Câmara', action='string: ${portal_url}/contact-info', condition='', permission='View', category='portal_tabs', visible=1)
    495 
    496489    portal_actions.addAction(id='saap', name='SAAP', action='string: ${portal_url}/saap', condition='member', permission='View', category='portal_tabs', visible=1)
    497490
     
    499492 
    500493    portal_actions.addAction(id='webmail', name='Webmail', action='string:${portal_url}/webmail', condition='', permission='View', category='portal_tabs', visible=1)
     494
     495    portal_actions.addAction(id='contact', name='Fale com a Câmara', action='string: ${portal_url}/contact-info', condition='', permission='View', category='portal_tabs', visible=1)
    501496
    502497    portal_actions.addAction(id='sitemap', name='Site Map', action='string: ${portal_url}/sitemap', condition='', permission='View', category='portal_tabs', visible=1)
     
    627622def setupSin(portal):
    628623    sin_tool = getToolByName(portal, 'sin_tool')
    629     sin_tool.addChannel('zopept', '1h:http://rss.groups.yahoo.com/group/zope-pt/rss')
    630     sin_tool.addMap('Zope-PT', ['zopept'])
     624    channel = sin_tool.addChannel('zopept', '1h:http://rss.groups.yahoo.com/group/zope-pt/rss')
     625    maps = sin_tool.addMap('Zope-PT', ['zopept'])
    631626
    632627def setupSkin(portal):
     
    644639    portal_types = getToolByName(portal, 'portal_types')
    645640    portal_types['Plone Site'].global_allow = False
    646     addable_types=['Folder']
     641    addable_types=['Folder', 'OmbudsmanFolder']
    647642    portal_types['Plone Site'].filter_content_types = True
    648643    portal_types['Plone Site'].allowed_content_types = addable_types
  • ILPortalCasas/trunk/Extensions/Install.py

    r690 r892  
    8484        print >>out,'no workflow install'
    8585
    86     #bind classes to workflows
    87     wft = getToolByName(self,'portal_workflow')
    88     wft.setChainForPortalTypes( ['CaledarX'], "plone_workflow")
    89 
    9086
    9187    # enable portal_factory for given types
     
    130126        print >>out,'no workflow uninstall'
    131127
     128    #bind classes to workflows
     129    wft = getToolByName(self,'portal_workflow')
     130    wft.setChainForPortalTypes( ['CalendarX'], "plone_workflow")
     131
    132132    # try to call a custom uninstall method
    133133    # in 'AppInstall.py' method 'uninstall'
  • ILPortalCasas/trunk/Extensions/InstallWorkflows.py

    r690 r892  
    1515    workflow = ourProductWorkflow(self, 'portal_modelo_workflow')
    1616    workflowTool._setObject('portal_modelo_workflow', workflow)
     17    workflowTool.setChainForPortalTypes( ['CalendarX'],'plone_workflow')
    1718
    1819    return workflowTool
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.