Re: [Zope3-dev] formlib addForm
Gary Poster wrote: > > On Sep 25, 2005, at 3:58 PM, Christian Lueck wrote: > >> ... >> zope.app.container.interfaces.IAdding seems most promising -- but what >> to do with it? >> >> Question: >> Is it right to register a formlib-based addview with the >> -directive? > > > Yep. > >> How do I get the + ? ;) > > > The '+' is an implementation of IAdding. You first need to register > the page for the interface, a la > > > permission="zope.Public" >for="zope.app.container.interfaces.IAdding" /> > > and then register a menu item for the adding that points to it, a la > > title="Whatever" > factory="path.to.your.whatever.factory" > permission="zope.Public" > view="addWhatever.html" > /> > Cool, that's working fine. Thank you! > The factory is used to get the interface to check constraints. You > might be able to do without it; check APIdoc if you are curious. Huh, that means that the '+' is a kind of global context, or to put it different: one can request the addview in arbitrary '+'-contexts, for example by accessing the url '/theIntendedContainerForWhatever/+/addWhatever.html' but even by '/noPlaceForWhatever/+/addWhatever.html'. There's no exception until a collision with ContainerTypeConstraints when the factory is called (or maybe when the object which is returned by the factory is passed to the add-method (the factory itself seems to have no idea about the context)). Regards, Christian ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
RE: [Zope3-dev] Repository broken
A small note about TortoiseSVN and svn+ssh connection on windows. The TortoiseSVN version 1.2.3 is broken, see: http://tortoisesvn.tigris.org/ChangeLog.txt there is a new bugfixed version 1.2.4 at: http://sourceforge.net/project/showfiles.php?group_id=138498&package_id=1519 48 Regards Roger Ineichen Projekt01 GmbH www.projekt01.ch _ END OF MESSAGE > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Roger Ineichen > Sent: Monday, September 26, 2005 1:16 AM > To: [EMAIL PROTECTED] > Cc: zope3-dev@zope.org > Subject: RE: [Zope3-dev] Repository broken > > Hi Jim, > > Ok, sorry about that, > > it seems that I only have a problem with the SSH checkout. > I guess the problem depends on my SSH setup. > > Regards > Roger Ineichen > > Projekt01 GmbH > www.projekt01.ch > _ > END OF MESSAGE > > > -Original Message- > > From: Jim Fulton [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 26, 2005 12:47 AM > > To: [EMAIL PROTECTED] > > Cc: zope3-dev@zope.org > > Subject: Re: [Zope3-dev] Repository broken > > > > Roger Ineichen wrote: > > > Hi Jim, > > > > > > Can you fix the subversion repository? > > > > It seems OK to me. > > > > Jim > > > > -- > > Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! > > CTO (540) 361-1714http://www.python.org > > Zope Corporation http://www.zope.com http://www.zope.org > > > > ___ > Zope3-dev mailing list > Zope3-dev@zope.org > Unsub: > http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch > > ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] event before delete
Florent Guillaume wrote: More generally, there's a difference in philosophy between Zope 2 and Zope 3 here: - Zope 2 calls manage_beforeDelete *before* the removal, - Zope 3 sends IObjectRemovedEvent *after* the removal. This will make some porting / compatibility more difficult. I may add an IObjectWillBeRemovedEvent in Five for that, but maybe it makes sense to have it in pure Zope 3 ? See if it's useful and let us know. :) Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] Visualization tool for profiler/hotshot
Does anyone know of a GUI tool for exploring stats files generated by a profiler? -- Garrett ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] event before delete
On Sep 26, 2005, at 2:13 PM, Fred Drake wrote: On 9/26/05, Florent Guillaume <[EMAIL PROTECTED]> wrote: This will make some porting / compatibility more difficult. I may add an IObjectWillBeRemovedEvent in Five for that, but maybe it makes sense to have it in pure Zope 3 ? I think it does. Again, http://www.zope.org/Wikis/DevSite/Projects/ ComponentArchitecture/ActionPlans . Certainly, simply implementing a new event has a certain appeal to it, in comparison. ;-) The proposal is a bit old; I think it still has merit, but it maybe should be discussed again to see if any lessons learned since shed light on it. Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] _notifyOfCopyTo
On Sep 26, 2005, at 2:10 PM, Stephan Richter wrote: On Monday 26 September 2005 13:36, Florent Guillaume wrote: In Zope 3, is it worthwhile to have a kind of ObjectWillBeCopied/ Added event for that, or do you guys feel that this kind of vetoing should be done by simply subscribing to ObjectAddedEvent or one of its friends? I think this is a good event to have. And the way event subscribers can veto is by raising a user exception. We have this zope.app.dependable package, but it will not work for this use case; maybe this code needs some new thought. I believe this is still the final goal for this sort of story: http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ ActionPlans Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] event before delete
On 9/26/05, Florent Guillaume <[EMAIL PROTECTED]> wrote: > This will make some porting / compatibility more difficult. I may add an > IObjectWillBeRemovedEvent in Five for that, but maybe it makes sense to > have it in pure Zope 3 ? I think it does. -Fred -- Fred L. Drake, Jr. Zope Corporation ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] _notifyOfCopyTo
On Monday 26 September 2005 13:36, Florent Guillaume wrote: > In Zope 3, is it worthwhile to have a kind of ObjectWillBeCopied/ > Added event for that, or do you guys feel that this kind of vetoing > should be done by simply subscribing to ObjectAddedEvent or one of > its friends? I think this is a good event to have. And the way event subscribers can veto is by raising a user exception. We have this zope.app.dependable package, but it will not work for this use case; maybe this code needs some new thought. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] event before delete
More generally, there's a difference in philosophy between Zope 2 and Zope 3 here: - Zope 2 calls manage_beforeDelete *before* the removal, - Zope 3 sends IObjectRemovedEvent *after* the removal. This will make some porting / compatibility more difficult. I may add an IObjectWillBeRemovedEvent in Five for that, but maybe it makes sense to have it in pure Zope 3 ? Florent Florent Guillaume <[EMAIL PROTECTED]> wrote: > Zope 2, when it copies/moves an object, calls ob._notifyOfCopyTo to > allow it to veto the copy *before* it is done if it doesn't like the > destination container. > > In Zope 3, is it worthwhile to have a kind of ObjectWillBeCopied/ > Added event for that, or do you guys feel that this kind of vetoing > should be done by simply subscribing to ObjectAddedEvent or one of > its friends? > > I'm asking because I'm in the middle of converting Zope 2's OFS > spaghettis to cleaner event-based code (and deprecating things like > _notifyOfCopyTo and _postCopy). -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] _notifyOfCopyTo
Zope 2, when it copies/moves an object, calls ob._notifyOfCopyTo to allow it to veto the copy *before* it is done if it doesn't like the destination container. In Zope 3, is it worthwhile to have a kind of ObjectWillBeCopied/ Added event for that, or do you guys feel that this kind of vetoing should be done by simply subscribing to ObjectAddedEvent or one of its friends? I'm asking because I'm in the middle of converting Zope 2's OFS spaghettis to cleaner event-based code (and deprecating things like _notifyOfCopyTo and _postCopy). Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Content provider API
On Saturday 24 September 2005 20:05, Roger Ineichen wrote: > I added a proposal where is important for the CPSSkin work and the > zope.app.viewlet implementation. > Can you take a look at it and tell me what do you think about. I am going to chat with you about this at the sprint next week, since I don;t have time to look at it carefully now. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] zope.app.interpreter
On Monday 26 September 2005 14:47, netlander wrote: > Why module zope.app.interpreter there are in SVN repository, but not > included in releases 3.1.0c2, 3.1.0c3 ? I think we did not release it in 3.0 either. Usually when something is not in the core distribution, we are not ready to commit ot the API, or in this case are not sure whether it is secure enough. There are many packages we are not distributing for those reasons. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] A Call for Slaves
[Chris Withers] > So, are these two what I'm after for 6 and 7 respectively? > > http://www.amazon.co.uk/exec/obidos/ASIN/B4U6ZC/qid=1127557337/sr=1-4/ref=sr_1_3_4/026-8900047-5040402 > > http://www.amazon.co.uk/exec/obidos/ASIN/B89GKV/qid=1127557337/sr=2-1/ref=sr_2_3_1/026-8900047-5040402 Sorry, I don't think so. It's confusing: MS has changed the names of these things since I got mine. Your links above point to Standard editions. At least the second link has text explaining why that's unsuitable: This is the Standard edition, which is primarily intended for learning. Although it has all you need to create both Windows and Web applications, the compiler is non-optimising. Professional developers should consider Visual Studio.NET Professional Edition 2003, which includes a more advanced version of Visual C++ ... As a result, nobody uses Standard editions for serious development. The lowest (cheapest) level at which they include an optimizing compiler is usually named the Professional edition. ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
RE: [Zope3-dev] browserDefault uses '@@' for containers
Hi Garrett [...] > > > > I'm running into a bug with this behavior. > > > > If I call myContainer/@@ or myContainer/ and get my registred > > index.html (template) view back. There is the following part > > rendered into the template ''. > > Does this extra text show up even if your template is empty? > I.e. delete the template text and see what happens. I was really confused about this. But I think I located this bug now. It has nothing to do with the '@@' view. The problem is somewhere around the method __insertBase in the publisher.browser.py. After a bugfix from Stephan and Bjorn the bug was gone, at least if you directly access the zope3 server. Now the problem is, If you call a view via a Apache virtual host and this view doesn't define a BASE url, the BASE URL get rendered with the __insertBASE method. This ends in wrong quoted tags after the rendered BASE URL. I don't know why this happens and I also don't know why we need a BASE URL implicit rendered into a page. I have no idea right now what's happen there. Regards Roger Ineichen ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] A Call for Slaves
Tim Peters wrote: [Chris Withers] Oh, sorry, I meant "how do you select the right version of VC++?" You don't; distutils does; if you use a Python 2.3 on Windows, its distutils will use VC6 to compile C extensions; if you use a Python 2.4 on Windows, its distutils will use VC7. It's all driven by which Python you use to run setup.py. *nods* and how do you install both VC 6 and VC 7 at the same time? Just run their installers. They don't interfere with each other (well, not unless you do something bizarre, like force the installers to use the same installation directory -- accept the defaults and there's no problem). So, are these two what I'm after for 6 and 7 respectively? http://www.amazon.co.uk/exec/obidos/ASIN/B4U6ZC/qid=1127557337/sr=1-4/ref=sr_1_3_4/026-8900047-5040402 http://www.amazon.co.uk/exec/obidos/ASIN/B89GKV/qid=1127557337/sr=2-1/ref=sr_2_3_1/026-8900047-5040402 cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] zope.app.interpreter
Hi, Why module zope.app.interpreter there are in SVN repository, but not included in releases 3.1.0c2, 3.1.0c3 ? It's discrimination policy against scriptwriters? :-) - Regards, Netlander ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
RE: [Zope3-dev] browserDefault uses '@@' for containers
On , [EMAIL PROTECTED] wrote: > Hi together > >> Behalf Of Fred Drake >> Sent: Friday, September 23, 2005 4:13 AM >> To: Gary Poster >> Cc: Garrett Smith; zope3-dev >> Subject: Re: [Zope3-dev] browserDefault uses '@@' for containers >> >> On 9/22/05, Gary Poster <[EMAIL PROTECTED]> wrote: >>> I believe that the idea is that the container traverser wants to >>> specify that the default view name is a view, not an object in the >>> container. That is, if the default view is named index.html, and I >>> have an object in the container named index.html, './index.html' >>> will traverse to the object in the container while @@index.html will >>> render the container view named 'index.html'. Sometimes you *want* >> >> That's right. At one point it wasn't doing that (as best I recall), >> so the default view was traversing when it shouldn't. We decided to >> change it specifically because it produced unexpected behavior. > > I'm running into a bug with this behavior. > > If I call myContainer/@@ or myContainer/ and get my registred > index.html (template) view back. There is the following part > rendered into the template ''. Does this extra text show up even if your template is empty? I.e. delete the template text and see what happens. -- Garrett ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] formlib addForm
On Sep 25, 2005, at 3:58 PM, Christian Lueck wrote: ... zope.app.container.interfaces.IAdding seems most promising -- but what to do with it? Question: Is it right to register a formlib-based addview with the -directive? Yep. How do I get the + ? ;) The '+' is an implementation of IAdding. You first need to register the page for the interface, a la and then register a menu item for the adding that points to it, a la The factory is used to get the interface to check constraints. You might be able to do without it; check APIdoc if you are curious. Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com