crud methods have FORM **attributes, thanks Daniel
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-09-24 12:39:22) stable
|
Version 2.0.9 (2012-09-24 12:43:18) stable
|
||||||
|
|||||||
+5
-1
@@ -3343,6 +3343,7 @@ class Crud(object):
|
|||||||
message=DEFAULT,
|
message=DEFAULT,
|
||||||
deletable=DEFAULT,
|
deletable=DEFAULT,
|
||||||
formname=DEFAULT,
|
formname=DEFAULT,
|
||||||
|
**attributes
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
method: Crud.update(table, record, [next=DEFAULT
|
method: Crud.update(table, record, [next=DEFAULT
|
||||||
@@ -3395,7 +3396,8 @@ class Crud(object):
|
|||||||
deletable=deletable,
|
deletable=deletable,
|
||||||
upload=self.settings.download_url,
|
upload=self.settings.download_url,
|
||||||
formstyle=self.settings.formstyle,
|
formstyle=self.settings.formstyle,
|
||||||
separator=self.settings.label_separator
|
separator=self.settings.label_separator,
|
||||||
|
**attributes
|
||||||
)
|
)
|
||||||
self.accepted = False
|
self.accepted = False
|
||||||
self.deleted = False
|
self.deleted = False
|
||||||
@@ -3453,6 +3455,7 @@ class Crud(object):
|
|||||||
log=DEFAULT,
|
log=DEFAULT,
|
||||||
message=DEFAULT,
|
message=DEFAULT,
|
||||||
formname=DEFAULT,
|
formname=DEFAULT,
|
||||||
|
**attributes
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
method: Crud.create(table, [next=DEFAULT [, onvalidation=DEFAULT
|
method: Crud.create(table, [next=DEFAULT [, onvalidation=DEFAULT
|
||||||
@@ -3479,6 +3482,7 @@ class Crud(object):
|
|||||||
message=message,
|
message=message,
|
||||||
deletable=False,
|
deletable=False,
|
||||||
formname=formname,
|
formname=formname,
|
||||||
|
**attributes
|
||||||
)
|
)
|
||||||
|
|
||||||
def read(self, table, record):
|
def read(self, table, record):
|
||||||
|
|||||||
Reference in New Issue
Block a user