Conjunto de mudanças 1027 no repositório publico


Ignorar:
Timestamp:
21/10/2005 10:33:26 (14 anos atrás)
Autor:
rafahelabazzanella
Mensagem:

Setadas tarefas no portal_maintenance quando instala produto

Arquivo:
1 editado

Legenda:

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

    r1019 r1027  
    22from Products.CMFPlone.utils import _createObjectByType
    33from Products.ExternalMethod.ExternalMethod import manage_addExternalMethod
     4from Products.PloneMaintenance.MaintenanceTask import addMaintenanceTask
    45from Products.ILPortalCasas.config import *
    56from Acquisition import aq_base
     
    527528                             'moveBackup')
    528529
    529     pm_tasks = portal_maintenance.tasks
    530     pm_tasks.invokeFactory('MaintenanceTask', 'pack')
    531     pm_tasks.pack._updateProperty('script_name','packDB')
    532     pm_tasks.pack._updateProperty('title','pack')
    533     pm_tasks.pack._updateProperty('scheduled_hour','22')
     530    portal_maintenance.tasks.manage_addProduct['PloneMaintenance'].addMaintenanceTask('um')
     531    subscription_task = portal_maintenance.tasks
     532    subscription_task.um._updateProperty('title', 'Pack Data.fs')
     533    subscription_task.um._updateProperty('script_name', 'packDB')
     534
     535    portal_maintenance.tasks.manage_addProduct['PloneMaintenance'].addMaintenanceTask('tres')
     536    subscription_task = portal_maintenance.tasks
     537    subscription_task.tres._updateProperty('title', 'Backup zope.conf and Products')
     538    subscription_task.tres._updateProperty('script_name', 'backupFiles')
     539
     540    portal_maintenance.tasks.manage_addProduct['PloneMaintenance'].addMaintenanceTask('quatro')
     541    subscription_task = portal_maintenance.tasks
     542    subscription_task.quatro._updateProperty('title', 'Move Data.fs.old')
     543    subscription_task.quatro._updateProperty('script_name', 'moveBackup')
    534544
    535545
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.