[Zope] RFC: a simple howto build zclass (catalog aware, nond

Hans de Wit hw@scp.nl
Wed, 7 Feb 2001 15:28:39 MET


> hi
> i have a howto that *really* needs your perusal.  the draft is at
> http://www.zope.org/Members/kedai/BuildSimpleZClass 
> 
> this is really basic, and is meant to get a real newbie excited.  and along 
> the way learn a few things or two.

Thats ok, i am a real newbie  and trying things out literally. If it doesn't work 
i can not correct it myself. I have 4 comments now, the first three quite 
childish, the fourth stopped me from following your how-to. 

First thing to comment on: which version of Zope are you using? I am using Zope 2.3.0 
and i think things are called a litlle different there.

1 Go to Control Panel. Add New Item,  is in Zope 2.3.0
Go to Control Panel>>Products or Product Management in the main frame>>Add Product

2 To do this select Zclass:Object Manager from the list 
is missing "and push add" The same with Enter tbEntry as id, title and metatype and "push 
add"

3 Add new property sheet is called Add Common Instance property sheet in 2.3.0

4 Then something serieus which stopped me following your How-to:
To add a catalog to the talkback instance programatically click the talkback 
factory('tbContainer_add').
There are two possibilities in 2.3.0:
- tbContainer_factory (tbContainer factory)
-tbContainer_add (tbContainer constructor)
I think that you want me to add something in the constructor, but that is not a factory.
Where do i have to add it in the constructor, before or below
<dtml-with "tbContainer.createInObjectManager(REQUEST['id'], REQUEST)">


Met vriendelijke groeten,

Hans de Wit

h.de.wit@scp.nl