Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Martijn Pieters
On Wed, Jan 10, 2001 at 11:37:55PM -, Chris Withers wrote: > > Chris Withers writes: > > > > with this class, your_attribute isn't going to play in Persistence, > > > is it? (so I can update it lots without worrying about ZODB size > > > growing... :-) > > > But, as I understand it, i

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Martijn Pieters
On Wed, Jan 10, 2001 at 11:09:43PM +0100, Dieter Maurer wrote: > Chris Withers writes: > > Now I think I know the answer to this one, but I'll ask just to be sure: > > > > class MyClass(Persistent Acquisition.Explicit): > > > > def _set_your_attribute (self,value): > >self._v_your

Re: [Zope-dev] AUTHENTICATION_USER in standard_error_message cause by NotFound error

2001-01-10 Thread Tim Ansell
I appears last night i didn't test the diff... This one should work without any editing... Mithro Tim Ansell wrote: > Forgot to attach the diff > > Forgive me it's 4:52am here > > Mithro > > Tim Ansell wrote: > > > Oppps, just realised i've been replying only to myself :) > > > > Umm o

[Zope-dev] first zope-2.3.0a2 bug :-)

2001-01-10 Thread Jephte CLAIN
well, this one is easy. 8<-- --- lib/python/Shared/DC/ZRDB/Aqueduct.py.origThu Jan 11 10:59:42 2001 +++ lib/python/Shared/DC/ZRDB/Aqueduct.py Thu Jan 11 10:58:01 2001 @@ -272,7 +272,7 @@ custom_default_report_src=Documen

Re: [Zope-dev] New UI for 2.3

2001-01-10 Thread Michael Bernstein
Steve Alexander wrote: > > I think the new UI for 2.3 is great improvement over 2.2. > > I'm already finding the sorted tables of folder contents useful, and > having the add new items select at the top saves time. > > However, I do not like the 3-frame interface. I feel that the top frame > is

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigningresponsibilities

2001-01-10 Thread Itai Tavor
Phillip J. Eby wrote: >At 05:13 PM 12/21/00 +1100, Itai Tavor wrote: >>> >>>I think you're right about this being an OrderLineItem. A couple of fine >>>points, however... First, I don't think there needs to be an >>>"OrderLineItemsWithGraphic" specialist, since there is nothing else that >>>wou

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Chris Withers
> Chris Withers writes: > > with this class, your_attribute isn't going to play in Persistence, > > is it? (so I can update it lots without worrying about ZODB size > > growing... :-) > But, as I understand it, it is only updated in the thread > that did the update. Your next request may

Re: [Zope-dev] New UI for 2.3

2001-01-10 Thread Casey Duncan
--- Steve Alexander <[EMAIL PROTECTED]> wrote: > However, I do not like the 3-frame interface. I feel > that the top frame > is wasted space. The Zope logo and "Logged in as > username | Logout" > could as easily go at the bottom of the tree-view > frame on the left. > This would leave extra sc

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Dieter Maurer
Chris Withers writes: > Martijn Pieters wrote: > Now I think I know the answer to this one, but I'll ask just to be sure: > > class MyClass(Persistent Acquisition.Explicit): > > def _set_your_attribute (self,value): > self._v_your_attribute = value > > def _get_your_attr

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Dieter Maurer
Morten W. Petersen writes: > It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means > if I search for a word, for example 'programmer', it will return matches > to the words 'program', 'programming','programmable' etc. This, usually, is called "stemming". Though, your examples

[Zope-dev] ANNOUNCE: Zope 2.3.0 alpha 2 released

2001-01-10 Thread Brian Lloyd
Hello all, Zope 2.3.0 alpha 2 is now available. You can download it from Zope.org: http://www.zope.org/Products/Zope/2.3.0a2/ This release contains a number of new features, including: - SiteAccess is now a part of the Zope core - Shane Hathaway's CacheManager support and tw

[Zope-dev] New UI for 2.3

2001-01-10 Thread Steve Alexander
I think the new UI for 2.3 is great improvement over 2.2. I'm already finding the sorted tables of folder contents useful, and having the add new items select at the top saves time. However, I do not like the 3-frame interface. I feel that the top frame is wasted space. The Zope logo and "Log

Re: [Zope-dev] z'python script

2001-01-10 Thread David Kankiewicz
Zope mailing lists wrote: > Hmm. All kidding aside, Chris is right. This *is* the problem > with "python script" that was pointed out during the name discussion. > My use of "python script" is the traditional Unix/OS one: "a [shell] > script written in python". This is continuing well beyond am

Re: [Zope-dev] Aquisition.Acquired

2001-01-10 Thread Chris Withers
Shane Hathaway wrote: > > There's a (much) simpler way: > > class MyClass(Acquisition.Explicit): > your_attribute = Acquisition.Acquired > > # index_html isn't > index_html = None > > "Acquired" is a special object that the acquisition module looks for. Just noticed you can do thi

