/usr/lib/python2.6/site-packages/tablib/packages/odf3
NameSizeModeActions
anim.py18720644editdlrm
anim.pyc27240644editdlrm
attrconverters.py682100644editdlrm
attrconverters.pyc573550644editdlrm
chart.py26360644editdlrm
chart.pyc46240644editdlrm
config.py14200644editdlrm
config.pyc13910644editdlrm
dc.py22250644editdlrm
dc.pyc14640644editdlrm
dr3d.py14480644editdlrm
dr3d.pyc15240644editdlrm
draw.py55900644editdlrm
draw.pyc103430644editdlrm
easyliststyle.py37730644editdlrm
easyliststyle.pyc23120644editdlrm
element.py204730755editdlrm
element.pyc222500644editdlrm
elementtypes.py99330755editdlrm
elementtypes.pyc87290644editdlrm
form.py32700644editdlrm
form.pyc63900644editdlrm
grammar.py1933880644editdlrm
grammar.pyc1064580644editdlrm
load.py39630755editdlrm
load.pyc34090644editdlrm
manifest.py13890755editdlrm
manifest.pyc13440644editdlrm
math.py10680644editdlrm
math.pyc4590644editdlrm
meta.py21380644editdlrm
meta.pyc32430644editdlrm
namespaces.py39430644editdlrm
namespaces.pyc33140644editdlrm
number.py31370644editdlrm
number.pyc57430644editdlrm
odf2moinmoin.py181920644editdlrm
odf2moinmoin.pyc187740644editdlrm
odf2xhtml.py650580755editdlrm
odf2xhtml.pyc646200644editdlrm
odfmanifest.py35700755editdlrm
odfmanifest.pyc40720644editdlrm
office.py33460644editdlrm
office.pyc58950644editdlrm
opendocument.py259070644editdlrm
opendocument.pyc255300644editdlrm
presentation.py27160644editdlrm
presentation.pyc45550644editdlrm
script.py11060644editdlrm
script.pyc4840644editdlrm
style.py46720644editdlrm
style.pyc90620644editdlrm
svg.py17900644editdlrm
svg.pyc24060644editdlrm
table.py94080644editdlrm
table.pyc205930644editdlrm
teletype.py51810644editdlrm
teletype.pyc44600644editdlrm
text.py172150644editdlrm
text.pyc391260644editdlrm
thumbnail.py317360755editdlrm
thumbnail.pyc318640644editdlrm
userfield.py53940755editdlrm
userfield.pyc51590644editdlrm
xforms.py12330644editdlrm
xforms.pyc8730644editdlrm
__init__.py00644editdlrm
__init__.pyc1480644editdlrm
Edit: /usr/lib/python2.6/site-packages/tablib/packages/odf3/userfield.pyc (5159B)
Ñò }DVc@sÏdZddkZddkZddklZddklZddklZdZ hedfd6edfd 6edfd 6ed fd 6ed fd6edfd6edfd6Z de fd„ƒYZ dS(s:Class to show and manipulate user fields in odf documents.iÿÿÿÿN(t UserFieldDecl(tOFFICENS(tloadsutf-8tvaluetfloatt percentagetcurrencys date-valuetdates time-valuettimes boolean-valuetbooleans string-valuetstringt UserFieldscBsteZdZd Zd Zd d d„Zd„Zd„Zd„Z d d„Z d„Z d„Z d„Z d „ZRS( s&List, view and manipulate user fields.cCs||_||_d|_dS(s¯Constructor src ... source document name, file like object or None for stdin dest ... destination document name, file like object or None for stdout N(tsrc_filet dest_filetNonetdocument(tselftsrctdest((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pyt__init__5s  cCswt|itƒo.ti|iƒptd|iƒ‚qan!|idjoti|_nt |iƒ|_ dS(Ns%s is no odt file.( t isinstanceR tstrtzipfilet is_zipfilet TypeErrorRtsyststdinRR(R((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pytloaddoc@s cCs;|idjo|iidƒn|ii|iƒdS(Nt-(R RRtsave(R((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pytsavedocKscCs)g}|iƒD]}||dq~S(sZList (extract) all known user-fields. Returns list of user-field names. i(tlist_fields_and_values(Rt_[1]tx((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pyt list_fieldsSscCsÓ|iƒg}|iitƒ}xª|D]¢}|idƒ}|djo|idƒ}n|idƒ}|idƒ}|djp ||jo5|i|itƒ|itƒ|itƒfƒq)q)W|S(sÆList (extract) user-fields with type and value. field_names ... list of field names to show or None for all. Returns list of tuples (, , ). t valuetypeR t stringvalueRtnameN( RRtgetElementsByTypeRt getAttributeRtappendtencodet OUTENCODING(Rt field_namest found_fieldst all_fieldstft value_typeRt field_name((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pyR[s   cCs,g}|i|ƒD]}||dq~S(s–Extract the contents of given field names from the file. field_names ... list of field names Returns list of field values. i(R(RR+R R!((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pyt list_valuestscCs&|i|gƒ}|pdS|dS(syExtract the contents of this field from the file. Returns field value or None if field does not exist. iN(R1R(RR0tvalues((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pytget~scCs;|i|gƒ}|pdS|d\}}}||fS(s”Extract the type and contents of this field from the file. Returns tuple (, ) or None if field does not exist. iN(RR(RR0tfieldsR/R((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pytget_type_and_value‰s cCsª|iƒ|iitƒ}x}|D]u}|idƒ}||joS|idƒ}|i|ƒ}|djo|id|ƒq˜|id|ƒq#q#W|iƒdS(s¤Set the value of user fields. The field types will be the same. data ... dict, with field name as key, field value as value Returns None R%R#R R$RN(RRR&RR'R3t setAttributeR(RtdataR-R.R0R/R((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pytupdate•s   N(t__name__t __module__t__doc__RR R RRRR"RR1R3R5R8(((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pyR .s    ( R;RRtodf.textRtodf.namespacesRtodf.opendocumentRR*t VALUE_TYPEStobjectR (((s>/tmp/pip-build-lt8jXN/tablib/tablib/packages/odf3/userfield.pyts