Conjunto de mudanças 3392 no repositório publico


Ignorar:
Timestamp:
23/09/2008 16:10:51 (11 anos atrás)
Autor:
jeanferri
Mensagem:

Atualizações na Intranet feitas pelo Leonardo Miranda, dentre elas: solicitação de eventos através do portal, customização summary_view, divulgação da agenda de eventos

Localização:
ILIntranet/trunk
Arquivos:
122 adicionados
2 removidos
7 editados

Legenda:

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

    r1495 r3392  
    11from Products.CMFCore.utils import getToolByName
     2from Products.ILIntranet.vocabularies import VOCABULARIOS
    23from StringIO import StringIO
    34
     
    1718                                button, actionType, action)
    1819    print >> out, "Added action %s to %s" % (action, template)
     20
     21def setILIntranetProperties(self,out):
     22    portal_properties = getToolByName(self, 'portal_properties')
     23    if not hasattr(portal_properties,'ilintranet_properties'):
     24       portal_properties.manage_addPropertySheet('ilintranet_properties','Propriedades da Intranet Interlegis')
     25
     26    for vocab in VOCABULARIOS.keys():
     27        if not portal_properties.ilintranet_properties.hasProperty(vocab):
     28           portal_properties.ilintranet_properties._setProperty(vocab, VOCABULARIOS[vocab], 'lines')
     29   
     30    print >> out, "Added property portal"
    1931
    2032def install(self):
     
    4658                            'success', 'DocInterlegis', None, 'traverse_to', 'string:doc_interlegis_save')
    4759
     60    setILIntranetProperties(self, out)
     61   
    4862    return out.getvalue()
    4963
  • ILIntranet/trunk/Extensions/Install.py

    r1709 r3392  
    144144        "PastaDocInterlegis",
    145145        "IntranetTool",
     146        "EventoInterlegis",
    146147        ] + factory_tool.getFactoryTypes().keys()
    147148    factory_tool.manage_setPortalFactoryTypes(listOfTypeIds=factory_types)
     
    261262
    262263    return out.getvalue()
     264
  • ILIntranet/trunk/Extensions/InstallWorkflows.py

    r1709 r3392  
    1616    workflowTool._setObject('ligacao_interurbana_workflow', workflow)
    1717    workflowTool.setChainForPortalTypes(['LigacaoInterurbana'], workflow.getId())
     18   
    1819    ourProductWorkflow = ExternalMethod('temp',
    1920                         'temp',
     
    2324    workflowTool._setObject('controle_intranet_workflow', workflow)
    2425    workflowTool.setChainForPortalTypes(['PastaLigacaoInterurbana', 'PastaDocInterlegis'], workflow.getId())
     26   
    2527    ourProductWorkflow = ExternalMethod('temp',
    2628                         'temp',
     
    3133    workflowTool.setChainForPortalTypes(['DocInterlegis'], workflow.getId())
    3234
     35    ourProductWorkflow = ExternalMethod('temp',
     36                         'temp',
     37                         productname+'.'+'evento_portal_interlegis_workflow',
     38                         'createevento_portal_interlegis_workflow')
     39    workflow = ourProductWorkflow(self, 'evento_portal_interlegis_workflow')
     40    workflowTool._setObject('evento_portal_interlegis_workflow', workflow)
     41    workflowTool.setChainForPortalTypes(['EventoInterlegis'], workflow.getId())
     42
     43
    3344    return workflowTool
  • ILIntranet/trunk/IntranetTool.py

    r1704 r3392  
    121121##/code-section module-footer
    122122
    123 
    124 
  • ILIntranet/trunk/PastaDocInterlegis.py

    r1716 r3392  
    8686    actions =  (
    8787
    88 
    8988       {'action':      "string:${object_url}/docs_interlegis_view",
    9089        'category':    "object",
     
    9493        'condition'  : 'python:1'
    9594       },
    96 
    9795
    9896    )
  • ILIntranet/trunk/__init__.py

    r1498 r3392  
    5252    import DocInterlegis
    5353    import PastaDocInterlegis
     54    import EventoInterlegis
    5455    import IntranetTool
    5556
  • ILIntranet/trunk/model/clean_trash.sh

    r478 r3392  
    11# Limpeza geral do produto ILIntranet
     2caminho='/home/leonardo/Desenvolvimento/products_interlegis/intranet/repository/ILIntranet/'
    23
    34echo "==>> Limpando lixo..."
    4 find ./ILIntranet/ -name "*.pyc" -exec rm {} \;
    5 find ./ILIntranet/ -name "*.pyo" -exec rm {} \;
    6 find ./ILIntranet/ -name "*~" -exec rm {} \;
    7 find ./ILIntranet/ -name "*.zuml.bak.*" -exec rm {} \;
     5find $caminho -name "*.pyc" -exec rm {} \;
     6find $caminho -name "*.pyo" -exec rm {} \;
     7find $caminho -name "*~" -exec rm {} \;
     8find $caminho -name "*.zuml.bak.*" -exec rm {} \;
    89
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.