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

Class Field

source code

object --+    
         |    
Expression --+
             |
            Field

Nested Classes [hide private]
  Virtual
  Method
  Lazy
an instance of this class represents a database field
Instance Methods [hide private]
 
__init__(self, fieldname, type='string', length=None, default=<function <lambda> at 0x4068140>, required=False, requires=<function <lambda> at 0x4068140>, ondelete='CASCADE', notnull=False, unique=False, uploadfield=True, widget=None, label=None, comment=None, writable=True, readable=True, update=None, authorize=None, autodelete=False, represent=None, uploadfolder=None, uploadseparate=False, uploadfs=None, compute=None, custom_store=None, custom_retrieve=None, custom_retrieve_file_properties=None, custom_delete=None, filter_in=None, filter_out=None, custom_qualifier=None, map_none=None, rname=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_attributes(self, *args, **attributes) source code
 
clone(self, point_self_references_to=False, **args) source code
 
store(self, file, filename=None, path=None) source code
 
retrieve(self, name, path=None, nameonly=False)
if nameonly==True return (filename, fullfilename) instead of (filename, stream)
source code
 
retrieve_file_properties(self, name, path=None) source code
 
formatter(self, value) source code
 
validate(self, value) source code
 
count(self, distinct=None) source code
 
as_dict(self, flat=False, sanitize=True) source code
 
as_xml(self, sanitize=True) source code
 
as_json(self, sanitize=True) source code
 
as_yaml(self, sanitize=True) source code
 
__nonzero__(self) source code
 
__str__(self)
str(x)
source code

Inherited from Expression: __add__, __div__, __eq__, __ge__, __getitem__, __getslice__, __gt__, __invert__, __le__, __lt__, __mod__, __mul__, __ne__, __or__, __sub__, abs, avg, belongs, coalesce, coalesce_zero, contains, day, endswith, epoch, hour, len, like, lower, max, min, minutes, month, regexp, replace, seconds, st_asgeojson, st_astext, st_contains, st_distance, st_dwithin, st_equals, st_intersects, st_overlaps, st_simplify, st_touches, st_within, st_x, st_y, startswith, sum, upper, with_alias, year

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

Properties [hide private]
  sqlsafe
  sqlsafe_name

Inherited from object: __class__

Method Details [hide private]

__init__(self, fieldname, type='string', length=None, default=<function <lambda> at 0x4068140>, required=False, requires=<function <lambda> at 0x4068140>, ondelete='CASCADE', notnull=False, unique=False, uploadfield=True, widget=None, label=None, comment=None, writable=True, readable=True, update=None, authorize=None, autodelete=False, represent=None, uploadfolder=None, uploadseparate=False, uploadfs=None, compute=None, custom_store=None, custom_retrieve=None, custom_retrieve_file_properties=None, custom_delete=None, filter_in=None, filter_out=None, custom_qualifier=None, map_none=None, rname=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

sqlsafe

Get Method:
unreachable.sqlsafe(self)

sqlsafe_name

Get Method:
unreachable.sqlsafe_name(self)