Re: [Zope] Folder Listing as a Plone Portlet Mini-HOWTO (draft)

2005-04-01 Thread David Convent
Matthew X. Economou wrote: http://web.irtnog.org/Members/xenophon/plone/portlet-folder-contents This folder listing portlet displays the title of the folder, its description, and a list of each item in the folder. Mousing over each link pops up its description in browsers that understand the

Re: [Zope] question about manipulating zcatalog query results

2005-04-01 Thread Chris Withers
Ira Sher wrote: There is no call to _getiter_, of course, in the script, but whenever I use any for looping on the results, I get a variation of the above. Any thoughts on this? Hmm, I should have asked this in the first place, but can you post the source code for your test python script?

Re: [Zope] HTTPSConnection Python 2.3.4

2005-04-01 Thread Chris Withers
Paul Winkler wrote: I have a somewhat similar issue; an in-house Zope product is retrieving some information from a remote URL. If I hit the same URL from the command line on the zope server (using wget), it works fine. When Zope hits it, it gets a Bad Gateway error from the remote (Apache +

Re: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Chris Withers
Andy Yates wrote: Compilation failed xml.parsers.expat.ExpatError: syntax error: line 3, column 0 This just means you had an XML error in your css ZPT. Usually a missing close tag or / in a something / will do it. Don't use DTML, it's evil, you're doing the right thing already ;-) cheers, Chris

Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread Chris Withers
Florent Guillaume wrote: from AccessControl import getSecurityManager user = getSecurityManager().getUser() print user.getRoles() return printed returns ('Manager', 'Authenticated') when logged in as a manager This queries the user object, and returns all roles the implementation decided to

Re: [Zope] ClockServer 0.1 released

2005-04-01 Thread Chris Withers
Chris McDonough wrote: It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often. Isn't that effectively just creating a seperate thread though? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope] ClockServer 0.1 released

2005-04-01 Thread Chris McDonough
On Fri, 2005-04-01 at 02:40, Chris Withers wrote: Chris McDonough wrote: It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often. Isn't that effectively just creating a seperate thread though? No. It reuses the thread pool

Re: [Zope] script python error

2005-04-01 Thread Vangelis Mihalopoulos
Maybe using quotese.g. RESP.redirect('/store_nic/consumables/test') prabuddha ray wrote: wats wrong with the given puthon script request = container.REQUEST RESP = request.RESPONSE passwd = context.request.password1 user = context.request.username,

[Zope] JOB: CONTRACT: Python Programmer ­ DC Area, but 90% Telecommute

2005-04-01 Thread Beau
JOB: CONTRACT: Python Programmer ­ DC Area, but 90% Telecommute My client is looking for a Python programmer to work 10-20hours a week, starting immediately, through mid-June, to help us complete develop on a web-based collaboration service (development, testing, production). REQUIRED:

[Zope] Plone/Zope on Debian Sarge

2005-04-01 Thread Peter Bittner
Hi there! I am running a Debian Linux box with Debian/testing (Sarge) and I am trying to get Plone up and running. I have made a clean, new install of the whole system last week, so all packages are really up-to-date and there was no dirty installation that was updated. I have noticed that

[Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jim Fulton
ZClasses are a feature that support through-the-web development. Many people have found them useful in the past, but they have some significant deficiencies, including: - They can't be managed with file-system tools, especially revision control systems like CVS and subversion. - They don't work

Re: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Stefan H. Holek
http://simplates.zetaweb.com/ On 31. Mär 2005, at 19:38, Andy Yates wrote: So, how do I make a dynamic style sheet that has the correct (text/css) content type? -- Software Engineering is Programming when you can't. --E. W. Dykstra ___ Zope maillist -

RE: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Pascal Peregrina
I do exactly the same thing, except that I do it directly in the ZPT : span tal:omit-tag= tal:define=setcontentype python:here.REQUEST.RESPONSE.setHeader('content-type', 'text/css')/ Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Andy Yates Envoyé

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Dennis Allison
+1 for deprecation. On Fri, 1 Apr 2005, Jim Fulton wrote: ZClasses are a feature that support through-the-web development. Many people have found them useful in the past, but they have some significant deficiencies, including: - They can't be managed with file-system tools, especially

RE: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Ben Mason
And another +1 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Allison Sent: 01 April 2005 15:44 To: Jim Fulton Cc: zope@zope.org Subject: Re: [Zope] Does anyone care whether we deprecate ZClasses? +1 for deprecation. On Fri, 1

[Zope] Re: Plone/Zope on Debian Sarge

2005-04-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Bittner wrote: I am running a Debian Linux box with Debian/testing (Sarge) and I am trying to get Plone up and running. I have made a clean, new install of the whole system last week, so all packages are really up-to-date and there was

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread bruno modulix
Jim Fulton wrote: (snip) Does anyone care whether we deprecate ZClasses? ZClasses ? What are ZClasses ? (Sorry, couldn't resist. +1 for deprecation) -- Bruno Desthuilliers Développeur [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Allen Schmidt
-l for deprecation ...until we build a replacement anyway... Dennis Allison wrote: +1 for deprecation. On Fri, 1 Apr 2005, Jim Fulton wrote: ZClasses are a feature that support through-the-web development. Many people have found them useful in the past, but they have some significant

Re: [Zope] Re: Plone/Zope on Debian Sarge

2005-04-01 Thread Shane Graber
google search for your error message yielded: http://mail.zope.org/pipermail/zope/2005-January/155790.html If you did an 'apt-get install plone' it's still trying to pull in Zope 2.6. What I ended up doing was to uninstall plone and then 'apt-get install zope2.7', create my default instance w/

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread kosh
I vote we take off and nuke them from orbit it is the only way to be sure. (+1 get rid of those dang things) I have tried to help far too many people over the years on #zope that had problems with zclasses. They just seem fragile and should be removed. On Friday 01 April 2005 5:22 am, Jim

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jim Fulton
Allen Schmidt wrote: -l for deprecation ...until we build a replacement anyway... What do you mean by replacement? In Zope 3, I plan to provide persistent modules to support prototying new applications through the web. It will be possible to automatically convert these to file-system-based

[Zope] Re: role, user defined roles, and inclusion

2005-04-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Are you implying that something else gives the user the Anonymous role as far as Zope security is concerned? - From the point of view of introspecting roles, no; however, when validating access, *every* user can do what

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jake
As someone who has at least 5 different products using ZClasses across 10 different websites with millions of hits a month, I am certainly not happy to see them go, but I do understand that their time has come. If they are supported in 2.8 - 2.9 and gone in 3.0 I guess that is ok. Again, it is

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jim Fulton
Jake wrote: As someone who has at least 5 different products using ZClasses across 10 different websites with millions of hits a month, I am certainly not happy to see them go, but I do understand that their time has come. If they are supported in 2.8 - 2.9 and gone in 3.0 I guess that is ok. If

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Paul Winkler
+1 for deprecation. However, I haven't used them for years. I suspect you will hear otherwise from some people with currently deployed solutions based on ZClasses... (cue Dieter) -- Paul Winkler http://www.slinkp.com ___ Zope maillist -

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Andreas Jung
--On Freitag, 1. April 2005 7:22 Uhr -0500 Jim Fulton [EMAIL PROTECTED] wrote: We could choose to deprecate ZClasses. If we deprecated them in Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but their support would be removed in Zope 2.10. Would anyone be upset if this happened? +2 to

Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread Florent Guillaume
Chris Withers [EMAIL PROTECTED] wrote: (FWIW in CPSUserFolder we chose to return Authenticated as well as Anonymous to be consistent.) In what context? Providing both Authenticated and Anonymous on the same user at the same time seems bizarre ;-) When doing user.getRoles(). Because as

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jake
My vote is to keep them around for 2.8 and 2.9 but say goodbye after that. Again.. it won't be easy for us, but who said progress ever was. Jake -- http://www.ZopeZone.com Jim Fulton said: Jake wrote: As someone who has at least 5 different products using ZClasses across 10 different

[Zope] Re: Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Maik Jablonski
Jake wrote: My vote is to keep them around for 2.8 and 2.9 but say goodbye after that. Again.. it won't be easy for us, but who said progress ever was. +1 for dropping ZClasses as soon as possible (IMHO 2.10 is a good target), but before that, some comment in REALLY BIG LETTERS should be made in

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Lennart Regebro
+1 on deprecation. (As for replacements, persistent schemas in Zope3 will enable the thing that ZClasses should have been: Combining a set of base classes with functionality with a TTW editable schema. CPSschemas is halfway there: You can make your own content classes already, but you can't

RE: [Zope] Folder Listing as a Plone Portlet Mini-HOWTO (draft)

2005-04-01 Thread Matthew X. Economou
-Original Message- From: David Convent [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 3:30 AM Plone now uses catalog queries to build folder listings, it avoids waking up all objects and slow down the server response. Consider using it, your portlet as it is written now can

Re: [Zope] Plone/Zope on Debian Sarge

2005-04-01 Thread Andreas Pakulat
On 01.Apr 2005 - 14:34:22, Peter Bittner wrote: Hi there! I am running a Debian Linux box with Debian/testing (Sarge) and I am trying to get Plone up and running. I have made a clean, new install of the whole system last week, so all packages are really up-to-date and there was no

Re: [Zope] Re: Plone/Zope on Debian Sarge

2005-04-01 Thread Andreas Pakulat
On 01.Apr 2005 - 10:14:36, Shane Graber wrote: google search for your error message yielded: http://mail.zope.org/pipermail/zope/2005-January/155790.html If you did an 'apt-get install plone' it's still trying to pull in Zope 2.6. That's not correct, current Plone will favor zope27 over

Re: [Zope] question about manipulating zcatalog query results

2005-04-01 Thread Ira Sher
Chris, the relevant section of the script looks like this: zcat=context.Catalog if spontype == 'none': results = zcat(meta_type=mtype) else: results = zcat(meta_type=mtype,SB_sponsor_type=spontype) if sorton == 'id': res = [] rest = [] res = list(results)

[Zope] RSS feed: post-processing?

2005-04-01 Thread MILLER Eva
Title: RSS feed: post-processing? Hello, I've been puzzling over something but can't figure out a solution. I have an RSS feed providing the content behind all the links on this page: http://demo.plinkit.org/interestsideas/goodreads/booklists. There's a nice bookmarklet tool in the

Re: [Zope] HTTPSConnection Python 2.3.4

2005-04-01 Thread Paul Winkler
On Fri, Apr 01, 2005 at 08:29:39AM +0100, Chris Withers wrote: Paul Winkler wrote: I have a somewhat similar issue; an in-house Zope product is retrieving some information from a remote URL. If I hit the same URL from the command line on the zope server (using wget), it works fine. When Zope

Re: [Zope] HTTPSConnection Python 2.3.4

2005-04-01 Thread Tino Wildenhain
Hi, Am Freitag, den 01.04.2005, 14:35 -0500 schrieb Paul Winkler: On Fri, Apr 01, 2005 at 08:29:39AM +0100, Chris Withers wrote: Paul Winkler wrote: I have a somewhat similar issue; an in-house Zope product is retrieving some information from a remote URL. If I hit the same URL from the

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Ira Sher
I can understand wanting to deprecate them, but I have to say, as the maintainer of a site written by someone else about six years ago in zope 1 days, that this would be a mess to migrate and require a total site rewrite. The client is unfortuneatly a non-profit mid-sized independent press, and

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Dieter Maurer
Jim Fulton wrote at 2005-4-1 07:22 -0500: ... We could choose to deprecate ZClasses. If we deprecated them in Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but their support would be removed in Zope 2.10. Would anyone be upset if this happened? We use ZClasses for several

Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-04-01 Thread Dieter Maurer
Pavel Zaitsev wrote at 2005-3-31 00:33 -0500: I am back trying to figure out why my zope crashes on open('/tmp/tmp4fd4foo') kind of opens, which seem to originated from webdav code. You problem seems to be much deeper: It is completely justified to open a temporary file -- whether for

Re: [Zope] question about manipulating zcatalog query results

2005-04-01 Thread Dieter Maurer
Ira Sher wrote at 2005-3-31 01:05 -0700: ... I've found some reference to the _getiter_ problem on the forum, but the queries date from nearly a year ago, and there were no fixes at the time (save to wait for 7.4 to come out of beta). Is anyone else experiencing this? Is there a workaround? What

Re: [Zope] Re: login page problem

2005-04-01 Thread Dieter Maurer
prabuddha ray wrote at 2005-3-30 23:50 -0800: ... now my problem how n where do i check d pwd n redirect to the next zpt or the previous one if its wrong. Apparently, you need some background reading... Especially, you need to understand that HTTP is a stateless protocol and *EACH* request must

Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread Dieter Maurer
Chris Withers wrote at 2005-3-31 12:26 +0100: Dieter Maurer wrote: Any user has the Anonymous role whether or not it is authenticated. Really? ... print user.getRoles() ... returns ('Manager', 'Authenticated') when logged in as a manager and ('Anonymous',) when anonymous? A user will never

Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread Dieter Maurer
robert wrote at 2005-3-31 07:22 +0200: Is my assumption that granting a permission to Anonymous means granting it to anybody correct? Correct. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Ausum Studio
To me it depends on how much time ZClasses are going to last. If ZClasses will stay for the next two years, then it's fine for us, as we probably will persuade ourselves to rewrite all of our stuff in ZopeX3, and not in Zope2.X Jim, bear in mind that people that will agree to its deprecation

Re: [Zope] question about manipulating zcatalog query results

2005-04-01 Thread Ira Sher
I scoured the archives, and found mention of this problem, and a note by you, Dieter saying it was a problem with the 2.7 beta (this was back in May of 2004) but I can't find any subsequent mention of the issue, and the problem I'm having is on both a 2.7.4 and a 2.7.5 build. thanks ira On Apr

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jonathan Cyr
Big mistake, IMHO, You have no replacement for intermediate developers... the only decent documentation, being the various books, have ZClasses throughout. Explain their absence to the newbies grokking for Zope enlightenment. Not everyone needs/wants development tools, some like the TTW

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jake
My question, since it now seems like I am not the only one using ZClasses is, why not support them? You listed out the reasons why someone wouldn't want to use them going forward, but what are the reasons why not to support them as legacy into 3/2.10? Jake -- http://www.ZopeZone.com Dieter

Re: [Zope] ClockServer 0.1 released

2005-04-01 Thread Jonathan Cyr
Am I getting this this is what Zron should have been? -Jon Chris McDonough wrote: On Fri, 2005-04-01 at 02:40, Chris Withers wrote: Chris McDonough wrote: It works by posing as a medusa server, and injects things that look like http requests into the

[Zope] Zwiki 0.40 released, news for 2005/03

2005-04-01 Thread Simon Michael
What is it Zwiki is a Zope product for building wikis - a special kind of website that's easy for anyone to edit. See http://zwiki.org for more. What's changed Bugfixes, new japanese translation, chinese translation updates, new search option. See release notes below. Zwiki news this month

[Zope] Re: Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Simon Michael
FYI, there's a kind of overview of possible ZClass alternatives at http://zopewiki.org/HowToAddCustomContentTypes . ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Re: ZWiki - MoinMoin markup

2005-04-01 Thread Simon Michael
Hi Malthe, I don't think moin markup allows html tags, so br is out. Also, consider whether this work will really pay off. Unless it gets incorporated into the upstream MoinMoin code, it might or might not make sense to support a non-standard moin markup feature in the shipping Zwiki. But I

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Andreas Jung
--On Freitag, 1. April 2005 16:21 Uhr -0500 Ausum Studio [EMAIL PROTECTED] wrote: Whether there already is a tool like that in ZopeLand, I would agree to its deprecation, but actually there's nothing like it. Certainly ZClasses is not what it promised to be, but what it does do, it does it

Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread Cliff Ford
Dieter Maurer wrote: robert wrote at 2005-3-31 07:22 +0200: Is my assumption that granting a permission to Anonymous means granting it to anybody correct? Correct. Actually, I don't think that is strictly true! And it reminds me of a period of confusion I went through a few months ago, when I

Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread robert
Cliff Ford wrote: Dieter Maurer wrote: robert wrote at 2005-3-31 07:22 +0200: Is my assumption that granting a permission to Anonymous means granting it to anybody correct? Correct. Actually, I don't think that is strictly true! And it reminds me of a period of confusion I went through a few

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Andreas Jung
--On Freitag, 1. April 2005 16:52 Uhr -0500 Jake [EMAIL PROTECTED] wrote: want to use them going forward, but what are the reasons why not to support them as legacy into 3/2.10? To avoid that people use ZClasses in the future :-) -aj pgpNlVUdoEQdZ.pgp Description: PGP signature

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread David H
Andreas Jung wrote: --On Freitag, 1. April 2005 16:52 Uhr -0500 Jake [EMAIL PROTECTED] wrote: want to use them going forward, but what are the reasons why not to support them as legacy into 3/2.10? To avoid that people use ZClasses in the future :-) -aj

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Andreas Jung
--On Freitag, 1. April 2005 23:10 Uhr -0800 David H [EMAIL PROTECTED] wrote: I would recommend ZClass people should form a group. And have good people keep the thing compatible with each Zope release. David I doubt that anyone will touch ZClasses - except Dieter and Jim :-) It's good to see

Re: [Zope-dev] brain.getObject and traversal

2005-04-01 Thread Chris Withers
Florent Guillaume wrote: Well of course no, but I never had to check a getObject() against Unauthorized. Maybe it's because I only use it in a CMF setting where unaccessible objects are filtered anyway. Maybe, but CMF isn't the only use of Zope ;-) OTOH you're a bit excessive in your Whole

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread yuppie
Hi! Andreas Jung wrote: I am planning to make the release tomorrow (Saturday afternoon (German time :-)). So please make your final fixes very soon or cry out loud STOP if there are any show stoppers. I'd really like to see http://www.zope.org/Collectors/Zope/1460 resolved before the release:

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread Andreas Jung
--On Freitag, 1. April 2005 11:43 Uhr +0200 yuppie [EMAIL PROTECTED] wrote: I could merge the fix from the 2.7 branch myself, but I hate to check in code I don't understand completely. Maybe Tres or Jim can have a look at this? Or at least review the checkin if I do it myself? Same here :-) If