Re: [Zope-dev] AUTHENTICATION_USER in standard_error_message cause by NotFound error

2001-01-10 Thread Tim Ansell
Forgot to attach the diff Forgive me it's 4:52am here Mithro Tim Ansell wrote: > Oppps, just realised i've been replying only to myself :) > > Umm okay here is the diff, it is from version 2.2.4 but should apply to most > versions > I have removed all the "print" debugging and clea

Re: [Zope-dev] AUTHENTICATION_USER in standard_error_message cause by NotFound error

2001-01-10 Thread Tim Ansell
Oppps, just realised i've been replying only to myself :) Umm okay here is the diff, it is from version 2.2.4 but should apply to most versions I have removed all the "print" debugging and cleaned up the formatting. Could people look it over and tell me if there are any hidden problems wit

[Zope-dev] Security Machinery doesn't work on some objects?

2001-01-10 Thread Chris Withers
Hi there, I'm slightly confused by a class I have: class X(Persistent, Acquisition.Explicit): This class has no __roles__, no __ac_permissions__, no nothing... Instances of this class are stored within a special folderish class, Y. This folderish class has a __bobo_traverse__ which returns X o

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Martijn Pieters
On Wed, Jan 10, 2001 at 05:07:07PM +, Chris Withers wrote: > > If you want _set_your_attribute to be called, you > > need to override __setattr__: > > > > def __setattr__(self, name, value): > > setter = getattr(self, '_set_' + name, None) > > if setter: > > se

Re: [Zope-dev] python script

2001-01-10 Thread Zope mailing lists
On Tue, 9 Jan 2001 [EMAIL PROTECTED] wrote: > Damnnation, Chris, everyone knows that it is supposed to be spelled > Python Thingy. > > "I recently released 'zopectl', a Python Thingy"... > > 'Please go wash your hands before your shake hands with me!' Hmm. All kidding aside, Chris is right. T

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Chris Withers
Martijn Pieters wrote: > > > ...with this class, your_attribute isn't going to play in Persistence, > > is it? (so I can update it lots without worrying about ZODB size > > growing... :-) > > Yup, this allows you to alias your_attribute to _v_your_attribute without > creating an attribute that *

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Casey Duncan
--- "Morten W. Petersen" <[EMAIL PROTECTED]> wrote: [snip] > > It seems I misunderstood the term fuzzy logic > myself. Fuzzy logic means > if I search for a word, for example 'programmer', it > will return matches > to the words 'program', 'programming','programmable' > etc. > > I.e., it will s

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Martijn Pieters
On Wed, Jan 10, 2001 at 04:13:49PM +, Chris Withers wrote: > Martijn Pieters wrote: > > > > Erm. The ExtensionClass.stx documentation hints at a ComputedAttribute > > class (but as an example of how you could use an ExtensionClass). The > > current C implementation of ComputedAttribute is not

Re: [Zope-dev] Re: ComputedAttribute

2001-01-10 Thread Chris Withers
Martijn Pieters wrote: > > Erm. The ExtensionClass.stx documentation hints at a ComputedAttribute > class (but as an example of how you could use an ExtensionClass). The > current C implementation of ComputedAttribute is not, as far as I can see, > documented. Now I think I know the answer to th

[Zope-dev] AUTHENTICATION_USER in standard_error_message cause by NotFound error

2001-01-10 Thread Tim Ansell
Hello. I've been using zope for a couple of months, i have found zope to be a great product and thank you for creating it. Currently i have run into a problem, i need to access the AUTHENTICATED_USER in a standard_error_message called by notFoundError in BaseRequest. I was wondering if the aut

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Ken Manheimer
On Wed, 10 Jan 2001, Morten W. Petersen wrote: > > I do not think that "fuzzy logic" is strongly related to "regexp-like". > > Anyway. > > > > Fuzzy searching often means "finding matches with characters omitted, > > replaced or inserted". > > It seems I misunderstood the term fuzzy logic mysel

[Zope-dev] patch to bring ZPatterns UI in line with 2.3 from CVS

2001-01-10 Thread Steve Alexander
If you're using ZPatterns or PlugIns with Zope 2.3 from CVS, you can update most of the ZPatterns user-interface to the new style be replacing lib/python/Products/PlugIns/www/main.dtml with this file: http://www.cat-box.net/steve/main.dtml -- Steve Alexander Software Engineer Cat-Box limite

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Morten W. Petersen
> I do not think that "fuzzy logic" is strongly related to "regexp-like". > Anyway. > > Fuzzy searching often means "finding matches with characters omitted, > replaced or inserted". It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means if I search for a word, for example 'pro

[Zope-dev] How does a subclass call its ancestor's method in zope?

2001-01-10 Thread Dirksen
Here is a ZClass testa, with a dtml method 'do'. Its subclass testb overrides do. How does testb call its ancestor's 'do'? In python, it can be done as 'testa.do()', but what's the equivallent in zope? Dirksen __ Do You Yahoo!? Yahoo! Photos - S