1 Aug 2004 01:34
1 Aug 2004 06:03
Re: portal_factory wierdness
What type of object are you creating? A shopping cart? Or something that goes into the shopping cart? Is your shopping cart a folder? Something in the session? There's no way to tell what you're doing from what you describe. portal_factory creates a temporary object in the REQUEST. If your temporary object's manage_afterAdd goes in and mucks around with persistent objects, those changes won't go away when the object is either deleted or created properly. "Alan Milligan" <alan <at> balclutha.org> wrote in message news:410BF06B.4040102 <at> balclutha.org... > Hi, > > I have a simple case where I use manage_afterAdd to write info to my > shopping cart upon custom content-type creation. > > However, when I 'edit' my content-type, this uses the prescribed format, > and calls: > > new_context = context.portal_factory.doCreate(context, id) > > This of course creates another instance, and invokes manage_afterAdd again. > > Nothing appears to remove the initial instance (at least not using > _delObject and thus manage_beforeDelete), and I'm left with two of these > things in my shopping cart. > > Am I missing something in making this API well behaved????(Continue reading)
2 Aug 2004 00:39
Re: CMFQuickInstaller (fix)
Simon Pamies wrote:
> ... I think that the following change in 1.5.0 (CVS-HEAD from today) would
> not break so many Product installation....Index: parser.py
> =================================================================== RCS
> file: /cvsroot/collective/CMFQuickInstallerTool/parser.py,v retrieving
> revision 1.3
> diff -r1.3 parser.py
> 39d38
> < os.chdir(os.path.join(INSTANCE_HOME,
> 'Products',product_name,'Extensions')) 40a40
>> os.chdir(os.path.join(INSTANCE_HOME,
>> 'Products',product_name,'Extensions'))
> 93d92
> < os.chdir(os.path.join(INSTANCE_HOME,
> 'Products',product_name,'Extensions')) 94a94
>> os.chdir(os.path.join(INSTANCE_HOME,
>> 'Products',product_name,'Extensions'))
In my setup, I have needed to change it to SOFTWARE_HOME. I could be
mistaken about the purpose of SOFTWARE_HOME vs INSTANCE_HOME, but I
have all my site-wide Products in /opt/zope-2.7/lib/python/Products/, and
that's SOFTWARE_HOME, AFICT. /var/zopeinstance/Products is INSTANCE_HOME.
$ diff -u CMFQuickInstallerTool/parser.py parser.py
--- CMFQuickInstallerTool/parser.py 2004-08-01 17:35:27.949454744 -0500
+++ parser.py 2004-08-01 17:34:37.183172392 -0500
<at> <at> -36,7 +36,7 <at> <at>
def parse(self,product_name):
"""parse the actions to a list consisting dictionaries with the action data"""
(Continue reading)
2 Aug 2004 01:45
Re: Re: CMFQuickInstaller (fix)
On Sunday 01 August 2004 22:39, Jeff Kowalczyk wrote: > In my setup, I have needed to change it to SOFTWARE_HOME. I could be > mistaken about the purpose of SOFTWARE_HOME vs INSTANCE_HOME, but I > have all my site-wide Products in /opt/zope-2.7/lib/python/Products/, and > that's SOFTWARE_HOME, AFICT. /var/zopeinstance/Products is INSTANCE_HOME. I don't think that solves the problem for all cases - what if a Product does not have an Extensions dir? Then your fix'll also break intallation... Perhaps your fix fixes another buglet's have a QI BugDay
-S ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
2 Aug 2004 01:34
Re: Re: CMFQuickInstaller (fix)
On Sun, 01 Aug 2004 23:45:24 +0000, Simon Pamies wrote: > On Sunday 01 August 2004 22:39, Jeff Kowalczyk wrote: >> In my setup, I have needed to change it to SOFTWARE_HOME. I could be >> mistaken about the purpose of SOFTWARE_HOME vs INSTANCE_HOME, but I have >> all my site-wide Products in /opt/zope-2.7/lib/python/Products/, and >> that's SOFTWARE_HOME, AFICT. /var/zopeinstance/Products is >> INSTANCE_HOME. > > I don't think that solves the problem for all cases - what if a Product > does not have an Extensions dir? Then your fix'll also break > intallation... Perhaps your fix fixes another buglet's have a QI > BugDay
> > -S Right, I don't think that my point has much to do with the solution to the other problem in your post. Its just that If I don't make my change, for my setup, installs are broken. I don't see why that line of code uses INSTANCE_HOME instead of SOFTWARE_HOME, (or why not use both). ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
2 Aug 2004 01:11
Re: CMFQuickInstaller (fix)
Jeff Kowalczyk wrote: > Right, I don't think that my point has much to do with the solution to the > other problem in your post. Its just that If I don't make my change, for > my setup, installs are broken. I don't see why that line of code uses > INSTANCE_HOME instead of SOFTWARE_HOME, (or why not use both). FYI: With Zope 2.7 you can define abitrary pathes to load products from. With the include statement you could load products from locations which are neither software nor instance home. Christian ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
2 Aug 2004 10:04
Confused about plone releases
Hi all, I'm confused about the name and numbers of Plone releases. In the page http://plone.org/development/releases/ i see four names in this order: yello warp hicks plaid Looking inside the pages I see these numbers and status: Yello 2.0.1 released Warp ? released (seems it is post 2.0.3?) Hicks 2.0.2 released Plaid 2.2 espected November 22 Here are my questions: * I'm using 2.0.3; what is the current release? * Is 2.1 Warp? If yes, it is released and my question is: from where can I download it. If not is it 2.0.3 and it is the current release? Thanks Mirto -- -- __________________________________________________________ Mirto Silvio Busico ICT Consultant Tel. +39 333 4562651 ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on(Continue reading)
2 Aug 2004 16:06
Re: portal_factory wierdness
> What type of object are you creating? A shopping cart? Or something that > goes into the shopping cart? Is your shopping cart a folder? Something in > the session? There's no way to tell what you're doing from what you > describe. I'm storing this stuff in a ZODB persisted BastionLedger BLOrder, which is specifically designed for both order management and client accounts. This isn't designed to be temporary. The order remains in an incomplete/uninvoiced state until the 'cart' is checked thru. > > portal_factory creates a temporary object in the REQUEST. If your temporary > object's manage_afterAdd goes in and mucks around with persistent objects, > those changes won't go away when the object is either deleted or created > properly. That makes sense. Is this stored in a SESSION? In terms of 'created properly', what piece of code performs this - I have some post-processing to do ... Cheers, Alan ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com(Continue reading)
2 Aug 2004 22:43
How to assign a user to a particular group programatically
Hi, We created custome groups and roles in plone. Now when a particular user joints our site we need to assign this new role to him/her. Can anyone suggeste which script creates user. -sgp ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
3 Aug 2004 02:08
Re: How to assign a user to a particular group programatically
Shibu Pillai wrote: > Hi, > We created custome groups and roles in plone. Now when a particular user > joints our site we need to assign this new role to him/her. Can anyone > suggeste which script creates user. Please ask on the plone users list. This list is for the development OF plone, not the development WITH plone. Christian ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
let's have a QI BugDay
RSS Feed