Re: [Zope] Pluggable Brains

2005-08-07 Thread Dieter Maurer
David H wrote at 2005-8-6 13:12 -0700: >I've been using "pluggable brains" in some zSQL classes. I have some >questions! > >a) It seems if I initialize a variable in the __init__ method that >variable, say self.callCount = 1 is not retained across calls, eg For efficiency reasons, the result r

[Zope] Pluggable Brains

2005-08-06 Thread David H
Hi Zope, I've been using "pluggable brains" in some zSQL classes. I have some questions! a) It seems if I initialize a variable in the __init__ method that variable, say self.callCount = 1 is not retained across calls, eg #python mod res = context.sql.brainySQL() for rec in res: rec.get

Re: [Zope] pluggable brains

2000-11-03 Thread MANUEL JOSE AMADOR BRIZ
What is this ZClass binding for? What\'s its purpose? Quoting Philipp Auersperg <[EMAIL PROTECTED]>: > For ZSQL Methods it is possible to bind a ZClass to the records. > > These can be selected from te combo box labeled \'ZClass\' in the > \'advanced\' tab of the SQLMethod\'s management screen

Re: [Zope] pluggable brains

2000-10-30 Thread Philipp Auersperg
I already found the answer myself:   one can only use ZClasses as pluggable brains that are NOT persistent!!   phil*** REPLY SEPARATOR ***On 31.10.2000 at 05:05 Philipp Auersperg wrote: For ZSQL Methods it is possible to bind a ZClass to the records.   These can be selec

[Zope] pluggable brains

2000-10-30 Thread Philipp Auersperg
For ZSQL Methods it is possible to bind a ZClass to the records.   These can be selected from te combo box labeled 'ZClass' in the 'advanced'  tab of the SQLMethod's management screen, but there is always listed just one ZClass.   My question: Why is there just one ZClass selectable, even if th

RE: [Zope] Pluggable brains

2000-09-15 Thread Dieter Maurer
Stuart Foster writes: > Below is a snippet from a document that was suggested however It's not clear > how the data is "Wrapped" by the class. Can someone explain this. I would be > will to document it if I can figure this out. You wrap via the "Advanced Tab" of a Z SQL method. Dieter __

RE: [Zope] Pluggable brains

2000-09-15 Thread Stuart Foster
o:[EMAIL PROTECTED]]On Behalf Of Dieter Maurer Sent: Thursday, September 14, 2000 1:40 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Pluggable brains [EMAIL PROTECTED] writes: > Is there a place where pluggable brains mechanism is described ? I forgot where I saw a descripti

Re: [Zope] Pluggable brains

2000-09-14 Thread Andreas
[EMAIL PROTECTED] wrote: > Is there a place where pluggable brains mechanism is described ? > > I am beginning a Zope site project. With the few I have read > about pluggable brains, I feel that more info could help me in > deciding which part of data has to stay in ZODB and which should > go ins

Re: [Zope] Pluggable brains

2000-09-14 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > Is there a place where pluggable brains mechanism is described ? I forgot where I saw a description. But it is incredibly simple: You can wrap an arbitrary class instance around your database rows. This transforms your rows into full featured objects with the c

Re: [Zope] Pluggable brains

2000-09-14 Thread Chris McDonough
ED]> Sent: Thursday, September 14, 2000 10:19 AM Subject: [Zope] Pluggable brains Is there a place where pluggable brains mechanism is described ? I am beginning a Zope site project. With the few I have read about pluggable brains, I feel that more info could help me in deciding which part of da

[Zope] Pluggable brains

2000-09-14 Thread gotcha
Is there a place where pluggable brains mechanism is described ? I am beginning a Zope site project. With the few I have read about pluggable brains, I feel that more info could help me in deciding which part of data has to stay in ZODB and which should go inside RDBM. Thanks. Godefroid Cha

[Zope] (Fwd) Re: [Zope] Pluggable brains aren't seen by first-nnn in - SOLUTION

2000-08-05 Thread Brad Clements
On 4 Aug 2000, at 22:10, Dieter Maurer wrote: > Brad Clements writes: > > However first-eventday is ALWAYS true, however when I print &dtml- > > eventday; the output value is always the same for each row, so first- > > > > eventday shouldn't be true on any row except the first. > > Almost su

Re: [Zope] Pluggable brains aren't seen by first-nnn in ?

2000-08-05 Thread Dieter Maurer
Brad Clements writes: > However first-eventday is ALWAYS true, however when I print &dtml- > eventday; the output value is always the same for each row, so first- > eventday shouldn't be true on any row except the first. Almost surely, the "in" tag does not call a callable object (because it d

[Zope] Pluggable brains aren't seen by first-nnn in ?

2000-08-04 Thread Brad Clements
I have a ZSQL method that has an associated class. That class defines a method eventday(self) that returns just the date portion of a datetime value. I want to be able to use to print the date only when it changes. However first-eventday is ALWAYS true, however when I print &dtml- eventday;