17 Apr
2002
17 Apr
'02
8:02 p.m.
I would like to use manage_addProduct from a unit test running outside of zope. How can I do that. Are there examples someplace ?? thanks Robert www.redcor.ch
18 Apr
18 Apr
9:59 p.m.
New subject: [Zope] using manage_addProduct from a unit test ????
Robert Rottermann writes:
I would like to use manage_addProduct from a unit test running outside of zope. Outside of Zope but on a Zope ZODB?
If you answer "yes", then import Zope R= Zope.app() get_transaction().begin() dest=R.<path to your destination> dest.manage_addProduct[...]... # use as usual get_transaction().commit() If you answer "no", then you need to emulate part of Zope's product registry -- too difficult to explain here. Dieter
8754
Age (days ago)
8755
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dieter Maurer -
Robert Rottermann