403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/xml2po/modes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyo
Ñò
ëÀ·Jc@sddkZddkZddkZddkZyddklZWn#ej
oddklZnXddk	l
Z
de
fd„ƒYZedjojeƒZ
dee
iƒƒGHd	ee
iƒƒGHd
ee
iƒƒGHde
iƒGHde
iƒGHndS(
iÿÿÿÿN(tmd5(tnew(tbasicXmlModetdocbookXmlModecBszeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
s™Class for special handling of DocBook document types.

    It sets lang attribute on article elements, and adds translators
    to articleinfo/copyright.cCs:dddddddg|_dd	d
ddg|_dS(
Ntitemizedlisttorderedlisttvariablelistt
segmentedlistt
simplelisttcalloutlisttvarlistentrytfiguret
textobjecttimageobjecttmediaobjectt
screenshot(tliststobjects(tself((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyt__init__5s	cCs|i|iS(s$Returns array of tags to be ignored.(RR(R((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pytgetIgnoredTags;sc	Cs-ddddddddd	g	|i|iS(
s/Returns array of tags to be considered 'final'.tparat
formalparatsimparatreleaseinfot	revnumberttitletdatettermtprogramlisting(RR(R((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pytgetFinalTags?scCsddddddddgS(	s:Returns array of tags in which spaces are to be preserved.tclasssynopsisinfotcomputeroutputtfuncsynopsisinfot
literallayoutRtscreentsynopsist	userinput((R((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pytgetSpacePreserveTagsEscCsdS(s8Returns string which will be used to credit translators.stranslator-credits((R((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pytgetStringForTranslatorsRscCsdS(sGReturns a comment to be added next to string for crediting translators.sFPut one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2((R((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pytgetCommentForTranslatorsVscCse|idjp|idjo|S|i}x0|o(|i|ƒ}|o|S|i}q1WdS(Ntarticleinfotbookinfo(tnametchildrent_find_articleinfotnexttNone(Rtnodetchildtret((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyR-Zs 	cCsX|ipdS|iƒ}|}x0|o(|idjo|}Pn|i}q$W|S(Nt	copyright(R,R/t	lastChildR+tprev(RR0tlastttmp((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyt_find_lastcopyrightes
cCsftƒ}t|dƒ}|idƒ}x(|o |i|ƒ|idƒ}q*W|iƒ|iƒS(Ntrbi(tmd5_newtopentreadtupdatetcloset	hexdigest(RtfilenamethashtinputR<((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyt
_md5_for_fileqs	

cCs|oÌ|idjo¼|idjo¬|idƒ}|o’tii|iƒ}tii||ƒ}tii|ƒo|i	|ƒ}nd}t
id|IJ|id||f|i
ƒddƒqnG|o?|io5|i}x)|o|i||ƒ|i}qðWndS(	Ntelementt	imagedatatfilerefsTHIS FILE DOESN'T EXISTs#Warning: image file '%s' not found.s@@image: '%s'; md5=%ssOWhen image changes, this message will be marked fuzzy or untranslated for you.
sAIt doesn't matter what you translate it to: it's not used at all.(ttypeR+tproptostpathtdirnameR@tjointexistsRCtsyststderrt
outputMessagetlineNoR,t_output_imagesR.(RR0tmsgtattrtdirtfullpathRAR1((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyRR{s$'	cCs |iƒ}|i||ƒdS(s)Add additional messages of interest here.N(tgetRootElementRR(RtdocRStroot((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyt
preProcessXml’scCs8|iƒ}x5|o-|idjo|idjo
|i}qW|o4|idjp|idjo|id|ƒndS||iƒjodS|o’|i|ƒ}|pdS|idƒ}xe|D]Y}|iƒ}ti	d|ƒ}|o.|i
|ƒ}	tidƒ}
|	o|	i
|
ƒ}
n|i|
ƒ|idƒo)|
idd	|idƒid
ƒƒn|idƒo4|idƒo$|idƒd
|idƒ}nM|idƒo|idƒ}n*|idƒo|idƒ}nd}|
idd|id
ƒƒqÓqÓWndS(s­Sets a language and translators in "doc" tree.

        "translators" is a string consisted of "Name <email>, years" pairs
        of each translator, separated by newlines.tarticletbooktlangNs
s$^([^<,]+)\s*(?:<([^>,]+)>)?,\s*(.*)$R3ityearsutf-8iis(%s)s???tholder(RWR+R.tsetPropR'R-tsplittstriptretmatchR8tlibxml2tnewNodetaddNextSiblingtaddChildtgrouptnewChildR/tencode(RRXtlanguagettranslatorsRYtaitlinestlineRdR6tcopyR_((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pytpostProcessXmlTranslation—sD''
) $(t__name__t
__module__t__doc__RRRR&R'R(R-R8RCRRRZRr(((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyR0s				
					
		t__main__sIgnored tags       : sFinal tags         : sSpace-preserve tags: sCredits from string: '%s'sExplanation for credits:
	'%s'(RcReRIRNthashlibRR:tImportErrorRtbasicRRRsttesttreprRRR&R'R((((s8/usr/lib/python2.6/site-packages/xml2po/modes/docbook.pyt<module>$s —
	

Youez - 2016 - github.com/yon3zu
LinuXploit