Docs for SQLFORM.__init__

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

Description


<type 'instancemethod'>


1.
2.
3.
4.
5.
6.
7.

SQLFORM(db.table,
record=None,
fields=['name'],
labels={'name':'Your name'},
linkto=ULR(r=request,f='table/db/')


Attributes


SQLFORM.__init__.__call__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__call__(...) <==> x(...)

SQLFORM.__init__.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
instancemethod(function, instance, class) Create an instance method object.

SQLFORM.__init__.__cmp__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y)

SQLFORM.__init__.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

SQLFORM.__init__.__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.

SQLFORM.__init__.__get__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
descr.__get__(obj[, type]) -> value

SQLFORM.__init__.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

SQLFORM.__init__.__hash__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x)

SQLFORM.__init__.__init__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

SQLFORM.__init__.__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

SQLFORM.__init__.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

SQLFORM.__init__.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

SQLFORM.__init__.__repr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x)

SQLFORM.__init__.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

SQLFORM.__init__.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

SQLFORM.__init__.im_class <type 'type'> extends (<class 'gluon.html.FORM'>,) belongs to class <type 'type'>
SQLFORM is used to map a table (and a current record) into an HTML form given a SQLTable stored in db.table SQLFORM(db.table) generates an insert form record=db(db.table.id==some_id).select()[0] SQLFORM(db.table,record) generates an update form SQLFORM(db.table,record,deletable=True) generates an update with a delete button optional arguments: fields: a list of fields that should be placed in the form, default is all. labels: a dictionary with labels for each field. keys are field names. col3 : a dictionary with content for an optional third column (right of each field). keys are field names. linkto: the URL of a controller/function to access referencedby records see controller appadmin.py for examples upload: the URL of a controller/function to download an uploaded file see controller appadmin.py for examples any named optional attribute is passed to the <form> tag for example _class, _id, _style, _action,_method, etc.

SQLFORM.__init__.im_func <type 'function'> belongs to class <type 'function'>
SQLFORM(db.table, record=None, fields=['name'], labels={'name':'Your name'}, linkto=ULR(r=request,f='table/db/')

SQLFORM.__init__.im_self <type 'NoneType'> belongs to class <type 'NoneType'>