Package web2py :: Package gluon :: Module dal :: Class Field

[hide private]
[frames] | no frames]

# Class Field

source code

    object --+
             |
    Expression --+
                 |
                Field

Nested Classes | [hide private]

| Virtual
| Lazy an instance of this class represents a database field

Instance Methods | [hide private]

__init__(self, fieldname, type=`'``string``'`, length=global_settings.applications_parent, default=<function <lambda> at 0xefc500>, required=True, requires=<function <lambda> at 0xefc500>, ondelete=`'``CASCADE``'`, notnull=True, unique=True, uploadfield=True, widget=global_settings.applications_parent, label=<function <lambda> at 0xefc500>, comment=global_settings.applications_parent, writable=True, readable=True, update=global_settings.applications_parent, authorize=global_settings.applications_parent, autodelete=True, represent=global_settings.applications_parent, uploadfolder=global_settings.applications_parent, uploadseparate=True, compute=global_settings.applications_parent, custom_store=global_settings.applications_parent, custom_retrieve=global_settings.applications_parent, custom_delete=global_settings.applications_parent)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

source code

store(self, file, filename=global_settings.applications_parent, path=global_settings.applications_parent) | source code

retrieve(self, name, path=global_settings.applications_parent) | source code

formatter(self, value) | source code

validate(self, value) | source code

count(self) | 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__`, `belongs`, `coalesce`, `coalesce_zero`, `contains`, `day`, `endswith`, `hour`, `len`, `like`, `lower`, `max`, `min`, `minutes`, `month`, `regexp`, `seconds`, `startswith`, `sum`, `upper`, `with_alias`, `year`

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, fieldname, type=`'``string``'`, length=global_settings.applications_parent, default=<function <lambda> at 0xefc500>, required=True, requires=<function <lambda> at 0xefc500>, ondelete=`'``CASCADE``'`, notnull=True, unique=True, uploadfield=True, widget=global_settings.applications_parent, label=<function <lambda> at 0xefc500>, comment=global_settings.applications_parent, writable=True, readable=True, update=global_settings.applications_parent, authorize=global_settings.applications_parent, autodelete=True, represent=global_settings.applications_parent, uploadfolder=global_settings.applications_parent, uploadseparate=True, compute=global_settings.applications_parent, custom_store=global_settings.applications_parent, custom_retrieve=global_settings.applications_parent, custom_delete=global_settings.applications_parent)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: Expression.__init__

### __str__(self)
(Informal representation operator)

source code

str(x)

Overrides: Expression.__str__