;ō ;}>c@s\dZdklZdklZdefd„ƒYZdfd„ƒYZeƒZeideƒdfd „ƒYZeƒZeid eƒd fd „ƒYZeƒZeid eƒdfd„ƒYZ e ƒZ ydk Z eide ƒWne j onXdfd„ƒYZ e ƒZ ydkZ eide ƒWne j onXdS(sē $RCSfile: Generators.py,v $ Default generators for result objects Author: Philipp von Weitershausen $Id: Generators.py,v 1.2 2003/03/23 04:41:41 cstrong Exp $ (sBase(sGeneratorRegistrys IGeneratorcBs&tZdZd„Zeed„ZRS(s) Interface for Output Generators cKsdS(s9 Create the object and return its result N((sidstitles rawStringskw((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys createObjectscCsdS(s7 Call the object and return its result N((sobjsclientsREQUESTsRESPONSE((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys getResults(s__name__s __module__s__doc__s createObjectsNones getResult(((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys IGenerators  sDTMLMethodGeneratorcBs&tZeZd„Zeed„ZRS(Nc Ks`dkl}||ƒ}||_||_x*|iƒD]\}}t |||ƒq8W|SdS(N(s DTMLMethod( sOFS.DTMLMethods DTMLMethods rawStrings resultObjsidstitleskwsitemssnamesvaluessetattr( sselfsidstitles rawStringskws resultObjsnames DTMLMethodsvalue((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys createObject s     cCs|i|ƒ|||ƒSdS(N(sobjs__of__sclientsREQUESTsRESPONSE(sselfsobjsclientsREQUESTsRESPONSE((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys getResult)s(s__name__s __module__s IGenerators__implements__s createObjectsNones getResult(((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pysDTMLMethodGenerators s DTML MethodsDTMLDocumentGeneratorcBs&tZeZd„Zeed„ZRS(Nc Ks`dkl}||ƒ}||_||_x*|iƒD]\}}t |||ƒq8W|SdS(N(s DTMLDocument( sOFS.DTMLDocuments DTMLDocuments rawStrings resultObjsidstitleskwsitemssnamesvaluessetattr( sselfsidstitles rawStringskws resultObjsnames DTMLDocumentsvalue((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys createObject3s     cCs|i|ƒ|||ƒSdS(N(sobjs__of__sclientsREQUESTsRESPONSE(sselfsobjsclientsREQUESTsRESPONSE((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys getResult<s(s__name__s __module__s IGenerators__implements__s createObjectsNones getResult(((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pysDTMLDocumentGenerator/s s DTML Documents FileGeneratorcBs&tZeZd„Zeed„ZRS(Nc Ksidkl}|iddƒ}|||||ƒ}x*|i ƒD]\} }t || |ƒqAW|SdS(N(sFiles content_types text/plain( s OFS.ImagesFileskwsgets content_typesidstitles rawStrings resultObjsitemssnamesvaluessetattr( sselfsidstitles rawStringskws resultObjs content_typesvaluesFilesname((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys createObjectFs  cCs|i|ƒi||ƒSdS(N(sobjs__of__sclients index_htmlsREQUESTsRESPONSE(sselfsobjsclientsREQUESTsRESPONSE((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys getResultNs(s__name__s __module__s IGenerators__implements__s createObjectsNones getResult(((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys FileGeneratorBs sFiles ZPTGeneratorcBs&tZeZd„Zeed„ZRS(Nc Kssdkl}|iddƒ} |||| ƒ}|i|ƒx*|i ƒD]\}}t |||ƒqKW|SdS(N(sZopePageTemplates content_types text/html(s'Products.PageTemplates.ZopePageTemplatesZopePageTemplateskwsgets content_typesids rawStrings resultObjs pt_setTitlestitlesitemssnamesvaluessetattr( sselfsidstitles rawStringskws resultObjsnamesvaluesZopePageTemplates content_type((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys createObjectXs   cCs|i|ƒ|||ƒSdS(N(sobjs__of__sclientsREQUESTsRESPONSE(sselfsobjsclientsREQUESTsRESPONSE((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys getResultas(s__name__s __module__s IGenerators__implements__s createObjectsNones getResult(((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys ZPTGeneratorTs Ns Page TemplatesParsedXMLGeneratorcBs&tZeZd„Zeed„ZRS(NcKs<dkl}|iddƒ}|||d|ƒ}|SdS(N(s ParsedXMLs content_typestext/xmls contentType(sProducts.ParsedXML.ParsedXMLs ParsedXMLskwsgets content_typesids rawStrings resultObj(sselfsidstitles rawStringskws resultObjs ParsedXMLs content_type((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys createObjectos cCs|i|ƒi||ƒSdS(N(sobjs__of__sclients index_htmlsREQUESTsRESPONSE(sselfsobjsclientsREQUESTsRESPONSE((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys getResultus(s__name__s __module__s IGenerators__implements__s createObjectsNones getResult(((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pysParsedXMLGeneratorks s Parsed XML(s__doc__s InterfacesBasesGeneratorRegistrys IGeneratorsDTMLMethodGeneratorsregistersDTMLDocumentGenerators FileGenerators ZPTGeneratorsProducts.PageTemplatessProductss ImportErrorsParsedXMLGeneratorsProducts.ParsedXML( s ZPTGenerators FileGeneratorsGeneratorRegistrysDTMLMethodGeneratorsBasesProductss IGeneratorsDTMLDocumentGeneratorsParsedXMLGenerator((sH/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/Generators.pys? s4