[Zope] newbie: add script(python)

Vincenzo Di Somma e.disomma@icube.it
Tue, 21 Aug 2001 22:42:43 +0200


Markus wrote:

> Hi,
> 
> i want to add a pyton script in a folder. this script should generate new
> folders with the id range from "a" to "z".
> any solutions?
> 
> thanx in advance.
> Markus
> ps: where is the right place to find documentation for that?
> 
> 
> _______________________________________________
> 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 )
> 


for name in (...the range you want...):

     container.manage_addFolder(name)


You can find docs in ZopeBook and Developers Guide
Bye, Vincenzo.

-- 
Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l.
Sede:   Via Ridolfi 15 - 56124 Pisa (PI), Italia
E-mail: e.disomma@icube.it              WWW: www.icube.it
Tel:    (+39) 050 97 02 07              Fax: (+39) 050 31 36 588