Re: [Zope-dev] Getting Unauthorized from __bobo_traverse__.
[Michael R. Bernstein] | On Wed, 2001-09-12 at 22:45, Erik Enge wrote: | | > *scabbers off to the CVS* Thanks! :) | | Eeew! | | I hope you meant 'scampers', as I have horrific visions of what | 'scabbering off' would look like... Hehe! Oops... Yeah, that's what I meant. Ever since I started learing French my English has started to suck. Maybe it's only mental. ;-) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] problem with catalog awareness
If you are using ZClasses with default constructors, this is most likely due to a Product factory method updating a ZClass instance *after* adding it to a folder. CatalogAware will index the instance in the ZCatalog before it gets its fields updated in the constructor, which means that what you get cataloged is a mostly empty object (where 'empty' means 'with default values'). You should call reindex_object() on the ZClass instance after changing it in the constructor, and also everytime you change it. This happens because CatalogAware doesn't track changes to objects. It only tracks removal, insertion and renaming (I think) which means that when you cut/copy and then paste the object, the pasted object works as you expected. Cheers, Leo. On Thu, Sep 13, 2001 at 12:56:25PM +, Lukas Maag wrote: > hi all, > > i made a catalog aware class and want to use it with a catalog. i'm running > zope 2.1.4 on a nt server (sp5). > when i add the catalog aware object, it is automatically listed in the catalogs > 'catalog' tab, but the indexes are not automatically > updated (when i want to search them with a search interface, they do not exist). > > strange thing: when i copy the object in the manage enviroment, an paste it > afterwards at same place, everything work fine! > > can someone help me! > thanx ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Getting Unauthorized from __bobo_traverse__.
On Wed, 2001-09-12 at 22:45, Erik Enge wrote: > [Evan Simpson] > > | If you grab OFS/Traversal.py (I think) from the CVS root, it should > | fix the problem. > > *scabbers off to the CVS* Thanks! :) Eeew! I hope you meant 'scampers', as I have horrific visions of what 'scabbering off' would look like... Michael. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Ann: PluggableIndex proposal
The subject was midleading. It should be PLUGGABLESPLITTERS. *sigh* today is not my day, Andreas - Original Message - From: Andreas Jung To: [EMAIL PROTECTED] Sent: Thursday, September 13, 2001 11:08 Subject: [Zope-dev] Ann: PluggableIndex proposal Please review and comment the new proposal for pluggable splitters: http://dev.zope.org/Wikis/DevSite/Proposals/PluggableSplitters Cheers, Andreas ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPT equivalent for DTMLFile?
Chris Withers writes: > I'd like to use ZPT for product add pages and the like, where I'd usually use > DTMLFile. Look at "Products.PageTemplates.PageTemplateFile". Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] core session tracking and zope 2.5 integration
Chris - I'm not sure of your plans for integrating core session tracking with zope 2.5. This may be obvious to you but I just realized today how I would really like to use core session tracking. I haven't yet investigated the feasability of an implementation. However, it would be nice to have 3 out-of-the-box choices for acl_users folders: - the current acl_users folder - a new acl_users folder with core session tracking support (ram-based storage) - a new acl_users folder with core session tracking support (possibly mounted zeo client storage) The core session tracking based acl_users folders would hide all of the details of installing and setting up the current core session tracking product. By combining this with something like the cookie crumbler, password-less users authenticated only by session key (user name equal to the session key) could be automatically created and expired when the session expires. The session data could also simply hang off of the authenticated user object and default roles (or no roles at all) could be assigned at the user's creation time. The session based acl_users folder would behave the same as the current acl_users folder for users whose expiration time is NONE or less than zero. In essence, it would be really helpful to make the core session tracking product as easy to use (and install) as the REQUEST object. I need to elaborate more on my thoughts but I thought it would be worthwhile to ask if something like this is already in the works before I spend too much investigating how to implement such a acl_user folder. thanks, - joe n. -- [EMAIL PROTECTED] +81-3-3823-5757 2-10-7 Tabata, Kita-ku, Tokyo 114-0014, Japan $B")(B114-0014 $BEl5~ETKL6hEDC<#2CzL\(B10-7 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Ann: PluggableIndex proposal
Please review and comment the new proposal for pluggable splitters: http://dev.zope.org/Wikis/DevSite/Proposals/PluggableSplitters Cheers, Andreas
[Zope-dev] bug in OFS/Traversable.py
Hi there, There appears to be a bug in Zope 2.4.1's OFS/Traversable.py. I've tried to identify the same bug in the CVS, but oddly enough I couldn't find it. There doesn't appear to be any Zope 2.4.1 CVS branch and the Zope 2.4 branch didn't have any changes to this file in 3 months, but doesn't seem to have the same problem. Odd. Anyway, the bug isn't a large one; just a few uses of 'has' where 'hasattr' should be used (or there should be a line 'has = hasattr' somewhere near 'get = getattr'). Here's a diff that seems to fix the problem: 193c193 < if has(o, 'im_self'): --- > if hasattr(o, 'im_self'): 195c195 < elif (has(get(object, 'aq_base', object), name) --- > elif (hasattr(get(object, 'aq_base', object), name) So again, this is true for Zope 2.4.1 (source release), while the CVS does not appear to have the problem (but it just looks rather different in other places as well, even though last change was 3 months ago; I do not understand). Anyway, just so the bug won't be present in any new release. Regards, Martijn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] thread locking and ZODB
On Thu, 13 Sep 2001 09:40:43 +1000 Terry Kerr <[EMAIL PROTECTED]> wrote: > Chris, > > I notice in the ZODB2 article that it states that the conflict > resolution method "should return the state of the object after > resolving > the differences.". However, in the example the method only returns > the > portion of the state that was deamed to be in conflict. Shouldn't it > be > returning the entire new state dictionary? I believe it should, and that the article is in error, but really, I wouldn't go on that without hearing from someone like Jim or Shane. -Michel ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] IPC10 Zope Track
(Please forgive the cross-post -- I need to reach the whole Zope community here). As the chair of the Zope track for the Tenth International Python Conference, I am writing to ask members of the Zope community to submit proposals for talks to be presented during the track. Here are the details: - Conference: February 4-7, 2002, Hilton Alexandria Mark Center, Alexandria, Virginia (http://www.python10.com) - Zope Track: http://www.zope.org/Resources/IPC10 - Proposal Submission: http://www.zope.org/Resources/IPC10/proposals Thanks very much! Please direct any questions about the conference, or any problems with the submission app, to me. Tres. -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] problem with catalog awareness
hi all, i made a catalog aware class and want to use it with a catalog. i'm running zope 2.1.4 on a nt server (sp5). when i add the catalog aware object, it is automatically listed in the catalogs 'catalog' tab, but the indexes are not automatically updated (when i want to search them with a search interface, they do not exist). strange thing: when i copy the object in the manage enviroment, an paste it afterwards at same place, everything work fine! can someone help me! thanx ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] ZPT equivalent for DTMLFile?
> I'd like to use ZPT for product add pages and the like, where > I'd usually use > DTMLFile. > > How do I do that? PageTemplates itself does this. Take a look at the initialize method in PageTemplates/ZopePageTemplate.py /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPT equivalent for DTMLFile?
Hi, I'd like to use ZPT for product add pages and the like, where I'd usually use DTMLFile. How do I do that? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] thread locking and ZODB
Terry Kerr wrote: > > portion of the state that was deamed to be in conflict. Shouldn't it be > returning the entire new state dictionary? Dunno, I wonder if Mike can help, given he wrote the article? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )