Re: [Zope-dev] SiteRoot and VHM

2005-04-07 Thread Jens Vagelpohl
On Apr 7, 2005, at 1:45, Florent Guillaume wrote: After spending an hour helping someone debug a site that had an hidden SiteRoot somewhere that prevented a virtual host monster from working, it was suggested to me that if there's a virtual host monster, it should take precedence (and

Re: [Zope-dev] I want Zope 2.9 to use Zope 3's security architecture.

2005-04-07 Thread Jens Vagelpohl
On Apr 7, 2005, at 6:50, Andreas Jung wrote: Even small modifications to the security machinery tend to end up in lots of problems. The latest prominent example: the changes introduced with Zope 2.7.3: It took two releases (until 2.7.5) and more than 6 months (at least in my memory) before

Re: [Zope-dev] SiteRoot and VHM

2005-04-07 Thread Tino Wildenhain
Am Donnerstag, den 07.04.2005, 01:45 +0200 schrieb Florent Guillaume: After spending an hour helping someone debug a site that had an hidden SiteRoot somewhere that prevented a virtual host monster from working, it was suggested to me that if there's a virtual host monster, it should take

Re: [Zope-dev] SiteRoot and VHM

2005-04-07 Thread Jens Vagelpohl
On Apr 7, 2005, at 9:08, Tino Wildenhain wrote: Am Donnerstag, den 07.04.2005, 01:45 +0200 schrieb Florent Guillaume: After spending an hour helping someone debug a site that had an hidden SiteRoot somewhere that prevented a virtual host monster from working, it was suggested to me that if there's

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

2005-04-07 Thread Chris Withers
Andreas Jung wrote: Chris wants to backport it to 2.7 x; I'm opposed. Your call. If it does not change the default behaviour we have in 2.7.5... why not... Cool, thanks, I'll look at merging for 2.7.6 :-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] I want Zope 2.9 to use Zope 3's security architecture.

2005-04-07 Thread Jim Fulton
Richard Jones wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 7 Apr 2005 02:49 am, Jim Fulton wrote: Paul Winkler wrote: i.e. will I still write: security.declareProtected(SomePermission, 'foo') def foo(self): ... That will work, and I don't see a need to deprecate it.