Re: [Zope-dev] brain.getObject and traversal

2005-04-01 Thread Florent Guillaume
Florent Guillaume [EMAIL PROTECTED] wrote: Unauthorized in getObject is out of the question, that would be new behaviour. Well, in 2.8, new behaviour is expected, right? I really passionately believe that we should not be returnining None in Zope 2.8, and since 2.8 hasn't quite hit

Re: [Zope-dev] Parrot

2005-04-01 Thread Dario Lopez-Kästen
Alan Milligan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: | ZEO, multiple clients and processor affinity settings already offer | this, and with no extra development needed... | What userland tools are you using to implement processor affinity?? Alan schedutils. See

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: Andreas Jung wrote: I am planning to make the release tomorrow (Saturday afternoon (German time :-)). So please make your final fixes very soon or cry out loud STOP if there are any show stoppers. I'd really like to see

Re: [Zope-Coders] RE: [Zope-dev] [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread Tim Peters
[Andreas Jung] I am planning to make the release tomorrow (Saturday afternoon (German time :-)). So please make your final fixes very soon or cry out loud STOP if there are any show stoppers. Barring an unexpected heart attack, an alpha-quality ZODB will be in place for you by then. Jim will

[Zope-dev] Re: brain.getObject and traversal

2005-04-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: Florent Guillaume [EMAIL PROTECTED] wrote: Unauthorized in getObject is out of the question, that would be new behaviour. Well, in 2.8, new behaviour is expected, right? I really passionately believe that we should not

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread yuppie
Hi Tres! Tres Seaver wrote: I'd really like to see http://www.zope.org/Collectors/Zope/1460 resolved before the release: 1.) AFAICS this bug is easy to fix. 2.) It makes at least CMFDefault sites unusable, deterring CMF users from testing Zope 2.8. I could merge the fix from the 2.7 branch myself,

[Zope-dev] post publishing hook

2005-04-01 Thread Florent Guillaume
I really could use a post publishing hook. Standard use case: delay indexing at the end of the request to only do it once per object even if the object has been modified 4 times. Today there's the REQUEST._hold() hack with an instance having a __del__, but this gets executed outside the main

Re: [Zope-dev] post publishing hook

2005-04-01 Thread Chris McDonough
When do you think it should be called? I just had to override zpublisher_validated_hook to do some stuff that would have been a bit easier if a different hook existed, but that might be a different use case... On Fri, 2005-04-01 at 10:48, Florent Guillaume wrote: I really could use a post

Re: [Zope-dev] post publishing hook

2005-04-01 Thread Florent Guillaume
I didn't know about that hook, but from reading the code it seems it takes place before publishing, not after. There's the recent post_traverse hook too, but that's not what I want. Florent Chris McDonough wrote: When do you think it should be called? I just had to override

Re: [Zope-dev] post publishing hook

2005-04-01 Thread Florent Guillaume
Chris McDonough [EMAIL PROTECTED] wrote: When do you think it should be called? I should have answered that clearly: I'd put it in ZPublisher.publish, like this: result=mapply(object, request.args, request, call_object,1, missing_name,

[Zope-dev] Re: post publishing hook

2005-04-01 Thread Christian Heimes
Florent Guillaume wrote: I really could use a post publishing hook. Standard use case: delay indexing at the end of the request to only do it once per object even if the object has been modified 4 times. Using a post publishing hook for this use case isn't a good idea - IMO. The Publisher has

Re: [Zope-dev] post publishing hook

2005-04-01 Thread Dieter Maurer
Florent Guillaume wrote at 2005-4-1 17:48 +0200: ... Open issues are: 1. what if there's an exception in the hook? I'd say log it but that's all. I prefer: fail in the usual way. 2. what if there's a Conflicterror? That's tougher to deal with... The transaction has to be retried, without the

Re: [Zope-dev] Re: brain.getObject and traversal

2005-04-01 Thread Dieter Maurer
Max M wrote at 2005-3-31 14:48 +0200: ... Most of my queries, where I need to wake up objects, has the form:: brains = catalog(portal_type='Document') objects = [] for brain in brains: try: obj = brain.getObject() if not obj is None:

Re: [Zope-dev] brain.getObject and traversal

2005-04-01 Thread Dieter Maurer
Florent Guillaume wrote at 2005-4-1 13:21 +0200: Florent Guillaume [EMAIL PROTECTED] wrote: Unauthorized in getObject is out of the question, that would be new behaviour. Well, in 2.8, new behaviour is expected, right? I really passionately believe that we should not be returnining

[Zope-dev] Re: ZPT: defer expression fix

2005-04-01 Thread Evan Simpson
Christian Heimes wrote: * DeferWrapper didn't cache the result of the expression like ordinary vars do. This was intended, though you couldn't know that since I never documented this. Consider the following terrible example: div tal:define=xis defer:string:x is $x p tal:repeat=x

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: Tres Seaver wrote: I'd really like to see http://www.zope.org/Collectors/Zope/1460 resolved before the release: 1.) AFAICS this bug is easy to fix. 2.) It makes at least CMFDefault sites unusable, deterring CMF users from

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread Tim Peters
[Tim Peters] ... All the substantive changes I needed to make were completed last night, and the overnight test runs were successful. I still need to write up ZODB NEWS, fiddle the version numbers, make a 3.4a1 release tag, and edit the svn:externals in Zope trunk to point at that tag.

Re: [Zope-dev] Re: post publishing hook

2005-04-01 Thread Florent Guillaume
Christian Heimes [EMAIL PROTECTED] wrote: Florent Guillaume wrote: I really could use a post publishing hook. Standard use case: delay indexing at the end of the request to only do it once per object even if the object has been modified 4 times. Using a post publishing hook for this

Re: [Zope-dev] Re: brain.getObject and traversal

2005-04-01 Thread Florent Guillaume
Tres Seaver [EMAIL PROTECTED] wrote: Is everyone ok with returning - the object if it can be accessed - raise Unauthorized if it can't be accessed - raise NotFound if it's not there and never return None ? I'll change that before tomorrow, for 2.8a2. (I'll change NotFound

[Zope-dev] Re: [Zope2.8a2] ...to be released by tomorrow....

2005-04-01 Thread Andreas Jung
--On Freitag, 1. April 2005 18:44 Uhr -0500 Tim Peters [EMAIL PROTECTED] wrote: [Tim Peters] ... All the substantive changes I needed to make were completed last night, and the overnight test runs were successful. I still need to write up ZODB NEWS, fiddle the version numbers, make a 3.4a1