Discussion:
[Erp5-dev] Bug on Business Templates Update
Brice LEROY
2006-02-24 11:09:18 UTC
Permalink
Hi,
I try to update my ERP5 Site with portal templates. First, I update my ERP5
core, after I update ERP5_trade.

Unfortunatly, the update scrash on portal_categories/trade_date upgrade :
obj = folder._getOb(id)

My pdb :
(Pdb) l
987
988 def runcall(*args):
989 return Pdb().runcall(*args)
990
991 def set_trace():
992 -> Pdb().set_trace()
993
994 # Post-Mortem interface
995
996 def post_mortem(t):
997 p = Pdb()
(Pdb) s
/home/sdn/zope/Products/ERP5/Document/BusinessTemplate.py(712)_resolvePath()
-> obj = folder._getOb(id)
(Pdb) id
'trade_date'
(Pdb) folder
<CategoryTool at /sdn/portal_categories>
(Pdb)

In old business templates erp_trade, this category was created, so in new
BTemplate it was not necessary to be recreate it. The problem is that
meanwhile I delete this base_category.

So, my question is that is it possible to compare the new business template
content to the installed version instead of the previous business template ?

Best regards
--
Brice LEROY
EURL Scilice
http://www.scilice.fr
Aurélien Calonne
2006-02-27 17:11:05 UTC
Permalink
Post by Brice LEROY
So, my question is that is it possible to compare the new business template
content to the installed version instead of the previous business template ?
Yes you can compare a business template to objects in zodb, just select it in
the listbox in portal templates and do the action Diff.

The same behaviour is also done when doing action reinstall on a business
template
--
Aur?lien
Loading...