newbie: add script(python)
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?
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?
for i in range(0, 26): id = chr(ord('a')+i) container.manage_addFolder(id) Florent Guillaume Nuxeo
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
participants (3)
-
Florent Guillaume -
Markus -
Vincenzo Di Somma