Warning: Undefined array key "बहिः गच्छतु" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 136

Warning: Undefined array key "aksi" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 140

Warning: Undefined array key "नामपत्र" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 159

Warning: Undefined array key "नामपत्र" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 181
Current File : //usr/lib64/python2.6/site-packages/dsml.pyo
��
/��Jc
@s�dZdZddkZddkZd�ZddddfZd
�Zddd��YZyddkZ	ddk
Z	Wnej
on4Xde	ii
ifd��YZddd��YZdS(s�
dsml - generate and parse DSMLv1 data
(see http://www.oasis-open.org/committees/dsml/)

See http://www.python-ldap.org/ for details.

$Id: dsml.py,v 1.13 2009/07/14 10:44:13 stroeder Exp $

Python compability note:
Tested with Python 2.0+.
s2.3.9i����NcCs%h}x|D]}d||<q
W|S(sN
  return a dictionary with all items of l being the keys of the dictionary
  N(tNone(tltdti((s*/usr/lib64/python2.6/site-packages/dsml.pyt	list_dicts
t&s&amp;t<s&lt;t"s&quot;t's&apos;cCs0x)tD]!\}}ti|||�}qW|S(N(tspecial_entitieststringtreplace(tstchartentity((s*/usr/lib64/python2.6/site-packages/dsml.pytreplace_char"st
DSMLWritercBsGeZgddd�Zd�Zd�Zd�Zd�Zd�ZRS(ts    cCs:||_ttti|��|_||_||_dS(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_output_fileRtmapR
tlowert
_base64_attrst
_dsml_commentt_indent(tselftftbase64_attrstdsml_commenttindent((s*/usr/lib64/python2.6/site-packages/dsml.pyt__init__)s		cCsT|io|iiti|��Syt|d�Wntj
odSXdSdS(Nsutf-8ii(Rthas_keyR
RtunicodetUnicodeError(Rt	attr_typet
attr_value((s*/usr/lib64/python2.6/site-packages/dsml.pyt_needs_base64_encoding<s
cCs�|iididddd|ig��|ioR|iid|i�|iid|i|if�|iid|i�nd	S(
s
    Write the header
    s
s&<?xml version="1.0" encoding="UTF-8"?>sD<!DOCTYPE root PUBLIC "dsml.dtd" "http://www.dsml.org/1.0/dsml.dtd">s1<dsml:dsml xmlns:dsml="http://www.dsml.org/DSML">s%s<dsml:directory-entries>
s%s<!--
s%s%s
s%s-->
N(RtwritetjoinRR(R((s*/usr/lib64/python2.6/site-packages/dsml.pytwriteHeaderGs
 cCs+|iid|i�|iid�dS(s
    Write the footer
    s%s</dsml:directory-entries>
s
</dsml:dsml>
N(RR$R(R((s*/usr/lib64/python2.6/site-packages/dsml.pytwriteFooterWscCs|i||�S(N(twriteRecord(Rtdntentry((s*/usr/lib64/python2.6/site-packages/dsml.pytunparse^sc	
Cs|iid|idt|�f�|id|idg��}|iid|id�x/|D]'}|iid|id|f�qgW|iid	|id�|i�}y|id�|id�Wntj
onX|i�x�|D]�}|iid
|id|f�x�||D]�}|i	||�}|ot
i|�}n
t|�}|iid|idd|f�|iid
|id|f�|iid|idf�q1W|iid|id�q�W|iid|id�dS(s�
    dn
          string-representation of distinguished name
    entry
          dictionary holding the LDAP entry {attr:data}
    s%s<dsml:entry dn="%s">
itobjectclasstobjectClasss%s<dsml:objectclass>
is$%s<dsml:oc-value>%s</dsml:oc-value>
is%s</dsml:objectclass>
s%s<dsml:attr name="%s">
s%s<dsml:value%s>
s encoding="base64"s%s%s
is%s</dsml:value>
s%s</dsml:attr>
s%s</dsml:entry>
N(RR$RRtgettkeystremovet
ValueErrortsortR#tbase64tencodestring(	RR)R*t
objectclassestoct
attr_typesR!tattr_value_itemtneeds_base64_encoding((s*/usr/lib64/python2.6/site-packages/dsml.pyR(asJ		%


!

(t__name__t
__module__RR#R&R'R+R((((s*/usr/lib64/python2.6/site-packages/dsml.pyR's				t
DSMLv1HandlercBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s*
    Content handler class for DSMLv1
    cCs#||_tiiii|�dS(N(t_parser_instancetxmltsaxthandlertContentHandlerR(Rtparser_instance((s*/usr/lib64/python2.6/site-packages/dsml.pyR�s	cCsdS(N((R((s*/usr/lib64/python2.6/site-packages/dsml.pyt
startDocument�scCsdS(N((R((s*/usr/lib64/python2.6/site-packages/dsml.pytendDocument�scCs|d}|djon�|djo
d|_n�|djo|d|_h|_n�|djo#|did	�|_g|_n}|d
jo.d|_|idd�i�d
j|_	nB|djo
g|_
n(|djo
d|_ntd|�dS(Nitdsmlsdirectory-entriesiR*R)tattrtnamesutf-8tvalueRtencodingR3R,soc-valuesUnknown tag %s(
t_parsing_entriest_dnt_entrytencodet
_attr_typet_attr_valuest_attr_valueR.Rt_base64_encodingt_object_classest	_oc_valueR1(Rtraw_nametattrsRG((s*/usr/lib64/python2.6/site-packages/dsml.pytstartElement�s&









	%



cCsz|d}|djon\|djo
d|_nB|djo)|ii|i|i�|`|`n|djo#|i|i|i<|`|`n�|djoa|ioti	|i
i��}n|i
i�id�}|ii
|�~|`
|`nn|d	jo|i|id
<|`nG|djo,|ii
|ii�id��|`ntd|�dS(
NiREsdirectory-entriesiR*RFRHsutf-8R,R-soc-valuesUnknown tag %s(RJR=thandleRKRLRORNRQR3tdecodestringRPtstripRMtappendRRRSR1(RRTRGR"((s*/usr/lib64/python2.6/site-packages/dsml.pyt
endElement�s8













"
cCsR|iid�o|i||_n(|iid�o|i||_ndS(NRSRP(t__dict__RRSRP(Rtch((s*/usr/lib64/python2.6/site-packages/dsml.pyt
characters�s
(	R:R;t__doc__RRCRDRVR[R^(((s*/usr/lib64/python2.6/site-packages/dsml.pyR<�s					#t
DSMLParsercBs/eZdZddd�Zd�Zd�ZRS(s�
    Base class for a DSMLv1 parser. Applications should sub-class this
    class and override method handle() to implement something meaningful.

    Public class attributes:
    records_read
          Counter for records processed so far
    icCs�||_||_ttti|pg��|_d|_d|_	t
ii�|_
|i
it
iiid�||�}|i
i|�dS(sa
      Parameters:
      input_file
          File-object to read the DSMLv1 input from
      ignored_attr_types
          Attributes with these attribute type names will be ignored.
      max_entries
          If non-zero specifies the maximum number of entries to be
          read from f.
      line_sep
          String used as line separator
      iN(NN(t_input_filet_max_entriesRRR
Rt_ignored_attr_typesRt_current_recordtrecords_readR>R?tmake_parsert_parsert
setFeatureR@tfeature_namespacestsetContentHandler(Rt
input_filetContentHandlerClasstignored_attr_typestmax_entriestcontent_handler((s*/usr/lib64/python2.6/site-packages/dsml.pyRs		"		cOs*ddk}|i|�|i|�dS(s
      Process a single content DSMLv1 record. This method should be
      implemented by applications using DSMLParser.
      i����N(tpprint(RtargstkwargsRp((s*/usr/lib64/python2.6/site-packages/dsml.pyRWs
cCs|ii|i�dS(s5
      Continously read and parse DSML records
      N(RgtparseRa(R((s*/usr/lib64/python2.6/site-packages/dsml.pyRs(sN(R:R;R_RRRWRs(((s*/usr/lib64/python2.6/site-packages/dsml.pyR`�s
		(Rs&amp;(Rs&lt;(Rs&quot;(Rs&apos;(((R_t__version__R
R3RR	RRtxml.saxR>txml.sax.handlertImportErrorR?R@RAR<R`(((s*/usr/lib64/python2.6/site-packages/dsml.pyt<module>s			tT