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/share/hplip/base/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/base/vcard.pyc
lJc%@sDddkTddkZddkZddkZddkZddkZddkZddkZgZy<ddkZ	ei
eidfei
eidfWnnXyRddk
Z	ei
eidfei
eidfei
eidfWnnXyRddkZ	ei
eidfei
eidfei
eidfWnnXy&ddkZ	ei
eidfWnnXei
d	dfei
d
dfegZeD]\ZZeeeq[ZdZeidZeid
Z eidZ!dZ"dZ#dZ$dZ%ddddgZ&dZ'dZ(dZ)de*fdYZ+dfdYZ,dfdYZ-d fd!YZ.d"Z/d#Z0d$Z1e0e1fZ2d%Z3d&Z4d'd(Z5d)d*d+Z6d,d-Z7d.d/Z8d0Z9d1Z:d2Z;d3Z<hd4d56d6d76d8d96d:d;6d<d=6d>d?6d@dA6Z=dBZ>dCZ?d,dDZ@dEZAdFZBdGZCdHZDdIdJdKdLdMdNdOdPdQdRdSfZEeFdTZGh
e0dU6d,dV6dWdX6e7dI6e8dM6e;dN6e<dO6e>dL6e?dK6e@dR6ZHeHiIZJe1eJdU<dYeJdX<eJiIZKe9eKdM<eJiIZLdZeLdV<eLiIZMeMdM=eMiNheAdL6eBdN6eCdO6eDdK6hhd[d\6eHd]6d^6hd_d\6eJd]6d`6hdad\6eKd]6db6hdcd\6eLd]6dd6hded\6eMd]6df6ZOdS(gi(t*Ntutf_64tutf_32tutf_16t	utf_16_bet	utf_16_letutf_8tBEGIN:VCARDtBEGIN:VCARDcCsut|d}|it}xGtD]?\}}|i|o#titi|d|iSq%Wt|dS(sThis function detects unicode byte order markers and if present
    uses the codecs module instead to open the file instead with
    appropriate unicode decoding, else returns the file using standard
    open functiontrbtrtrtU(tfiletreadt
_maxbomlent_bomst
startswithtStringIOtcodecstopen(tnametftstarttbomtcodec((s/usr/share/hplip/base/vcard.pytopentextfileZs's[^0-9]*s^[0-9]{10}$s
^[0-9]{7}$cCsh|Sditit|}t|djo|St|djo|ddjo	|dS|S(Nti
iit1i(tjointretsplitt
_notdigitstlen(tntnums((s/usr/share/hplip/base/vcard.pytphonenumber_normaliseps$	cCsqtit|dj	o$d|dd!|dd!|dfStit|dj	od|d |dfS|S(Ns
(%s) %s-%siiis%s-%s(Rtmatcht
_tendigitstNonet_sevendigits(R!((s/usr/share/hplip/base/vcard.pytphonenumber_format}s
$cCs(t|}|o|S|iddS(s>like L{formatname}, except we use the first matching componenttnicknameR(tnameparser_getfullnametget(Rt	_fullname((s/usr/share/hplip/base/vcard.pytnameparser_formatsimplenamescCsR|ido	|dSdig}t|D]}|o||q0q0~S(s>Gets the full name, joining the first/middle/last if necessarytfullt (thas_keyRtnameparser_getparts(Rt_[1]tx((s/usr/share/hplip/base/vcard.pyR*s	tvantvontdetdicCs(|id}|i}t|djo|ddfSt|djo|dd|dfS|dg}g}|dg}|d=|d=xdt|oV|ddi|ddjp|ditjo|dg|}|d=qW|}di|di|di|fS(NR.iRiiiR/(R+RR tlowert	lastpartsR(RR!tpartsRtmtl((s/usr/share/hplip/base/vcard.pytnameparser_getparts_FMLs"

GcCs|id}|id}t|djo|ddfS|d}d}d}|di}t|djo8|d}t|djodi|d}qn|||fS(NR.t,iRiR/(R+RR R(RR!R:t_lastt_firstt_middle((s/usr/share/hplip/base/vcard.pytnameparser_getparts_LFMs

cCsxPdD]H}|i|o2|idd|idd|iddfSqW|idp|iddddfS|id}d|jot|St|S(	sfReturns (first, middle, last) for name.  If the part doesn't exist
    then a blank string is returnedtfirsttmiddletlastRR.R)R>(sfirstRDRE(R0R+tnameparser_getRBR=(RtiR!((s/usr/share/hplip/base/vcard.pyR1s6
tVFileExceptioncBseZRS((t__name__t
__module__(((s/usr/share/hplip/base/vcard.pyRHstVFilecBsKeZhdd6ZdZdZdZdZdZdZRS(t	MAC_ROMANt	MACINTOSHcCs||_d|_dS(N(tsourceR&tsaved(tselfRN((s/usr/share/hplip/base/vcard.pyt__init__s	cCs|S(N((RP((s/usr/share/hplip/base/vcard.pyt__iter__scCsMxJtoB|i}|djo
tnt|djoPqqWt}|id}|djo|| iid}d|jp
d|jot}x|ddjp|ddjo^|ddjo
d}nd}|i}|ddjo|d}n|| |}qWq4nx}|ou|i	}|djoPnt|djoPn|dd
jo|dd	joPn||id7}q7W|id}|djo+t
id|t|}|d7}n|| }||di}|i
id}	g}
t|to
d}nd
}x!|	D]}|ido|dpd
}q[n|ido"|djo|
i|q[nyg|djp
|djoti|}n7|djoti|}d}ntd|Wq[tj
oB}t|to
|ntdt|||fq[Xq[Wt|
djotd|fn|dj	ody4ti|ii||}
|
|\}}Wqtj
otd||fqXn|
dgjp|
dgjo|i
}n|
|fS(Nit:t;squoted-printablesencoding=quoted-printableit=is	R/isFixing up bad line: %ssLATIN-1sCHARSET=is	ENCODING=sQUOTED-PRINTABLEsENCODING=QUOTED-PRINTABLEs
ENCODING=Bsunknown encoding: s6Exception %s while processing encoding %s on data '%s'sLine contains no property: %ss+unknown character set '%s' in parameters %stBEGINtEND(s	R/(tTruet_getnextlineR&t
StopIterationR tfindR8RtFalset
_lookaheadtlogtdebugtstriptuppert
isinstancetunicodeRtappendtquopritdecodestringtbase64RHt	ExceptiontstrRt
getdecodert_charset_aliasesR+tLookupError(RPtlinetnormalcontinuationstcolontsRGtnextltnextlinetb4titemstnewitemstcharsettetdecodert_((s/usr/share/hplip/base/vcard.pytnexts



"

"






(
 cCs5|idj	o|i}d|_|S|iSdS(N(ROR&t_readandstripline(RPRm((s/usr/share/hplip/base/vcard.pyRYs
		cCs|ii}|dj	oat|djodS|ddjo	|d S|ddjp|ddjo	|d Sn|S(Niis
is
s
(RNtreadlineR&R (RPRm((s/usr/share/hplip/base/vcard.pyR{s
	"
cCs-|idjpt|i|_|iS(N(ROR&tAssertionErrorR{(RP((s/usr/share/hplip/base/vcard.pyR]s(	RIRJRkRQRRRzRYR{R](((s/usr/share/hplip/base/vcard.pyRKs
			u			tVCardscBs)eZdZdZdZdZRS(sUnderstands vcards in a vfilecCs
||_dS(N(tvfile(RPR((s/usr/share/hplip/base/vcard.pyRQscCs|S(N((RP((s/usr/share/hplip/base/vcard.pyRRscCsd}}xA|iD]6\}}||fdgdfjoqnt}PqW||fdgdfjo
tng}xN|iD]C\}}||fdgdfjo|i||fqnPqW||fdgdfjotdnt|S(NRVtVCARDRWs'There is a BEGIN:VCARD but no END:VCARD(R&RRXRZRdRHtVCard(RPtfieldtvaluetfoundtlines((s/usr/share/hplip/base/vcard.pyRzs&



(RIRJt__doc__RQRRRz(((s/usr/share/hplip/base/vcard.pyR~s		RcBseZdZdZdZddZdZdZdZdZ	e	Z
e	Ze	Ze	Z
e	Ze	Ze	Ze	Ze	Ze	Zd	Zd
ZdZdZd
ZdZeZdZeZdZdZdZdZ e!dZ"e!dZ#dZ$dZ%e$Z&dZ'dZ(dZ)dZ*ddZ+dZ,dZ-d Z.d!Z/RS("sA single vcardc	Cspd|_d|_h|_h|_g|_x|D]\}}t|pt|dgjo
d|_n|dido5|di	dp|di	do
d|_nt|oE|di
d	|di
d
jo
djno
d|_n|dgjop|id}y+g}|D]}|t
|q9~}Wn#tj
ot|d
nX||_q4n|ddjoddg|dd+ny|ddjoddg|dd+nQ|ddjoddg|dd+n)|ddjoddg|dd+n|ii||fq4W|i|i|i|i|idS(NiisX-EVOLUTION-FILE-ASt	evolutiontITEMs.X-ABADRs
.X-ABLABELtapples>!$_s_$!<tVERSIONt.s is not a valid vcard versionsHOME.TELtTELtHOMEis
HOME.LABELtLABELsWORK.TELtWORKs
WORK.LABEL(ii(t_versionR&t_origint_datat_groupsRR R}RtendswithR[toriginRtintt
ValueErrorRHRdt_parset_update_groups(RPRRtvtverR2txx((s/usr/share/hplip/base/vcard.pyRQsB					
<
E
+	cCs|iS(s2Returns a dict of the data parsed out of the vcard(R(RP((s/usr/share/hplip/base/vcard.pytgetdatasRcCs|ii||S(N(RR+(RPtkeytdefault((s/usr/share/hplip/base/vcard.pyR+scCsL||jo|Sx3tddD]"}||
|jo
||
Sq"WdS(sReturns the fieldname to use in the dict.

        For example, if name is "email" and there is no "email" field
        in dict, then "email" is returned.  If there is already an "email"
        field then "email2" is returned, etciiN(txrange(RPRtdictRG((s/usr/share/hplip/base/vcard.pyt
_getfieldnames
cCsx|D]\}}t|idjoqnd|djo#|d|didd}n|d}|idd}t|d||i}||||qWdS(NiRit-Ryt_field_(R R`R[treplacetgetattrt_default_field(RPRtresultRRRtttfunc((s/usr/share/hplip/base/vcard.pyRs#
cCs4x-|iiD]\}}|i||qWdS(sUpdate the groups info N(RRtt	_setvalue(RPRtkRw((s/usr/share/hplip/base/vcard.pyR#scCsdS(N((RPRRR((s/usr/share/hplip/base/vcard.pyt
_field_ignore+scCs#|i|||id|<dS(NR(tunquoteR(RPRRR((s/usr/share/hplip/base/vcard.pyt	_field_FN=scCs#|i|||id|<dS(Nttitle(RR(RPRRR((s/usr/share/hplip/base/vcard.pyt_field_TITLEAscCs#|i|||id|<dS(NR)(RR(RPRRR((s/usr/share/hplip/base/vcard.pyt_field_NICKNAMEEscCs#|i|||id|<dS(Ntnotes(RR(RPRRR((s/usr/share/hplip/base/vcard.pyt_field_NOTEJscCs|i||d<dS(Ntuid(R(RPRRR((s/usr/share/hplip/base/vcard.pyt
_field_UIDNsc	Csy|i|}d}}}}}y6|d}|d}|d}|d}|d}Wntj
onX|dj	o't|o|||id|<n|dj	o't|o|||id|<n|dj	o't|o|||id|<n|dj	o't|o|||id	|<n|dj	o't|o|||id
|<ndS(Niiiiis	last names
first namesmiddle nametprefixtsuffix(tsplitandunquoteR&t
IndexErrorR R(	RPRRRt
familynamet	givennametadditionalnamesthonorificprefixesthonorificsuffixes((s/usr/share/hplip/base/vcard.pyt_field_NVs(



cCsi|i|}t|o|d||id|<nx(|dD]}|||id|<qEWdS(Nitorganisationisorganisational unit(RR R(RPRRRR((s/usr/share/hplip/base/vcard.pyt
_field_ORGus
c
Cs%|i|}g}xU|dD]I}|ido|tdid}n
|g}|i|q Wd}xN|D]F}|djo
d}n|djo
d}n|djodSqzWd	|j}	|djo|i|d
||	n+h|d
6|d6}
|i|d
|
|	dS(NisTYPE=R>RthomeRtbusinesstX400tPREFtemailttype(RRR RtextendR&R(RPRRRttypesRtffRRt	preferredtaddr((s/usr/share/hplip/base/vcard.pyt_field_EMAILs,	




	
c
Cs|i|}g}xU|dD]I}|ido|tdid}n
|g}|i|q Wd}x<|D]4}|djo
d}n|djo
d}qzqzWd|j}	|djo|i|d	||	n+h|d	6|d
6}
|i|d	|
|	dS(NisTYPE=R>RRRRRturlR(RRR RRR&R(RPRRRRRRRRRR((s/usr/share/hplip/base/vcard.pyt
_field_URLs(	



cCs~d|djo|d|did }nd}|djotidn'|i|dht|d6|tdS(NRisspeeddial has no grouptphonet	speeddial(R[R&R^R_t_setgroupvalueRR\(RPRRRtgroup((s/usr/share/hplip/base/vcard.pyt_field_X_SPEEDDIALs
cCs|i|}d|djo|d|did }nd}g}xU|dD]I}|ido|tdid}n
|g}|i|qVWhdd6dd6dd	6d
d6d
d6}g}	|D]}
|	|i|
|
q~	}g}|D]}
|
d jo||
qq~}dddg}d|jo
t}
n0t}
x&|D]}||jot	}
Pq^q^Wd|j}t	}t	}d|jo
t}nd
|jo
t}nt|djp|dgjo
t}nt
|}|o2|
o+|i|dhdd6|d6||n|o2|
o+|i|dhdd6|d6||n|o@|o8d|jo+|i|dhdd6|d6||n|o8d|jo+|i|dhdd6|d6||n|o8d|jo+|i|dhdd6|d6||nd
|jo+|i|dhdd6|d6||nd|jo+|i|dhdd6|d6||nd|jo+|i|dhdd6|d6||ndS(!NRiisTYPE=R>tDATAtBBStMODEMtISDNtCELLtCARtPCSRRtMSGRtVOICEtFAXtVIDEOtPAGERRRRtnumberRtfaxsbusiness faxshome faxtcelltpagertdata(
sHOMEsWORKRsPREFRRRRRR(RR[R&RR RRR+RXR\R#R(RPRRRRRRRtmungeR2Rt_[2]t	antivoicetvoiceRtisworktishome((s/usr/share/hplip/base/vcard.pyt
_field_TELs	
-


	



#
			
	
	
	cCs|djo|i||||S|ii|d}|djo|||g|i|<nZ||djo"tid||tdfn|ot|d<n|di|dS(s) Set value of an item of a group
        is$Group %s has different types: %s, %siiN(	R&RRR+R^R_tgroups_typeRXtupdate(RPRRRRRt
group_type((s/usr/share/hplip/base/vcard.pyR9s

"c		Cs||jo|||<dS|p|||i||<dS|g}xUdgtddD]=}|t||jo|i||t|q^Pq^Wdgtdt|d}x6tt|D]"}||||t||<qWdS(NRiici(RtrangeRiRdR (	RPRRRRtvaluesRtsuffixesR<((s/usr/share/hplip/base/vcard.pyRPs 

	 cCs|i|dd}g}|D]}||iddiq ~}g}|D]}t|o||qSqS~}|idd}|o&di|di|g|d<ndi||d<dS(Nt	seperatorR>RTRt
categories(RRR`R R+R&R(RPRRRRR2RR((s/usr/share/hplip/base/vcard.pyt_field_CATEGORIEShs32&c	Cs|i|dd}g}|D]}||iddiq ~}g}|D]}t|o||qSqS~}di|||id|<dS(NRR>RTRt	ringtones(RRR`R RR(RPRRRRR2RR((s/usr/share/hplip/base/vcard.pyt_field_SOUNDvs32cCsvt}d}x|dD]{}|ido|tdid}n
|g}x<|D]4}|djo
d}n|djo
t}qZqZWqW|i|}d}	}
}}}
}}yJ|d}	|d}
|d	}|d
}|d}
|d}|d
}Wntj
onXh}|	dj	ot|	o|	|d<n|
dj	ot|
o|
|d<n|dj	ot|o||d<n|dj	ot|o||d<n|
dj	ot|
o|
|d<n|dj	ot|o||d<n|dj	ot|o||d<nt|o$||d<|i|d||ndS(NRisTYPE=R>RRRiiiiiitpoboxtstreet2tstreettcitytstatet
postalcodetcountryRtaddress(	R\RR RRXRR&RR(RPRRRRRRRR3Rtextendedaddresst
streetaddresstlocalitytregionRRR((s/usr/share/hplip/base/vcard.pyt
_field_ADRsV	










cCs|did}|d}t|djo|d}nd}|idp|ido|idg||nF|djp
|djo|idg||ntid	|dS(
NiRiRsX-PALM-CATEGORYt
CATEGORIESsX-PALM-NICKNAMEtNICKNAMEsIgnoring PALM custom field: %s(RR RRRR^R_(RPRRRRtf0tf1((s/usr/share/hplip/base/vcard.pyt
_field_X_PALMs
 cCs|did}|d}t|djo|d}nd}|idp|ido|i|||dS|idp|idotid|dStid||d	 fdS(
NiRiRsX-PALM-sX-sIgnoring custom field: %ssNo idea what to do with %s (%s)iP(RR RR
R^R_(RPRRRRRR	((s/usr/share/hplip/base/vcard.pyRs
  cCsL|iddiddiddiddiddid	dS(
Ns\;RTs\,R>s\ns
s\r\ns
s
(R(RPR((s/usr/share/hplip/base/vcard.pyRsRTcCsC|id|djo2g}|i|D]}||i|q.~Sg}d}d}x|t|jo|||jo$|i|d}|d7}qan||djo&||||d!7}|d7}qan|||7}|d7}qaWt|o|i|ng}|D]}||i|q&~S(Ns\iRii(R[RRR Rd(RPRRR2RtrestbuildR((s/usr/share/hplip/base/vcard.pyRs*2



cCs|iS(sBest guess as to vcard version(R(RP((s/usr/share/hplip/base/vcard.pytversionscCs|iS(s-Best guess as to what program wrote the vcard(R(RP((s/usr/share/hplip/base/vcard.pyRscCs|i|S(N(R(RPtitem((s/usr/share/hplip/base/vcard.pyt__getitem__scCs
t|iS(N(treprR(RP((s/usr/share/hplip/base/vcard.pyt__repr__s(0RIRJRRQRR+RRRRt_field_LABELt_field_BDAYt_field_ROLEt
_field_CALURIt_field_CALADRURIt_field_FBURLt
_field_REVt
_field_KEYt
_field_SOURCEt_field_PHOTORRRRRRt_field_NAMERt_field_ORRRRR\RRRRt_field_CATEGORYRR
RRRR
RRR(((s/usr/share/hplip/base/vcard.pyRsZ	2		
												"			i			;			
!			cCs%ti|iddiddS(sTMy own routine to do qouted printable since the builtin one doesn't encode CR or NL!s
s=0Ds
s=0A(RetencodestringR(R((s/usr/share/hplip/base/vcard.pytmyqpencodestring"scCs(|iddiddiddS(sJReturn a vCard v2 string.  Any embedded commas or semi-colons are removed.s\RR>RT(R(R((s/usr/share/hplip/base/vcard.pytformat_stringv2'scCs(|iddiddiddS(sOReturn a vCard v3 string.  Embedded commas and semi-colons are backslash quoteds\RR>s\,RTs\;(R(R((s/usr/share/hplip/base/vcard.pytformat_stringv3,scCsti|iS(sReturn base 64 encoded string(RgRtrstrip(R((s/usr/share/hplip/base/vcard.pyt
format_binary4scCst|tdtgfS(sDetermine if v is a sequence such as passed to value in out_line.
    Note that a sequence of chars is not a sequence for our purposes.((RbR(R((s/usr/share/hplip/base/vcard.pyt_is_sequence:sRTc	Cs|djo
g}nt|}|tjot|ot}x8|D]0}||}t||jot}PqKqKW|o8|idg}|D]}|t|q~}n|i|}qI||}t||j}|ot|}|idqIn3t|pt	|dj	o||}ndi|g|d}|t
|ddt|7}|ddjpt	|dS(sReturns a single field correctly formatted and encoded (including trailing newline)

    @param name:  The field name
    @param attributes: A list of string attributes (eg "TYPE=intl,post" ).  Usually
                  empty except for TEL and ADR.  You can also pass in None.
    @param value: The field value.  You can also pass in a list of components which will be
                  joined with join_char such as the 6 components of N
    @param formatter:  The function that formats the value/components.  See the
                  various format_ functions.  They will automatically ensure that
                  ENCODING=foo attributes are added if appropriatesENCODING=QUOTED-PRINTABLERTRSiFis
N(R&tlistt_string_formattersR%R\R RXRdRR}t_line_reformatR (	Rt
attributesRt	formattert	join_chartqpRR2R((s/usr/share/hplip/base/vcard.pytout_line@s8




	
+
 iFicCs|djo
|}nt||jo|Sd}|djo||| 7}||}nxFt|o8|d|| 7}t||joPn||}qaW|S(sTakes line string and inserts newlines
    and spaces on following continuation lines
    so it all fits in width characters

    @param width: how many characters to fit it in
    @param firstlinewidth: if >0 then first line is this width.
         if equal to zero then first line is same width as rest.
         if <0 then first line will go immediately to continuation.
         iRs
 (R (RmtwidthtfirstlinewidthR((s/usr/share/hplip/base/vcard.pyR(rs




ic	Csd}x|| D]}|tddt||7}t|\}}}|tdd|||ddf|7}|idd}t|o|tdd||7}qqW|S(NRtFNtNR)R(R-R&R-R1R+R (	tvalsR*tlimitRRRR;R<tnn((s/usr/share/hplip/base/vcard.pyt	out_namess(
!Rc	CsUg}|D]}||idq~}t|ot|d||ddSdS(NtcategoryR+R>R(R+R R-R&(R2R*RR2Rtcats((s/usr/share/hplip/base/vcard.pytout_categoriess*
cCst||ddS(NRtCATEGORY(R8(R2R*((s/usr/share/hplip/base/vcard.pytout_categories_applesc	Csd}t}x|D]}|i|}|idd}t|o<|djo
d}n|i}|o|d}qn|o
d}nt|o%d|ddg|d	jg}nd}|t||||7}t}qW|S(
NRRRtworks,PREFRsTYPE=s	,INTERNETtEMAIL(RXR+R RaR&R-R\(	R2R*RtbpkeyRRCRtvalR((s/usr/share/hplip/base/vcard.pytout_eus(




%
cCst||ddS(NR<R(R?(R2R*((s/usr/share/hplip/base/vcard.pyt
out_emailsscCst||ddS(NtURLR(R?(R2R*((s/usr/share/hplip/base/vcard.pytout_urlssRRRtofficeRRRRRRRRRtnonec

CsFg}dgtdt|dD]}|dt|q%~}d}t}d}x|D]}|idd}	|	djo@|tddt|d	d|fgt|d|7}nv|t||ddt|d	d|fgt|d|7}|t||d
dt|	|7}|d7}t	}q^W|S(NRiiRiRRs	TYPE=%s%sRs,PREFRs.TELs.X-SPEEDDIAL(Rs,PREF(Rs,PREF(
RR RiRXR+R&R-t_out_tel_mappingR(R\(
R2R*R2R3tphonesRRCtidxRtsp((s/usr/share/hplip/base/vcard.pytout_tels$E
	'

c	
Csd}t}x|D]}|idd}t|o|tdd||7}n|iddjo
d}nd}d|d|}|td
|gg}dD]}||i|dq~|7}t}qW|S(NRtcompanytORGRRRRsTYPE=s,PREFtADRRRRRRR(Rs,PREF(Nsstreet2sstreetscitysstates
postalcodescountry(RXR+R R-R&R\(	R2R*RRCRtoRR2R((s/usr/share/hplip/base/vcard.pytout_adrs

C
c
Cs?dig}|| D] }|tdd|d|q~S(NRtNOTEtmemo(RR-R&(R2R*R3R2R((s/usr/share/hplip/base/vcard.pytout_notesc
Csd}t|dj}|o
d}nd}xO|D]G}|td|d|t|dfgt|d|7}t}q6W|S(NRisPREF,Rs	TYPE=%s%sRR(R R-RER(R\(R2R*Rt_prefRpR((s/usr/share/hplip/base/vcard.pytout_tel_scp6600s

cCsqd}xdttt|dD]G}||}|iddo$|tddg|d|7}q"q"W|S(NRiRR<s
TYPE=INTERNET(RtminR R+R&R-(R2R*Rt_idxR((s/usr/share/hplip/base/vcard.pytout_email_scp6600(s
cCs>|o3|diddotdd|dd|SdS(NiRRAR(R+R&R-(R2R*((s/usr/share/hplip/base/vcard.pytout_url_scp6604scCs|xu|D]m}|idddjo
d}nd}tdd|gg}dD]}||i|d
qQ~|SWd
S(NRRRRRLsTYPE=%sRRRRRRR(Nsstreet2sstreetscitysstates
postalcodescountry(R+R&R-(R2R*Rt_typeR2R((s/usr/share/hplip/base/vcard.pytout_adr_scp6600:s
*tnamest
wallpaperst	addressestnumbersRtemailsturlsRtflagstmemostserialscCstoW|dj	oJtg}|D]}|tjo||q"q"~djptn|d}ti}|itdddd|itdd|dd|djo
t}n3g}tD]}||jo||qq~}x|D]}||jo||jo}||}	d|	i	i
|	i	i jo!|	|||d|d}
n|	|||}
t|
o|i|
qqqW|itd	dd||iS(
Nit
_formatterRVRRRR3t_limitRW(
t	__debug__R&R t_field_orderR}t	cStringIORtwriteR-t	func_codetco_varnamestco_argcounttgetvalue(tentrytprofiletlimit_fieldsR2RtfmttiotfieldsRRR((s/usr/share/hplip/base/vcard.pytoutput_entryMs(J
 

2
!
RcRds2.1Rs3.0is
vCard v2.1tdescriptionRntvcard2s
vCard v3.0tvcard3tAppleRsFull vCard v3.0tfullv3sSanyo SCP-6600 (Katana)tscp6600(Ptbase.gReRgRRgRRRtencodings.utf_64t	encodingsRdtBOM64_BEtBOM64_LEtencodings.utf_32t	BOM_UTF32tBOM_UTF32_BEtBOM_UTF32_LEtencodings.utf_16t	BOM_UTF16tBOM_UTF16_BEtBOM_UTF16_LEtencodings.utf_8tBOM_UTF8tmaxR2RRR RRtcompileRR%R'R#R(R-R*R9R=RBR1RhRHRKR~RR R!R"R'R$R%R-R(R5R8R:R?R@RBRERIRNRQRSRVRWRYRfR&Rstprofile_vcard2tcopytprofile_vcard3t
profile_appletprofile_fulltprofile_scp6600Rtprofiles(((s/usr/share/hplip/base/vcard.pyt<module>#s
3		
						*Z					2				
						








Youez - 2016 - github.com/yon3zu
LinuXploit