List Info

Thread: Creating Archetypes




Creating Archetypes
user name
2006-04-27 18:42:41
Pedro Barbosa wrote:
> Hi!
> 
>  
> 
> I want to create an archetype based on a folder that
after defining a couple
> of fields it will create a tree of folders and
associate them with some
> workflow. 
> 
> I’m using ArchGenXml to simplify the work but I don’t
know how to create the
> subfolders tree. Should I manually create a python
script that creates the
> tree and defines the workflow or is there a way using
ArchGenXml?

An example:


     security.declarePrivate('at_post_create_script')
     def at_post_create_script(self):
         "Adds the subscriber folder
automatically"
         subscriptions = 'subscriptions'
         self.invokeFactory('Subscriptions',
id=subscriptions, 
title='Subscriptions')
         self._reserved_names = [subscriptions]



-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plone-Users mailing list
Plone-Userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )