[Zope3-Users] Re: z3c.sampledata experts - solved

Jürgen Kartnaller juergen at kartnaller.at
Mon Nov 13 01:16:36 EST 2006



Darryl Cousins wrote:
> Aaah. The light dawns. I found that I need to group all the generators
> into a single manager in order for them to work together.

Exactly. Thats why we have managers, connecting generators together for 
different tasks.

  So the
> configuration that works is:
> 
>       <SampleManager
>         name="Sample photofolder"
>         >
>           <generator
>             name="z3c.sampledata.site"
>             />
>           <generator
>             name="tfws.gallery.photofolder"
>             dependsOn="tfws.gallery.utility"
>             contextFrom="z3c.sampledata.site"
>             dataSource="tfws.gallery.photofolder"
>             />
>           <datasource
>             name="tfws.gallery.photofolder"
>             adapterName="tfws.gallery.photofolder"
>             adapterInterface=".generator.IPhotoFolderDataSource"
>             />
>           <generator
>             name="tfws.gallery.utility"
>             dataSource="tfws.gallery.utility"
>             contextFrom="z3c.sampledata.site" />
>           <datasource
>             name="tfws.gallery.utility"
>             adapterName="tfws.gallery.utility"
> 
> adapterInterface="tfws.gallery.utility.generator.IPhotoUtilityDataSource"
>             />
>       </SampleManager>
> 
> Regards,
> Darryl



More information about the Zope3-users mailing list