mς DγΈEc@sdZdZdigZeD]Zeeeƒq[ƒZdklZl Z dkl Z l Z de fd„ƒYZ de fd „ƒYZd efd „ƒYZd efd „ƒYZdefd„ƒYZde efd„ƒYZde fd„ƒYZdeefd„ƒYZdS(spConfiguration data structures and loader for the ZRS. $Id: __init__.py,v 1.18 2004/04/15 20:33:32 fdrake Exp $ iit.(s loadConfigsloadConfigFile(s loadSchemasloadSchemaFiletConfigurationErrorcBs#tZdZed„Zd„ZRS(s"Base class for ZConfig exceptions.cCs&||_||_ti||ƒdS(N(tmsgtselftmessageturlt Exceptiont__init__(RRR((t//data/zmath/zope/lib/python/ZConfig/__init__.pyRs  cCs|iS(N(RR(R((Rt__str__!s(t__name__t __module__t__doc__tNoneRR (((RRs  t _ParseErrorcBstZdd„Zd„ZRS(NcCs)||_||_ti|||ƒdS(N(tlinenoRtcolnoRRRR(RRRRR((RR&s  cCsΨ|i}|io|d7}n(|i|ifdjo|d7}n|ioc|d|i7}|idj o|d|i7}n|io|d|i7}qΤ|d7}n |io||id7}n|S(Ns (s (sline %ds , column %ds in %s)t)(NN(RRtsRRRR (RR((RR +s     (R R R RR (((RR%s t SchemaErrorcBs tZdZeeed„ZRS(s2Raised when there's an error in the schema itself.cCsti|||||ƒdS(N(RRRRRRR(RRRRR((RRAs(R R R R R(((RR>s tSchemaResourceErrorcBs2tZdZeeeeeed„Zd„ZRS(sMRaised when there's an error locating a resource required by the schema. cCsP||_||_|dj o |}n||_ti|||||ƒdS(N( tfilenameRtpackagetpathR RRRRRR(RRRRRRRR((RRIs      cCs”ti|ƒ}|idj o|dt|iƒ7}n|idj o|dt|iƒ7}n|idj o|dt|iƒ7}n|S(Ns Package name: s File name: s Package path: ( RR RRRR treprRR(RR((RR Rs(R R R R RR (((RREs  tConfigurationSyntaxErrorcBstZdZRS(s;Raised when there's a syntax error in a configuration file.(R R R (((RR]s tDataConversionErrorcBs tZdZd„Zd„ZRS(s>Raised when a data type conversion function raises ValueError.cCsDti|t|ƒƒ||_||_|\|_|_|_ dS(N( RRRtstrt exceptiontvaluetpositionRRR(RRRR((RRds  cCshd|i|if}|idj o|d|i7}n|io|d|i7}n |d7}|S(Ns %s (line %ss, %ss, in %s)R(RRRRRR R(RR((RR js  (R R R RR (((RRas  tSubstitutionSyntaxErrorcBstZdZRS(sBRaised when interpolation source text contains syntactical errors.(R R R (((RRus tSubstitutionReplacementErrorcBstZdZeed„ZRS(s8Raised when no replacement is available for a reference.cCs1||_||_ti|d| ||ƒdS(Nsno replacement for (tsourceRtnameRRRR(RR!R"RR((RR|s  (R R R R R(((RR ys N(ii(R t version_infotjoint_[1]tnRt __version__tZConfig.loadert loadConfigtloadConfigFilet loadSchematloadSchemaFileRRRRRRt ValueErrorRRt LookupErrorR (RR#R,RR&R%RR)R R+RR*R'RRR((Rt?s0