mò %á¸Ec@sRdZddd!ZdklZlZeƒZeiddddd d d d d dddddƒdklZl Z l Z l Z l Z l Z lZlZlZlZlZlZlZdklZdklZdklZeidƒdeefd„ƒYZdklZeidƒdefd„ƒYZd„Zei e!ƒƒdS(sÒPython Scripts standard utility module This module provides helpful functions and classes for use in Python Scripts. It can be accessed from Python with the statement "import Products.PythonScripts.standard" s$Revision: 1.14 $i iþÿÿÿ(sModuleSecurityInfosgetSecurityManagertspecial_formatst whole_dollarstdollars_and_centststructured_texttrestructured_textt sql_quotet html_quotet url_quoteturl_quote_plust newline_to_brtthousands_commast url_unquoteturl_unquote_plust urlencode( sspecial_formatss whole_dollarssdollars_and_centssstructured_texts sql_quotes html_quotes url_quotesurl_quote_pluss newline_to_brsthousands_commass url_unquotesurl_unquote_plussrestructured_text(s urlencode(sHTML(sRestrictedDTMLtDTMLcBs tZdZehed„ZRS(spDTML objects are DocumentTemplate.HTML objects that allow dynamic, temporary creation of restricted DTML.cKsEtƒ}|i|ƒzti||||SWd|i |ƒXdS(saRender the DTML given a client object, REQUEST mapping, Response, and key word arguments.N( tgetSecurityManagertsecurityt addContexttselftHTMLt__call__tclienttREQUESTtkwt removeContext(RRRtRESPONSERR((t>/data/zmath/zope/lib/python/Products/PythonScripts/standard.pyR.s   (t__name__t __module__t__doc__tNoneR(((RR+s (srecordtObjectt_ObjectcBs2tZdZd„Zd„Zd„Zd„ZRS(NicKs|i|ƒdS(N(RtupdateR(RR((Rt__init__AscCs?t|ƒ}|idƒotd| ‚n||i|s    cKs t|S(N(R R(R((RRXsN("Rt __version__t AccessControltModuleSecurityInfoRRt declarePublictDocumentTemplate.DT_VarRRRRRRRRR R R R RturllibR tGlobalsRtAccessControl.DTMLtRestrictedDTMLRtZPublisher.HTTPRequesttrecordR Rtapplytglobals(R RRR RR RRR3RR RR RR R1RR;RRRRRR9((Rt?s*     U