RFC: a simple howto build zclass (catalog aware, nondefault catalog object)
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. along the way, i may have left some things unexplained, mainly because i don't know how it works or how to put it in words. please correct any bad terms and definition that i used. comments, pointers, definition, why somethings work the way they do, are welcome. thanks -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine I will follow you! ..Damage Inc
On Wed, 7 Feb 2001 Bak@kedai wrote:
Nice work, thank you!
please correct any bad terms and definition that i used. comments, pointers, definition, why somethings work the way they do, are welcome.
Ok, let's start. "Go to Control Panel. Add new item". Not to Panel - to Panel/Products! :) What I am most interesting these days is how to protext some methods of ZClass by permissions... but this may not belong to newbie tutorial. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
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
On Thursday 08 February 2001 11:28, Hans de Wit wrote:
hi 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.
points taken, and modification made. sorry for the misnomer on tbContainer_add. it is a constructor. my bad
Met vriendelijke groeten,
Hans de Wit
h.de.wit@scp.nl
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine use Zope? then you got HOPE!
participants (3)
-
Bak@kedai -
Hans de Wit -
Oleg Broytmann