Re: [Zope-dev] Questions about implementing object models withZPatterns

2000-10-31 Thread Itai Tavor
Phillip J. Eby wrote: >At 12:35 PM 11/1/00 +1100, Itai Tavor wrote: >>Hi, >> >>How do I implement gen-spec classes using ZPatterns and ZClasses? >>For example, I want to implement Person and Customer. Writing it in >>Python, it would be easy to subclass Person to get Customer, and >>Customer woul

Re: [Zope-dev] Questions about implementing object models with ZPatterns

2000-10-31 Thread Phillip J. Eby
At 12:35 PM 11/1/00 +1100, Itai Tavor wrote: >Hi, > >How do I implement gen-spec classes using ZPatterns and ZClasses? >For example, I want to implement Person and Customer. Writing it in >Python, it would be easy to subclass Person to get Customer, and >Customer would inherit Person's properti

[Zope-dev] Questions about implementing object models with ZPatterns

2000-10-31 Thread Itai Tavor
Hi, How do I implement gen-spec classes using ZPatterns and ZClasses? For example, I want to implement Person and Customer. Writing it in Python, it would be easy to subclass Person to get Customer, and Customer would inherit Person's properties and methods. If I instead create a specialist a

[Zope-dev] ZPatterns/PlugIns bug fix releases

2000-10-31 Thread Phillip J. Eby
I've released new 0.4.3 beta 2 versions of ZPatterns and PlugIns to fix the minor bugs reported to date in beta 1. Specifically, the PlugIns package now contains a "help" directory, and the problem with "name" shorthand in SkinScript has been fixed as well. They can be found in the usual places.

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Itamar Shtull-Trauring
"Phillip J. Eby" wrote: > DataSkin is strictly a mix-in class. Sometimes I forget to remind people > of that, and sometimes I even forget it myself. :( DataskinAddons provides a nice DataSkin-derived class for debugging purposes - it has a debug() method that prints out __dict__, and lets you

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Phillip J. Eby
At 04:42 PM 10/31/00 +0100, Joachim Schmitz wrote: >Hi Steve, > >On Tue, 31 Oct 2000, Steve Spicklemire wrote: > >> >> Joachim> By the way, it only work if specify a DataSkin derived ZClass >> Joachim> under the Storage tab. >> >> Yes... did you attempt to use a 'pure' DataSkin? >> >aft

Re: [Zope-dev] Compiling of the DynPersist module (ZPatterns)

2000-10-31 Thread Phillip J. Eby
At 04:44 PM 10/30/00 +0100, Morten W. Petersen wrote: >After compiling the DynPerist module, I try to import it in the Python >interpreter: > >""" >morten@slakka:/usr/local/Zope/lib/python/Products/ZPatterns > gcc -o DynPersist.so -c DynPersist.c -I../../ZODB -I../../../Components/ExtensionClass -

Re: [Zope-dev] ACL users and Packing the DB

2000-10-31 Thread kdl
Thanks, I did find the error on why Lynx was not working. Was just a brain fart on my end. I forgot to include the single quotes around the url. example : lynx -auth=username:password ' http://www.yourdomain.com/test?ids:list=acl_users&manage_delObjects:method=Delete' Test is just a folder th

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Joachim Schmitz
Hi Steve, On Tue, 31 Oct 2000, Steve Spicklemire wrote: > > Joachim> By the way, it only work if specify a DataSkin derived ZClass > Joachim> under the Storage tab. > > Yes... did you attempt to use a 'pure' DataSkin? > after your advise not to use a 'pure' DataSkin, I did all the tes

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Steve Spicklemire
Hi Joachim, > "Joachim" == Joachim Schmitz <[EMAIL PROTECTED]> writes: Joachim> Hi Steve, Joachim> that did it, many thanks, how did you debug this ? The debugger is your friend. ;-). Seriously I'd be lost without it: http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFri

Re: [Zope-dev] Using the monitor_client

2000-10-31 Thread Shane Hathaway
Yves-Eric Martin wrote: > I am no Zope monitor expert, but maybe you will find my newbie point For some definition of newbie... :-) > of view helpful. Here is my understanding of the magic of this very > helpful tool: > > - Zope.app() gives you a *copy* of the *real* application object. > -

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Joachim Schmitz
Hi Steve, that did it, many thanks, how did you debug this ? By the way, it only work if specify a DataSkin derived ZClass under the Storage tab. it solved also the problem with the following setup, which didn't work before applying the patch, with an setup like this: SkinScript method: WITH Q

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Phillip J. Eby
At 09:16 AM 10/31/00 -0500, Steve Spicklemire wrote: > >OK I think I found the problem(s): > >*** Expressions.py 2000/10/18 23:11:55 1.1.1.3 >--- Expressions.py 2000/10/31 14:14:09 >*** >*** 133,139 > def eval(self,mapping): > """Return the result of lo

Re: [Zope-dev] Using the monitor_client

2000-10-31 Thread Morten W. Petersen
[Yves-Eric Martin] | - Zope.app() gives you a *copy* of the *real* application object. | - app._p_jar.sync() reloads your copy with the real (losing your changes) Ah, there it is; sync discards the changes made from the monitor, and then reloads... An extra thanks for the thorough (not-very-new

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Phillip J. Eby
At 12:32 PM 10/31/00 +0100, Joachim Schmitz wrote: > >I changed the SkinScript to: > >WITH QUERY getevent() COMPUTE event_id ,datum_von > >that does not work, I get an key error: event_id > >but finally last try: > >WITH QUERY getevent() COMPUTE event_id=event_id ,datum_von=datum_von > >that worke

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Steve Spicklemire
OK I think I found the problem(s): *** Expressions.py 2000/10/18 23:11:55 1.1.1.3 --- Expressions.py 2000/10/31 14:14:09 *** *** 133,139 def eval(self,mapping): """Return the result of looking up/calling the name from 'mapping'. If the object was

Re: [Zope-dev] Using the monitor_client

2000-10-31 Thread Yves-Eric Martin
Hello, I am no Zope monitor expert, but maybe you will find my newbie point of view helpful. Here is my understanding of the magic of this very helpful tool: - Zope.app() gives you a *copy* of the *real* application object. - app._p_jar.sync() reloads your copy with the real (losing your

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Joachim Schmitz
Hi Steve, somehow I got the first part working, I donĀ“t exactly remember, what was wrong, but it worked anyhow. my setup was: SkinScript method in defaultRack, Data-Skin: WITH ['a','b'] COMPUTE event_id=RESULT[0],datum_von=RESULT[1] and under Storage I specified my ZClass and loaded accessin

[Zope-dev] Using the monitor_client

2000-10-31 Thread Morten W. Petersen
When using the monitor_client, I do this: -- Start monitor_client usage python monitor_client.py localhost 8099 Enter Password: warning: unhandled connect event Python 1.5.2 (#1, Mar 11 2000, 13:03:53) [GCC 2.95.2 19991024 (release)] Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

Re: [Zope-dev] Recursive folders from Python

2000-10-31 Thread Phil Harris
Try something like (taken from my own code, so it works for me, caveta emptor): def mkcontext(self,context=None): global default_dd if not context: return 'EH!' c=string.split(context,'/') newself=self for a in c: try: newself.manage_addFolder(a,createPubl