[Zope] Re:API and namespace

2000-12-11 Thread Sven Hohage

Hi Alexander,
I think I've made a mistake.
I thought you are about ZClasses.
My snippet adds two ZClasses (a folder-like and a document).
These Classes are self-defined(take a look at the HowTos or the 
Developer-Guide"http://www.zope.org/Documentation/Guides/ZDG").
For you this is sufficient ->

  




Here are some starting-hints:
They are all taken from the Zope Quick Reference

-->manage_addFolder(id, [title, createPublic, createUserF, REQUEST])
   Add a new Folder object with id id. If the createPublic 
   and createUserF parameters are set to 
   any true value, an index_html and a UserFolder objects
   are created respectively in the new folder. 


-->manage_addDTMLDocument(id, [title, file, REQUEST, submit])
   Add a DTML Document object with the contents of file.
   If file is empty, default document text is used. 
-->getitem(name,flag)
   Lookup a name in the namespace. If the value is callable
and 
   the flag is true, then the result of calling the value 
   is returned, otherwise the value is
   returned. flag defaults to false. 


You find the reference at -->http://zdp.zope.org/
 Hope that helps!
 Bye

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Re:API and namespace

2000-12-11 Thread Sven Hohage

Hallo Alexander,
this works for me->


  
   

 
  
 

Bye
   Sven

___
Zope maillist  -  [EMAIL PROTECTED]
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 )