/usr/lib/python2.6/site-packages/tablib/packages/xlrd3
Edit: /usr/lib/python2.6/site-packages/tablib/packages/xlrd3/xfcell.pyc (10739B)
Ńņ
}DVc @ sR d Z d d k Z d d k l Z d d k l Z l Z d e f d YZ d S( s±
The XFCell() object contains the data for one cell.
WARNING: You don't call this class yourself. You access Cell objects
via methods of the Sheet object(s) that you found in the Book object that
was returned when you called xlrd.open_workbook("myfile.xls").
Cell objects have four attributes: `ctype` is an int, `value` (which depends
on `ctype`), `xf_index` and `sheet`, a reference to the containing sheet. If
**formatting_info** is not enabled when the workbook is opened, xf_index will
be **None**.
The following table describes the types of cells and how their values
are represented in Python.
=============== ===== ============ ==========================================
Type symbol Const Python value Note
=============== ===== ============ ==========================================
XL_CELL_EMPTY 0 ""
XL_CELL_TEXT 1 str
XL_CELL_NUMBER 2 float
XL_CELL_DATE 3 float
XL_CELL_BOOLEAN 4 int 1 means TRUE, 0 means FALSE
XL_CELL_ERROR 5 int representing internal Excel codes; for a
text representation, refer to the supplied
dictionary error_text_from_code
XL_CELL_BLANK 6 "" this type will appear only when
open_workbook(..., formatting_info=True)
is used.
=============== ===== ============ ==========================================
i’’’’Ni ( t xldate_as_tuple( t XL_CELL_DATEt
BaseObjectt XFCellc B s e Z d Z d d d d g Z d# d# d Z e d Z e d Z e d Z e d Z
e d
Z e d Z d Z
d
Z d Z d Z e d Z d Z d Z d Z e d Z e d Z d Z e d Z e d Z d Z e d Z e d Z d Z d Z e d Z e d Z e d Z! e d! Z" e d" Z# RS($ s[ Extended Cell() class with convenient methods for easy access of cell
properties.
t sheett ctypet valuet xfc C sL | | _ | | _ | | _ | d j o | i i | | _ n
d | _ d S( N( R R R t Nonet bookt xf_listR ( t selfR R t xf_indexR ( ( s<