Package gluon :: Module dal :: Class Row
[hide private]
[frames] | no frames]

Class Row

source code

object --+
         |
        Row

a dictionary that lets you do d['a'] as well as d.a this is only used to store a Row

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, k) source code
 
__setitem__(self, key, value) source code
 
__delitem__(...)
x.__delattr__('name') <==> del x.name
source code
 
__call__(self, k) source code
 
get(self, key, default=None) source code
 
__contains__(self, key) source code
 
has_key(self, key) source code
 
__nonzero__(self) source code
 
update(self, *args, **kwargs) source code
 
keys(self) source code
 
items(self) source code
 
values(self) source code
 
__iter__(self) source code
 
iteritems(self) source code
 
__repr__(self)
str(x)
source code
 
__str__(self)
str(x)
source code
 
__int__(self) source code
 
__long__(self) source code
 
__getattr__(self, k) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__copy__(self) source code
 
as_dict(self, datetime_to_str=False, custom_types=None) source code
 
as_xml(self, row_name='row', colnames=None, indent=' ') source code
 
as_json(self, mode='object', default=None, colnames=None, serialize=True, **kwargs)
serializes the row to a JSON object kwargs are passed to .as_dict method only "object" mode supported
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

as_json(self, mode='object', default=None, colnames=None, serialize=True, **kwargs)

source code 

serializes the row to a JSON object kwargs are passed to .as_dict method only "object" mode supported

serialize = False used by Rows.as_json TODO: return array mode with query column order

mode and colnames are not implemented