Pessoal,
descobrimos um novo jeito de não excluir os objetos criados na instalação de
um produto.
no método beforeUninstall do arquivo install.py coloque a linha:
cascade.remove('portalobjects')
Até
2006/11/24, Wesley Lopes [EMAIL PROTECTED]:
Rafahela,
funcionou direitinho! Valeu mesmo!
Rafahela,
funcionou direitinho! Valeu mesmo!
abs,
Wesley
Em 23/11/06, Rafahela Bazzanella [EMAIL PROTECTED] escreveu:
Oi Wesley,
Acho que este código pode ajudar:
def uninstall(self):
portal = self
# the ids of the objects to keep
locked_ids = ('id1', 'id2')
po =
Oi Wesley,
Acho que este código pode ajudar:
def uninstall(self):
portal = self
# the ids of the objects to keep
locked_ids = ('id1', 'id2')
po = self.portal_quickinstaller.nome_produto.portalobjects
for id in locked_ids:
if id in po:
po.remove(id)