|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/lib64/python2.4/site-packages/ |
Upload File : |
mò
Âká@c @ s· d Z d Z d k Z d k Z d „ Z d d d d f Z d „ Z d
f d „ ƒ YZ y d k Z d k
Z Wn e j
o n4 Xd e i i
i f d „ ƒ YZ d f d „ ƒ YZ d S( s*
dsml - generate and parse DSMLv1 data
(see http://www.oasis-open.org/committees/dsml/)
written by Michael Stroeder <michael@stroeder.com>
See http://python-ldap.sourceforge.net for details.
$Id: dsml.py,v 1.9 2004/06/17 13:52:07 stroeder Exp $
Python compability note:
Tested with Python 2.0+.
s 0.5.2Nc C s% h } x | D] } d | | <q
W| S( sN
return a dictionary with all items of l being the keys of the dictionary
N( t dt lt it None( R R R ( ( t* /usr/lib64/python2.4/site-packages/dsml.pyt list_dict s t &s &t <s <t "s "t 's 'c C s0 x) t D]! \ } } t i | | | ƒ } q W| S( N( t special_entitiest chart entityt stringt replacet s( R R R ( ( R t replace_char# s t
DSMLWriterc B sG t Z g d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nt s c C s: | | _ t t t i | ƒ ƒ | _ | | _
| | _ d S( s
Parameters:
f
File object for output.
base64_attrs
Attribute types to be base64-encoded.
dsml_comment
Text placed in comment lines behind <dsml:dsml>.
indent
String used for indentiation of next nested level.
N(
t ft selft _output_fileR t mapR
t lowert base64_attrst
_base64_attrst dsml_commentt
_dsml_commentt indentt _indent( R R R R R ( ( R t __init__* s
c C sZ | i o | i i t i | ƒ ƒ Sn0 y t | d ƒ Wn t j
o d Sn Xd Sd S( Ns utf-8i i ( R R t has_keyR
R t attr_typet unicodet
attr_valuet UnicodeError( R R R"