Docs for SQLField.max.im_class

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type 'type'> extends (<class 'gluon.sql.SQLXorable'>,)


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.

an instance of this class represents a database field

example:

a=SQLField(name,'string',length=32,required=False,default=None,requires=IS_NOT_EMPTY(),notnull=False,unique=False,uploadfield=None,widget=None,label=None)

to be used as argument of SQLDB.define_table

allowed field types:
string, boolean, integer, double, text, blob,
date, time, datetime, upload, password

strings must have a length or 32 by default.
fields should have a default or they will be required in SQLFORMs
the requires argument are used to validate the field input in SQLFORMs



Attributes


SQLField.max.im_class.__add__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
type(object) -> the object's type type(name, bases, dict) -> a new type

SQLField.max.im_class.__delattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__delattr__('name') <==> del x.name

SQLField.max.im_class.__dict__ <type 'dictproxy'> belongs to class <type 'dictproxy'>

SQLField.max.im_class.__div__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__doc__ <type 'str'> belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

SQLField.max.im_class.__eq__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__ge__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__getattribute__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__getattribute__('name') <==> x.name

SQLField.max.im_class.__gt__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__hash__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__hash__() <==> hash(x)

SQLField.max.im_class.__init__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__invert__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__le__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__lt__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__module__ <type 'str'> belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

SQLField.max.im_class.__mul__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__ne__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

SQLField.max.im_class.__or__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__reduce__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

SQLField.max.im_class.__reduce_ex__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

SQLField.max.im_class.__repr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__repr__() <==> repr(x)

SQLField.max.im_class.__setattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__setattr__('name', value) <==> x.name = value

SQLField.max.im_class.__str__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__sub__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.__weakref__ <type 'getset_descriptor'> belongs to class <type 'getset_descriptor'>
list of weak references to the object (if defined)

SQLField.max.im_class.belongs <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.count <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.day <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.formatter <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.hour <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.like <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.lower <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.max <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.min <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.minutes <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.month <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.seconds <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.sum <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.upper <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLField.max.im_class.year <type 'instancemethod'> belongs to class <type 'instancemethod'>