Docs for SQLFORM.accepts
Description
<type 'instancemethod'>
|
Attributes
| SQLFORM.accepts.__call__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__call__(...) <==> x(...) |
| SQLFORM.accepts.__class__ |
<type 'type'> extends (<type 'object'>,)
belongs to class <type 'type'>
instancemethod(function, instance, class) Create an instance method object. |
| SQLFORM.accepts.__cmp__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y) |
| SQLFORM.accepts.__delattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name |
| SQLFORM.accepts.__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.accepts.__get__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
descr.__get__(obj[, type]) -> value |
| SQLFORM.accepts.__getattribute__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name |
| SQLFORM.accepts.__hash__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x) |
| SQLFORM.accepts.__init__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
| SQLFORM.accepts.__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.accepts.__reduce__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
| SQLFORM.accepts.__reduce_ex__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
| SQLFORM.accepts.__repr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x) |
| SQLFORM.accepts.__setattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value |
| SQLFORM.accepts.__str__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x) |
| SQLFORM.accepts.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 generates an insert form:: SQLFORM(db.table) generates an update form:: record=db.table[some_id] SQLFORM(db.table, record) generates an update with a delete button:: SQLFORM(db.table, record, deletable=True) if record is an int:: record=db.table[record] optional arguments: :param fields: a list of fields that should be placed in the form, default is all. :param labels: a dictionary with labels for each field, keys are the field names. :param col3: a dictionary with content for an optional third column (right of each field). keys are field names. :param linkto: the URL of a controller/function to access referencedby records see controller appadmin.py for examples :param 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.accepts.im_func |
<type 'function'>
belongs to class <type 'function'>
similar FORM.accepts but also does insert, update or delete in DAL. but if detect_record_change == True than: form.record_changed = False (record is properly validated/submitted) form.record_changed = True (record cannot be submitted because changed) elseif detect_record_change == False than: form.record_changed = None |
| SQLFORM.accepts.im_self |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|