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().
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
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
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
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:
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
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
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
___
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
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 = []
-
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
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
12 matches
Mail list logo