[Zope-dev] Re: [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: I wonder if it is of public interest to include the ExtendedPathIndex from Plone in Zope 2.8. It offers some the nice extension to limit the depth of the search and improves building navigation-trees or similar structures.

[Zope-dev] Re: SiteRoot and VHM

2005-04-07 Thread Laurence Rowe
-1 for removing it. I think it's a cool feature :-) I like the ability to use a 'blank' SiteRoot (one with a blank base and path) in conjunction with an access rule to set request variables when I access my site in through a particular point (eg set the plone_skin variable when I access my site

Re: [Zope-dev] [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-07 Thread Florent Guillaume
Andreas Jung [EMAIL PROTECTED] wrote: I wonder if it is of public interest to include the ExtendedPathIndex from Plone in Zope 2.8. It offers some the nice extension to limit the depth of the search and improves building navigation-trees or similar structures. Opinions? +1 if it's a

Re: [Zope-dev] I want Zope 2.9 to use Zope 3's security architecture.

2005-04-07 Thread Martijn Faassen
Richard Jones wrote: [snip] Is this a general trend for Zope 2? I'd rather see Zope 2 kinda avoid ZCML if possible. The Five integration philosophy at least, is that it makes use of ZCML *possible* in Zope 2, but not at all mandatory. Five tries to mess with the innards of Zope 2 as much as

Re: [Zope-dev] Re: [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-07 Thread Andreas Jung
--On Donnerstag, 7. April 2005 8:00 Uhr -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I doubt many folks on this list know the code that well. Are you thinking to lift the features you mention, making them part of the regular PathIndex? Also, what

[Zope-dev] To ZCML or not ;-)

2005-04-07 Thread Chris Withers
Richard Jones wrote: Is this a general trend for Zope 2? I'd rather see Zope 2 kinda avoid ZCML if possible. It's just one of those personal preference things, I suppose, but I know I'm not the only one who isn't that enamored of the ZCML approach. I actually like having the declarations all in

Re: [Zope-dev] To ZCML or not ;-)

2005-04-07 Thread Jim Fulton
Chris Withers wrote: Richard Jones wrote: Is this a general trend for Zope 2? I'd rather see Zope 2 kinda avoid ZCML if possible. It's just one of those personal preference things, I suppose, but I know I'm not the only one who isn't that enamored of the ZCML approach. I actually like having

Re: [Zope-dev] Re: SiteRoot and VHM

2005-04-07 Thread Paul Winkler
On Thu, Apr 07, 2005 at 12:55:09PM +0100, Laurence Rowe wrote: -1 for removing it. I think it's a cool feature :-) I like the ability to use a 'blank' SiteRoot (one with a blank base and path) in conjunction with an access rule to set request variables when I access my site in through a

Re: [Zope-dev] [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-07 Thread Martijn Faassen
Andreas Jung wrote: --On Donnerstag, 7. April 2005 14:49 Uhr +0200 Martijn Faassen [EMAIL PROTECTED] wrote: Andreas Jung wrote: I wonder if it is of public interest to include the ExtendedPathIndex from Plone in Zope 2.8. It offers some the nice extension to limit the depth of the search and

Re: [Zope-dev] [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-07 Thread Andreas Jung
--On Donnerstag, 7. April 2005 20:15 Uhr +0200 Martijn Faassen [EMAIL PROTECTED] wrote: Andreas Jung wrote: --On Donnerstag, 7. April 2005 14:49 Uhr +0200 Martijn Faassen [EMAIL PROTECTED] wrote: Andreas Jung wrote: I wonder if it is of public interest to include the ExtendedPathIndex from

[Zope-dev] Re: SiteRoot and VHM

2005-04-07 Thread Laurence Rowe
Paul Winkler wrote: On Thu, Apr 07, 2005 at 12:55:09PM +0100, Laurence Rowe wrote: -1 for removing it. I think it's a cool feature :-) I like the ability to use a 'blank' SiteRoot (one with a blank base and path) in conjunction with an access rule to set request variables when I access my site

Re: [Zope-dev] To ZCML or not ;-)

2005-04-07 Thread Lennart Regebro
Richard Jones wrote: Is this a general trend for Zope 2? I'd rather see Zope 2 kinda avoid ZCML if possible. It's just one of those personal preference things, I suppose, but I know I'm not the only one who isn't that enamored of the ZCML approach. ZCML started out for me (and as an experinced

Re: [Zope] Does anyone care whether we deprecate Your Favourite Part of Zope

2005-04-07 Thread David H
Andrew Milton wrote: I think people on this list need to realize that eventually, the direction of any significantly large Open Source project is hijacked by the relatively small number of people actually doing the work. The reasons for this are many-fold, but, normally come down to a lack of

Re: [Zope] Does anyone care whether we deprecate Your Favourite Part of Zope

2005-04-07 Thread Phillip Hutchings
flame What gives us the right to dictate what features these people give up their time to work on? Sure, Zope (the company) pays some, but others seem to do it for no direct reward, other than the Zope program. end flame I admire these people, I have no idea what goes through Zope, though I

Re: [Zope] login system discussion

2005-04-07 Thread prabuddha ray
ok, i get it. So what is the way to set a request form var in the python script. On Wed, 6 Apr 2005 12:55:33 -0300, Jose Henrique dos Reis [EMAIL PROTECTED] wrote: Your request.set puts 'invalid' in request/other, not in request/form. Zenrique -- Share the vision of difference with ME

Re: RES: [Zope] login system discussion

2005-04-07 Thread prabuddha ray
Ok i get it, please tell me the way to set a request form var in a python script On Wed, 6 Apr 2005 12:55:33 -0300, Jose Henrique dos Reis [EMAIL PROTECTED] wrote: Your request.set puts 'invalid' in request/other, not in request/form. Zenrique -- Share the vision of difference

[Zope] request forward technique

2005-04-07 Thread prabuddha ray
From my login page I'm calling a python script for redirecting it to seperate pages. there if login fails i the login page is to be redirected along with setting a hidden form field 'invalid' by '1'. For this I've to set the request/form.invalid value so that it is available to thelogin page. is

[Zope] DateTime(), locale, summertime etc.

2005-04-07 Thread Max M
I have a product where I convert some external datetimes to zope DateTime() objects. I save them as UTC as zopes DateTime does by default. But when these are rendered, the time is offset by two hours. A few weeks ago, it wasn't that bad. It was only one hour, but then summertime came along ;-)

Re: [Zope] Does anyone care whether we deprecate Your Favourite Part of Zope

2005-04-07 Thread Garito
David H escribió: Andrew Milton wrote: I think people on this list need to realize that eventually, the direction of any significantly large Open Source project is hijacked by the relatively small number of people actually doing the work. The reasons for this are many-fold, but, normally come

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

2005-04-07 Thread Jim Fulton
Jim Fulton wrote: Jake wrote: My question, since it now seems like I am not the only one using ZClasses I doubt that that is the case. Sorry, I missread your note. I meant to say that I was sure you are *not* the only one using ZClasses. Jim -- Jim Fulton mailto:[EMAIL PROTECTED]

[Zope] how to add pages to a new tab in plone

2005-04-07 Thread prabuddha ray
hope i get this through !!! In my plone site I've added a portal_tab through portal_actions. i've made a subfolder in my plone site root folder for it. I gave the path in the action value field of the tabs as : string:$portal_url/consumables now the problem is that when i click on my tab the

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

2005-04-07 Thread Jim Fulton
Dieter Maurer wrote: Lennart Regebro wrote at 2005-4-5 11:48 +0200: On the Paris sprint, one thing that was noted was how ironic it was that the release of 2.8, which includes support for the new recommended development paradigm, was held up becuase we neeeded to support an old non-recommended

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

2005-04-07 Thread Jim Fulton
Lennart Regebro wrote: On the Paris sprint, one thing that was noted was how ironic it was that the release of 2.8, which includes support for the new recommended development paradigm, was held up becuase we neeeded to support an old non-recommended one. :-) It boils down to backward

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

2005-04-07 Thread Jim Fulton
Andreas Jung wrote: --On Dienstag, 5. April 2005 16:38 Uhr -0400 Jake [EMAIL PROTECTED] wrote: And that is probably the best arguement for keeping them around longer. We should get to the point: if some people depend on ZClasses then they should take over some responsibility in maintaining

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

2005-04-07 Thread Jim Fulton
Ausum Studio wrote: ... As for ZC, IMHO the issue should be treated as a matter of understanding the market rather than achieving a milestone. You created stuff that works in some way or another that people embraced. You also changed your company name to the name of the product of yours that

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

2005-04-07 Thread Jim Fulton
Jonathan Cyr wrote: Yoohoo, ZClasses are not an expert technology to use, they are an introduction to Zope... Just because I use a thing, doesn't mean I can support/maintain a thing. Exactly. I want you to use Zope even if you aren't in a position to maintain it yourself. I can read the

[Zope] Re: DateTime(), locale, summertime etc.

2005-04-07 Thread Max M
Max M wrote: I have a product where I convert some external datetimes to zope DateTime() objects. I save them as UTC as zopes DateTime does by default. But when these are rendered, the time is offset by two hours. Ok. I was unclear here. I convert from datetime objects (python) to DateTime

[Zope] how to store ZSQL query results in a python var

2005-04-07 Thread prabuddha ray
from a newbie, i've this ZSQLmethod returning me a string only. how do i store it a var in my python script. eg., userlevel = container.getUserLevel(uname=user) when i print it using html_quote as : print (%s) % html_quote(userlevel) return printed output is :

Re: [Zope] how to store ZSQL query results in a python var

2005-04-07 Thread Andreas Jung
--On Donnerstag, 7. April 2005 4:10 Uhr -0700 prabuddha ray [EMAIL PROTECTED] wrote: from a newbie, i've this ZSQLmethod returning me a string only. how do i store it a var in my python script. eg., userlevel = container.getUserLevel(uname=user) when i print it using html_quote as :

Re: [Zope] how to store ZSQL query results in a python var

2005-04-07 Thread Tino Wildenhain
Am Donnerstag, den 07.04.2005, 04:10 -0700 schrieb prabuddha ray: from a newbie, i've this ZSQLmethod returning me a string only. how do i store it a var in my python script. eg., userlevel = container.getUserLevel(uname=user) when i print it using html_quote as : print (%s) %

[Zope] browsing server filesystem

2005-04-07 Thread Fabio Marcone
Hi! I need to browse (from a client) server file system. Does exist a zope object to do that? or, how can I do it? (I think external method in python, isn't it?) Thanks, Fabio ___ Zope maillist - Zope@zope.org

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

2005-04-07 Thread Jake
Jim Fulton said: (There are no plans to deprecate DTML. It is even supported in Zope 3.) That is the best news I have heard all day (although, it is early). Jake -- Zoping for the rest of us http://www.ZopeZone.com ___ Zope maillist -

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

2005-04-07 Thread Chris Withers
Jake wrote: Jim Fulton said: (There are no plans to deprecate DTML. It is even supported in Zope 3.) That is the best news I have heard all day (although, it is early). I will be selling black flags for the mourning of a missed opportunity... Chris -- Simplistix - Content Management, Zope Python

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

2005-04-07 Thread Chris Withers
Jim Fulton wrote: I've gotten a lot of grief because of the effort I've been putting into getting them to work with Zope 2.8 and the effect that that has had on the 2.8 schedule. Many active Zope developers are (understandbly) dismissive of ZClasses, but I think we can't ignore the many people

Re: [Zope] how to instantiate an External Method

2005-04-07 Thread Chris Withers
Wladmir Araujo Chapetta wrote: How can i instantiate a external method within my Container Product? Tell us why you think you need to first... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope] browsing server filesystem

2005-04-07 Thread Chris Withers
Fabio Marcone wrote: Does exist a zope object to do that? Google for LocalFS. cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org

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

2005-04-07 Thread Stephan Richter
On Wednesday 06 April 2005 16:52, Dieter Maurer wrote: For new projects, you should investigate the new options. Product development will get much simpler with Zope3 technology (and its schemas and views). Currently, there is no TTW (Through The Web) development in Zope3 land, but that is

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

2005-04-07 Thread Max M
Chris Withers wrote: Jim Fulton wrote: I think ZPT and python scripts are much more useful tools for newbies who will often enter with a scripting rather than OO frame of mind. Wouldn't that be ZPT and adapters ;-) -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science

Re: [Zope] Re: login page problem

2005-04-07 Thread Chris Withers
Dieter Maurer wrote: I is just that with exUserFolder, there is a management page where you configure the parameters for the user cache -- that's all of it. No special Python Scripts, no association with a RAMCacheManager, no headache with invalidation (after user object changes through the

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

2005-04-07 Thread Yuri
Re: [Zope] Does anyone care whether we deprecate ZClasses? To: [EMAIL PROTECTED] Cc: zope@zope.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Jonathan Cyr wrote at 2005-4-6 16:06 -0400: ... just show me how under-represented that beginner and intermediate Zope

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

2005-04-07 Thread Philip Kilner
Hi Chris, Chris Withers wrote: (There are no plans to deprecate DTML. It is even supported in Zope 3.) That is the best news I have heard all day (although, it is early). I will be selling black flags for the mourning of a missed opportunity... With or without a circled A? ;-) -- Regards, PhilK

Re: [Zope] Product creation difficulty

2005-04-07 Thread Chris Withers
(keep replies on the list, more people can help that way) Pete Taylor wrote: thanks man. doing it that way has cleared up the security problem. i've run into others trying to access xml-rpc methods remotely (zope keeps passing the __roles__ checks back to the xmlrpc server, which says i don't

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

2005-04-07 Thread Florent Guillaume
Chris Withers [EMAIL PROTECTED] wrote: Jake wrote: Jim Fulton said: (There are no plans to deprecate DTML. It is even supported in Zope 3.) That is the best news I have heard all day (although, it is early). I will be selling black flags for the mourning of a missed opportunity...

[Zope] Re: DateTime(), locale, summertime etc.

2005-04-07 Thread Max M
Max M wrote: When I convert to DateTime objects, they are saved as 9:00 Universal. So that is correct too. Ok. Turned out that I have misunderstood zopes DateTime(). It saves in UTC, but it still needs a timezone. So converting datetime objects to the local timezone and then converting to

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

2005-04-07 Thread Jim Fulton
Florent Guillaume wrote: Chris Withers [EMAIL PROTECTED] wrote: Jake wrote: Jim Fulton said: (There are no plans to deprecate DTML. It is even supported in Zope 3.) That is the best news I have heard all day (although, it is early). I will be selling black flags for the mourning of a missed

RE: [Zope] Product creation difficulty

2005-04-07 Thread Pete Taylor
*grin* true enough. at its simplest level, I've been trying to just import xmlrpclib and use it normally in scripts. I used my __init__.py to allow_module('xmlrpclib'), which has stopped it from throwing security errors. however, when I actually run a test script, I get the following: Error

[Zope] Re: Product creation difficulty

2005-04-07 Thread Michael Haubenwallner
Pete Taylor wrote: *grin* true enough. at its simplest level, I've been trying to just import xmlrpclib and use it normally in scripts. http://www.zope.org/Members/EIONET/XMLRPC the product lets you call remote xmlrpc and other zope servers (here is a patch if you need zope authentication too:

Re: [Zope] Re: DateTime(), locale, summertime etc.

2005-04-07 Thread Paul Winkler
On Thu, Apr 07, 2005 at 02:44:38PM +0200, Max M wrote: Max M wrote: When I convert to DateTime objects, they are saved as 9:00 Universal. So that is correct too. Ok. Turned out that I have misunderstood zopes DateTime(). It saves in UTC, but it still needs a timezone. So converting

[Zope] TAL/SQL Problem

2005-04-07 Thread Phil Beardmore
Hi, hope you can help. We are currently linking a webpage to an SQL database and are pulling in information via the tal:replace function. This is working extremely well however one of our SQL fields is comma deliminated, and we want it to appear as a list. We have accomplished this by using

Re: [Zope] TAL/SQL Problem

2005-04-07 Thread Madhavi Chaganti
use tal:content=id instead of result/interests Phil Beardmore wrote: Hi, hope you can help. We are currently linking a webpage to an SQL database and are pulling in information via the tal:replace function. This is working extremely well however one of our SQL fields is comma deliminated, and

Re: [Zope] TAL/SQL Problem

2005-04-07 Thread Barry Pederson
Phil Beardmore wrote: Hi, hope you can help. We are currently linking a webpage to an SQL database and are pulling in information via the tal:replace function. This is working extremely well however one of our SQL fields is comma deliminated, and we want it to appear as a list. We have

Re: [Zope] Re: Does anyone care whether we deprecate Your Favourite Part of Zope

2005-04-07 Thread Andrew Milton
+---[ Jim Fulton ]-- | Well said. | | I mostly agree, however, there needs to be a balance. We are | introducing a process for orderly deprecation of features. I hope | it works. It's mainly useful for changes that are straightforward | to recover from. We have to

Re: [Zope] TAL/SQL Problem

2005-04-07 Thread Philip Beardmore
Thanks to both Barry and Madhavi for the solution. Works great guys! Ta - Original Message - From: Barry Pederson [EMAIL PROTECTED] Date: Thursday, April 7, 2005 4:38 pm Subject: Re: [Zope] TAL/SQL Problem Phil Beardmore wrote: Hi, hope you can help. We are currently linking a

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

2005-04-07 Thread Jonathan Cyr
Thank You for giving me a timeframe for this stuff. 4 to 6 years is indeed a long time. That would, in effect triple the lifespan of my project, and be far more reasonable. It was the "yeah, dump it today" remarks that set me off. These remarks are shortsighted at best, and harmful to Zope's

Re: [Zope] login system discussion

2005-04-07 Thread Dieter Maurer
prabuddha ray wrote at 2005-4-6 23:17 -0700: So what is the way to set a request form var in the python script. Please read the Zope Book -- carefully! You should find a section explaining the request object, its API (especially its set method) and its essential attributes form, cookies, other

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

2005-04-07 Thread Dieter Maurer
Chris Withers wrote at 2005-4-7 13:22 +0100: ... but the community as a whole recommends against them, which seems to be the consensus here. A funny definition of consensus... It may be the majority opinion but it definitely is not consensus... -- Dieter

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

2005-04-07 Thread Dieter Maurer
Jim Fulton wrote at 2005-4-7 05:50 -0400: Dieter Maurer wrote: ... ZClasses feature prominently in the Zope book. That should probably be fixed. Seems they are more recommended than the new development paradigm (which does not yet feature at all in the Zope book). The new developement

Re: [Zope] Re: login page problem

2005-04-07 Thread Dieter Maurer
Chris Withers wrote at 2005-4-7 13:29 +0100: ... I believe in re-using lots of simple compments to build complex applications. I hate to see loads of common concepts like caching, sessions, cookie-management and rdb interaction re-implemented in non-reusable ways so many times... You are

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

2005-04-07 Thread Dieter Maurer
Yuri wrote at 2005-4-7 14:30 +0200: ... Isn't Archetypes only for Plone? No, it can be used with pure CMF... ... if one is ready to fix a few Plone dependencies that creep in in most Archetype releases. ... Just release a way to convert a Zclass to a Python Product (at least for the

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

2005-04-07 Thread Andreas Pakulat
On 07.Apr 2005 - 20:13:58, Dieter Maurer wrote: Yuri wrote at 2005-4-7 14:30 +0200: ... Isn't Archetypes only for Plone? No, it can be used with pure CMF... ... if one is ready to fix a few Plone dependencies that creep in in most Archetype releases. ... Just release a way to

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

2005-04-07 Thread Ausum Studio
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] (...) I submitted a patch to the Zope collector but I had removed one bit of black magic too much -- and other products broke that were dependent on this magic. My patch which were already integrated into the Zope

[Zope] Re: Potential PythonScript bug

2005-04-07 Thread Ira Sher
Chris, absolutely right. I got confused and misinterpreted a behavior I was getting with crashes. I was finding that the Zope instance would fail if I didn't have certain files that were in the 2.7.5 Products folder duped in the instance dir...but as it turned out, it all boiled down to a single