[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 pr

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 Zo

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

Re: [Zope] Re: login page problem

2005-04-07 Thread Dieter Maurer
Chris Withers wrote at 2005-4-7 13:33 +0100: exUserFolder has built in caching (positive and negative caches), >>> >>>Dunno what that means, but SUF supports caching via standard >>>RAMCacheManagers >> >> That sounds very strange: user objects cached in a RAMCacheManager... > >Why? How does t

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 sim

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] how to instantiate an External Method

2005-04-07 Thread Dieter Maurer
Wladmir Araujo Chapetta wrote at 2005-4-6 17:58 -0300: > ... >line 36, in Container > > searchService=ExternalMethod('searchService','searchService','search','search') >TypeError: 'module' object is not callable A nice and precise error message: "ExternalMethod" is the module and not the cl

[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 deve

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 __

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", "

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'

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 li

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

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 balanc

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 ha

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, an

[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 th

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. > > S

[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: h

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 Typ

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 op

[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 DateT

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

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 kn

Re: [Zope] Re: login page problem

2005-04-07 Thread Chris Withers
Dieter Maurer wrote: exUserFolder has built in caching (positive and negative caches), Dunno what that means, but SUF supports caching via standard RAMCacheManagers That sounds very strange: user objects cached in a RAMCacheManager... Why? How does that memory-based cache differ in concept from th

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] 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: 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 API).

[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] 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

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 http://mail.zope.org/mail

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] 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 who

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 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 - Zope@zo

[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 http://mail.zope.org/mailman/listinfo/zop

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

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 :

[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 : (

[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

[Zope] Re: Does anyone care whether we deprecate

2005-04-07 Thread 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 balance lots of different factors taking into account *everybodi

[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 list

[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 peopl

[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 t

[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 compatibility.

[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 one.

[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 ind

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]

Re: [Zope] Does anyone care whether we deprecate

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 do

[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 ;-)

[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