/usr/lib64/python2.6/site-packages/mx/Misc
NameSizeModeActions
Cache.py67380644editdlrm
Cache.pyc64820644editdlrm
Cache.pyo64820644editdlrm
CommandLine.py187060644editdlrm
CommandLine.pyc183610644editdlrm
CommandLine.pyo183610644editdlrm
ConfigFile.py295410644editdlrm
ConfigFile.pyc330040644editdlrm
ConfigFile.pyo330040644editdlrm
Cookie.py56250644editdlrm
Cookie.pyc57070644editdlrm
Cookie.pyo57070644editdlrm
COPYRIGHT10300644editdlrm
CSV.py185200644editdlrm
CSV.pyc181440644editdlrm
CSV.pyo181440644editdlrm
ExitFunctions.py23080644editdlrm
ExitFunctions.pyc28600644editdlrm
ExitFunctions.pyo28600644editdlrm
FileLock.py124190644editdlrm
FileLock.pyc120250644editdlrm
FileLock.pyo120250644editdlrm
LazyModule.py44000644editdlrm
LazyModule.pyc42440644editdlrm
LazyModule.pyo42440644editdlrm
LICENSE45870644editdlrm
Namespace.py154550644editdlrm
Namespace.pyc180510644editdlrm
Namespace.pyo180510644editdlrm
OrderedMapping.py131070644editdlrm
OrderedMapping.pyc150530644editdlrm
OrderedMapping.pyo150530644editdlrm
PackageTools.py116810644editdlrm
PackageTools.pyc113460644editdlrm
PackageTools.pyo113460644editdlrm
__init__.py00644editdlrm
__init__.pyc1410644editdlrm
__init__.pyo1410644editdlrm
Edit: /usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyo (18051B)
Ñò ÆÅVHc@sdZddkZddkZddkZddklZlZdfd„ƒYZdfd„ƒYZ de efd „ƒYZ ee ƒd fd „ƒYZ d e efd „ƒYZ ee ƒdfd„ƒYZ e ƒZ dfd„ƒYZdeefd„ƒYZeeƒdS(s Namespace objects. Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com See the documentation for further information on copyrights, or contact the author. All Rights Reserved. iÿÿÿÿN(tfreezet attributest NamespacecBsgeZdZd„Zdded„Zeied„Z dei ei ei ei feied„Zd„Zeied„Zdd„Zd „Zd „Zd „Zd „Zd „Zed„Zed„Zd„Zd„Zd„Zd„Zd„Zd„ZeZ dd„Z"e"Z#de$d„Z%ddd„Z&e'i(e)d„Z*e'i(e)d„Z+RS(s' Base class for Namespaces. Instances of this namespace can store arbitrary attributes, which are stored in the instances dictionary. They are then available via attribute lookup, e.g. ns.attr, and index lookup, e.g. ns['attr']. The Namespaces support acquisition. To link the object to another object, set self.baseobj to the other object. Attributes not found in the Namespace instance are then looked up in the other object as well. NOTE: All methods and internal attributes must start with an underscore. Namespace attributes must *not* start with an underscore to prevent naming collisions with internal variables and methods. Names with leading underscore can *not* be acquired. cKs|o|ii|ƒndS(sV Initializes the namespace with the attributes given as keywords. N(t__dict__tupdate(tselftkws((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt__init__$sicCsh}x!|D]}|||ƒ||||ƒ|jo|ii|ƒn|ii|iƒdS(sÔ Updates the namespace dictionary with the new entries taken from the object other_namespace. other_namespace can either be a dictionary or another Namespace object. N(RR(Rtother_namespacetDictTypettype((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt_updateLs c Csª||ƒ|jo|iƒ}n |iƒ}|i}|i}xV|D]N\} } || ƒo5| |jp|| ƒ|joqHn| || tdefault((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt_get,scCs||i||ƒS(so Extract a list of named objects from the namespace. defaults may be given as sequence of the same size as names to provide default values in case names are not found in the namespace. Only the instance dictionary is scanned, the class variables are not available through this mechanism. (R(Rtnamestdefaultstextract((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt_extract8scCsÛt|ƒ}h}| oO| oGx²|iiƒD]/\}}|| |jo||||t,(RR:tsortR-t __module__t__name__(RtjointidR:((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt__repr__is    c Csç|iiƒ}|iƒd|ii|ii||ƒfg}x“|D]‹\}}yt|ƒ}Wn"ttt fj o d}n1Xt |ƒdjo|d dt |ƒ}n|i d|d|fƒqHWt i |dƒS(Ns%s.%s at 0x%x:s*** repr(value) failed ***iÈs!... (truncated, full length = %i)s %-10s %st:s (RRRMR-RNROtreprt ValueErrort TypeErrorR/R7tappendR"RP(RRPRQRtlRRts((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt__str__us     ((N((,RORNt__doc__RRR ttypesRRRtBuiltinMethodTypet ClassTypet MethodTypet FunctionTypeRR R!R&R'R)R*R,R.R3R5R6R8R9RR;R=R?t_hasattrR RBt_getattrRERFRKR"RPRQRRRZ(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyR sF               # t DefaultMixincBseZdZdZd„ZRS(sR Mixin that provides default attribute values. The namespace returns _default for all undefined attributes (except the ones that start with an underscore, see __getattr__). The _default is defined as '' for this class. The acquisition feature is *not* available for instances of this class. tcCs%|ddjo t|‚n|iS(s† Return self._default for all undefined attributes that don't start with an underscore. For attributes that start with an underscore, raise an AttributeError. This is especially important if the objects are to be pickled, since the pickle mechanism queries a few methods on the objects, which it then calls. it_(R/t_default(RR1((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyt __getattr__™s  (RORNR[RfRg(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRc‹s tNamespaceWithDefaultcBseZdZRS(s[ Namespace class with an infinite number of attributes. The namespace returns _default for all undefined attributes (except the ones that start with an underscore, see __getattr__). The _default is defined as '' for this class. The acquisition feature is *not* available for instances of this class. (RORNR[(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRhªs tAcquisitionMixincBseZdZdZeZRS(sN Mixin that acquires unknown attributes from a .baseobj (if set) N(RORNR[R tbaseobjtacquireRg(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRi»stNamespaceWithAcquisitioncBseZdZRS(så Namespace class with acquisition mechanism. The namespace fetches values for all undefined attributes (except the ones that start with an underscore, see __getattr__) from the .baseobj, if defined. (RORNR[(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRlÉst _NotFoundcBseZRS((RORN(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRm×stFormatNamespaceMixincBseZdZed„ZRS(se This mixin makes a Namespace class conform to the Python format string mechanism. The following format specifiers are supported: %(attribute)s - gives the string representation of .attribute %()s - evaluates the in the Namespace dictionary and returns the string representation All standard Python string formatting output types are supported, provided that the attribute or evaluation result can be converted to these types. cCs4t|||ƒ}||j o|St||iƒS(N(RtevalR(RtitemRmR((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyR3îs (RORNR[RmR3(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRnÛstFormatNamespacecBseZdZRS(sØ Namespace class which supports the Python format string lookup mechanism. These Namespaces can be used in 'format string' % namespace formatting. The following format specifiers are supported: %(attribute)s - gives the string representation of .attribute %()s - evaluates the in the Namespace dictionary and returns the string representation All standard Python string formatting output types are supported, provided that the attribute or evaluation result can be converted to these types. (RORNR[(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyRqùs(R[R"R\tmx.Tools.NewBuiltinstmxtmx.ToolsRRRRcRhRiRlRmRnRq(((s7/usr/lib64/python2.6/site-packages/mx/Misc/Namespace.pyts" ÿ€