Added docstrings to BaseForm clasess
This commit is contained in:
parent
fced4d5756
commit
26dd863af8
6 changed files with 31 additions and 0 deletions
|
|
@ -3,8 +3,16 @@
|
|||
from paramecio2.libraries.db.coreforms import BaseForm
|
||||
|
||||
class CheckForm(BaseForm):
|
||||
"""Checkbox form, used normally with boolean fields"""
|
||||
|
||||
def __init__(self, name, value, real_value=1):
|
||||
"""
|
||||
Args:
|
||||
name (str): The html name for this form
|
||||
value (str): The default value of this html form.
|
||||
real_value (str): Variable used for construct the html form, by default 1.
|
||||
"""
|
||||
|
||||
super(CheckForm, self).__init__(name, value)
|
||||
|
||||
self.real_value=real_value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue