mς ‘γΈEc@sbdZdklZdklZdklZdklZl Z l Z dkl Z dk l Z lZlZdefd„ƒYZd efd „ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdS(sWFive ZCML directive schemas $Id: fivedirectives.py 67874 2006-05-02 23:22:01Z rocky $ (s Interface(sIBasicResourceInformation(s Permission(s GlobalObjectsTokenssPythonIdentifier(sBool(sASCIIsTextLines BytesLinetIImplementsDirectivecBsAtZdZedddeƒZedddedeƒƒZRS(s-State that a class implements something. ttitleuClasstrequireduOne or more interfacest value_type(t__name__t __module__t__doc__t GlobalObjecttTruetclass_tTokenst interface(((t;/data/zmath/zope/lib/python/Products/Five/fivedirectives.pyRs    tITraversableDirectivecBs#tZdZedddeƒZRS(s΅Make instances of class traversable publically. This can be used to browse to pages, resources, etc. Traversal can be controlled by registering an ITraverser adapter. RuClassR(RRRRRR (((R R (s  tIDefaultViewableDirectivecBs#tZdZedddeƒZRS(suMake instances of class viewable publically. The default view is looked up using a IBrowserDefault adapter. RuClassR(RRRRRR (((R R5s  tISizableDirectivecBs#tZdZedddeƒZRS(s)Make instances of class send events. RuClassR(RRRRRR (((R R?s  tIContainerEventsDirectivecBstZdZRS(s-Global switch to enable container events (RRR(((R RHs t#IDeprecatedManageAddDeleteDirectivecBs#tZdZedddeƒZRS(sCCall manage_afterAdd & co for these contained content classes. RuClassR(RRRRRR (((R RLs  tIBridgeDirectivecBsStZdZedddeƒZedddeƒZedddddeƒZ RS(sEBridge from a Zope 2 interface to an equivalent Zope3 interface. RuZope2RuTarget packageuZope3 Interface namet descriptionuSIf not supplied, the new interface will have the same name as the source interface.( RRRRRtzope2tpackagetPythonIdentifiertFalsetname(((R RUs      tIPagesFromDirectoryDirectivecBsStZdZedddeƒZedddeƒZedddddeƒZ RS(s>Register each file in a skin directory as a page resource RuThe interface this view is for.RuModuleu DirectoryRu+The directory containing the resource data.( RRRRRtfor_RtmoduletTextLinet directory(((R Ris      tIRegisterClassDirectivec BsΒtZdZedddddeƒZedddddeƒZedddd deƒZ edd dd d e de ƒZ edd ddd e de ƒZ eddddd ede ƒZRS(sLregisterClass directive schema. Register Five content with Zope 2. RuInstance ClassRu,Dotted name of the class that is registered.Ru Meta Typeu1A human readable unique identifier for the class.uAdd Permissionu0The permission for adding objects of this class.u Add View IDucThe ID of the add view used in the ZMI. Consider this required unless you know exactly what you do.tdefaultuIcon IDu#The ID of the icon used in the ZMI.u Global scope?ukIf "global" is False the class is only available in containers that explicitly allow one of its interfaces.(RRRRRR tASCIIt meta_typet Permissiont permissiontNoneRtaddviewticontBooltglobal_(((R R}s,            tIIncludecBs#tZedddddeƒZRS(NRuConfiguration file nameRu‘Name of a configuration file to be included for each installed Product. If the file does not exist, for a particular product, no error is raised.R(RRt BytesLineRtfile(((R R)―s tIRegisterPackageDirectivecBs>tZdZedddeƒZedddddeƒZRS(srRegisters the given python package which at a minimum fools zope2 into thinking of it as a zope2 product. RuTarget packageRu!Initialization function to invokeRuRThe dotted name of a function that will get invoked with a ProductContext instance(RRRRRRRt initialize(((R R,Έs    N(Rtzope.interfacet Interfacet)zope.app.publisher.browser.metadirectivestIBasicResourceInformationtzope.security.zcmlR"tzope.configuration.fieldsRR RR't zope.schemaR RR*RR RRRRRRRR)R,(R R RR"RR,RRRR1RR*RR'RRR/R)R RR((R t?s"        2