[Zope] About factory_type_information

working4aliving working4aliving@hotmail.com
Fri, 24 Jan 2003 15:02:04 -0500


FYI:  your wrong. ;)

You can search for text in windows by using the "containing text" box in the
search window that opens up in explorer when you do a startment / search /
files and folders...
specify the file type, (if need be) and the directory, and put something in
the text.

Bob

----- Original Message -----
From: "D2" <borelan@wanadoo.fr>
To: "Mark McEahern" <marklists@mceahern.com>
Cc: <zope@zope.org>
Sent: Thursday, January 23, 2003 2:12 PM
Subject: Re: [Zope] About factory_type_information




Mark McEahern a écrit:
>>After reading portal.py, what i understood is that
>>factory_type_information is used in the setup of a CMFSite, by
>>PortalGenerator.setupType, to fill in portal_types tool with the default
>>types.
>>It's a way to customize a basic CMF Site
>>If i want to add y own types, i can define a module sometype.py and add
>>its factory_type_information to portal.factory_type_information
>>otherwise i'll have to add a Factory_type_based_information in
>>portal_types workspace.
>>If i want to use PortalGenerator.setupTypes in my own module to register
>>my type in portal_types, i suppose i'll have to create an instance of
>>PortalGenerator in my module but that i don't need to use
>>PortalGenerator as a base class of my module.
>>
>>Am i right ? (i'm a newbie so my questions may be simples ones)
>
>
> I'm still learning a lot about Zope and the CMF myself, but what I found
> helpful is lots of experimentation and examining Plone's source code.
> You'll notice their PloneSite subclasses CMFSite.  PloneGenerator
subclasses
> CMFDefault.Portal.PortalGenerator.  They also have a neat concept of
> CustomizationPolicy objects.

That's right and that's what i'll need to do : a CustomizationPolicy.

I'm examining Plone's source but as a newbie to Python, Zope and Plone,
i have to examine many tutorials, books, scripts, etc at a time and i
have a serious disability, i'm using W!ndows.
Do you know that the search function of this os can't search a string in
.py file like unix's grep could do ? So when i'm searching references to
functions called from various modules, i must open all the files and
search inside each one.
So, from time to time i ask questions to have a path or a kick and to
not give up.
But, by having to search in all modules, i think i'll finally have a
large vision of the whole system.

Thank's for your help.

Andre

>
> Cheers,
>
> // mark
>
> -
>
>


--
Andre
PZP Enthusiast


_______________________________________________
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 )