?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
Ñò 0é¡Ic@sOdefd„ƒYZdefd„ƒYZdefd„ƒYZd„ZdS(tConfigNamespacecBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z RS( sAbstract class representing the interface of Config objects. A ConfigNamespace is a collection of names mapped to values, where the values may be nested namespaces. Values can be accessed via container notation - obj[key] - or via dotted notation - obj.key. Both these access methods are equivalent. To minimize name conflicts between namespace keys and class members, the number of class members should be minimized, and the names of all class members should start with an underscore. Subclasses must implement the methods for container-like access, and this class will automatically provide dotted access. cCs t|ƒS(N(tNotImplementedError(tselftkey((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt __getitem__scCst||ƒ‚dS(N(R(RRtvalue((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt __setitem__scCst|ƒ‚dS(N(R(RR((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt __delitem__scCstƒS(N(R(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__iter__scCst|ƒ‚dS(N(R(Rtname((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt_new_namespace scCs5y|i|ƒSWntj ot||ƒSXdS(N(RtKeyErrort Undefined(RR ((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt __getattr__.scCsQy'ti||ƒti|||ƒWn#tj o|i||ƒnXdS(N(tobjectt__getattribute__t __setattr__tAttributeErrorR(RR R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR4s cCsKy$ti||ƒti||ƒWn tj o|i|ƒnXdS(N(RRt __delattr__RR(RR ((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR;s cCs|iS(N(t__dict__(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt __getstate__BscCs|ii|ƒdS(N(Rtupdate(Rtstate((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt __setstate__Es( t__name__t __module__t__doc__RRRRR R RRRR(((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRs         R cBs eZdZd„Zd„ZRS(sHelper class used to hold undefined names until assignment. This class helps create any undefined subsections when an assignment is made to a nested value. For example, if the statement is "cfg.a.b.c = 42", but "cfg.a.b" does not exist yet. cCs*ti|d|ƒti|d|ƒdS(NR t namespace(RR(RR R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__init__PscCs#|ii|iƒ}|||>> n = BasicConfig() >>> n.x = 7 >>> n.name.first = 'paramjit' >>> n.name.last = 'oberoi' ...and accessed the same way, or with [...]: >>> n.x 7 >>> n.name.first 'paramjit' >>> n.name.last 'oberoi' >>> n['x'] 7 >>> n['name']['first'] 'paramjit' Iterating over the namespace object returns the keys: >>> l = list(n) >>> l.sort() >>> l ['name', 'x'] Values can be deleted using 'del' and printed using 'print'. >>> n.aaa = 42 >>> del n.x >>> print n aaa = 42 name.first = paramjit name.last = oberoi Nested namepsaces are also namespaces: >>> isinstance(n.name, ConfigNamespace) True >>> print n.name first = paramjit last = oberoi >>> sorted(list(n.name)) ['first', 'last'] Finally, values can be read from a file as follows: >>> from StringIO import StringIO >>> sio = StringIO(''' ... # comment ... ui.height = 100 ... ui.width = 150 ... complexity = medium ... have_python ... data.secret.password = goodness=gracious me ... ''') >>> n = BasicConfig() >>> n._readfp(sio) >>> print n complexity = medium data.secret.password = goodness=gracious me have_python ui.height = 100 ui.width = 150 cCs h|_dS(N(t_data(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR¤scCs |i|S(N(R(RR((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR§scCs||i| ConfigNamespace and inserts values into the ConfigNamespace. For example: >>> n = BasicConfig() >>> n.playlist.expand_playlist = True >>> n.ui.display_clock = True >>> n.ui.display_qlength = True >>> n.ui.width = 150 >>> print n playlist.expand_playlist = True ui.display_clock = True ui.display_qlength = True ui.width = 150 >>> from iniparse import ini >>> i = ini.INIConfig() >>> update_config(i, n) >>> print i [playlist] expand_playlist = True [ui] display_clock = True display_qlength = True width = 150 svalue-namespace conflictN(R%RR3R R t update_config(ttargettsourceR Rtmyns((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR;ås  N(RRR RR;(((s3/usr/lib/python2.6/site-packages/iniparse/config.pytsGŠ