Kevin Dangoor wrote:

----- Original Message -----
From: Robert Wittams
To: zope@zope.org
Sent: Wednesday, December 29, 1999 10:23 AM
Subject: [Zope] Adding an object programmatically


> I am probably just confused, so could someone put me out of my misery
> and tell me how to add a DTML method to a ZClass in its add method.
> The ZClass is a subclass of Object manager.



<dtml-call "manage_addDTMLMethod('id', 'title', 'contents')">

This worked perfectly :) Thanks.

Where exactly did you find out this kind of thing? Just the source?

> PS. I had a look at python methods, which seem a lot easier to use if you
know python. However, I didn't seem to be able to assign  to *any* lists or
dictionaries. Is this to preserve persistance or something else?


I believe it is a security thing, but I really don't know what behavior it
protects us from... Personally, I'd love to be able to do lists and
dictionaries in PythonMethods...

I  hope that python methods eventually expose all of the dtml functionality along with the ease of python... with no restrictions on data types , just on imports...


Kevin