[Zope-dev] Calling parent class method when method is overridden in current class?

2000-08-03 Thread Phil Harris
Hi all, I'm in the process of creating a Python based product, and have a need to call the base classes index_html method. My problem is that I need to call it from my classes index_html. My class has DTMLDocument as the base class so I want to call something like DTMLDocument.index_html().

Re: [Zope-dev] Calling parent class method when method is overridden in current class?

2000-08-03 Thread Steve Alexander
Phil Harris wrote: Hi all, I'm in the process of creating a Python based product, and have a need to call the base classes index_html method. My problem is that I need to call it from my classes index_html. My class has DTMLDocument as the base class so I want to call something like

Re: [Zope-dev] Calling parent class method when method is overridden in current class?

2000-08-03 Thread Phil Harris
Steve, I'm pretty sure I've tried that but I'll try it again and see what happens, hang on I'll be right back. Right I'm back, I thought I'd tried it and I had, I get this error: Error Type: TypeError Error Value: call of non-function (type None) Traceback (innermost last): File

Re: [Zope-dev] permissions/authorization on non ZClass/product objects

2000-08-03 Thread Toby Dickenson
On Wed, 2 Aug 2000 22:41:46 -0400 (EDT), Chris McDonough [EMAIL PROTECTED] wrote: Karl, Two things come to mind: First, make sure you're returning the instances in the context of their container, e.g. instead of: def returnstuff(self): class foo: pass return

Re: [Zope-dev] Solved - Calling parent class method when method is overridden in current class?

2000-08-03 Thread Phil Harris
Yay, Solved it! I just had to call __call__ from the DTMLDocument and bob is now married to my mothers sister. Phil [EMAIL PROTECTED] - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: "Steve Alexander" [EMAIL PROTECTED] Cc: "Zope-Dev@Zope. Org" [EMAIL PROTECTED] Sent:

RE: [Zope-dev] permissions/authorization on non ZClass/product objects

2000-08-03 Thread Chris McDonough
First, make sure you're returning the instances in the context of their container, e.g. instead of: def returnstuff(self): class foo: pass return foo() do def returnstuff(self): class foo: pass return

Re: [Zope-dev] DataSkin propoerty Sheets/Providers.

2000-08-03 Thread Phillip J. Eby
At 07:09 PM 8/2/00 -0600, Bill Anderson wrote: I think I have a decent handle on this concept, but something seems lacking, I hope someone can clear it up :) So, let us say I have an object, call it a Member. :) And let us say I want to be able to add a property sheet to it in a

[Zope-dev] ZCatalog and ZSearch Interface

2000-08-03 Thread Chris Withers
Hi there, While playing with Squishdot to make it more ZSearch-friendly, I noticed that ZCatalog isn't actually ZSearch friendly either. I think the following patch corrects that, if peopel agree, I'll stick it in the collector. cheers, Chris ___

Re: [Zope-dev] ZCatalog and ZSearch Interface

2000-08-03 Thread Chris Withers
D'Oh! Here's the file... Chris --- ZCatalog.py.old Thu Aug 3 15:17:05 2000 +++ ZCatalog.py Thu Aug 3 15:21:25 2000 @@ -392,7 +392,7 @@ def _searchable_result_columns(self): r = [] -for name in self._catalog.indexes.keys(): +for name in

Re: [Zope-dev] ZCatalog and ZSearch Interface

2000-08-03 Thread Martijn Pieters
On Thu, Aug 03, 2000 at 04:07:31PM +0100, Chris Withers wrote: D'Oh! Here's the file... Chris --- ZCatalog.py.old Thu Aug 3 15:17:05 2000 +++ ZCatalog.py Thu Aug 3 15:21:25 2000 @@ -392,7 +392,7 @@ def _searchable_result_columns(self): r = [] -

[Zope-dev] Abstract ZClasses

2000-08-03 Thread Dieter Maurer
I would find an abstract ZClass (or Meta ZClass) concept very nice (and useful). I would like to use it, e.g., for a general hieararchical view on relational databases. The view allows browsing (via the tree tag) and selection of one or more items. Most can be implemented independantly of the

Re: [Zope-dev] DataSkin propoerty Sheets/Providers.

2000-08-03 Thread Phillip J. Eby
At 05:38 PM 8/3/00 -0600, Bill Anderson wrote: "Phillip J. Eby" wrote: PersistentSheetProviders can do what you want - *but* there is one drawback. PSP's have no concept of a sheet schema, so you have to add the sheet and set up its schema in code for *each instance*. Rats. :/ I forgot