Added docstrings to BaseForm clasess
This commit is contained in:
parent
fced4d5756
commit
26dd863af8
6 changed files with 31 additions and 0 deletions
|
|
@ -6,8 +6,15 @@ from paramecio2.libraries.mtemplates import standard_t
|
|||
import json
|
||||
|
||||
class I18nForm(BaseForm):
|
||||
"""Form for data with multiple languages."""
|
||||
|
||||
def __init__(self, name, value, form):
|
||||
"""
|
||||
Args:
|
||||
name (str): The html name for this form
|
||||
value (str): The default value of this html form.
|
||||
form (BaseForm): The form used for generate the multiple languade form. Example if you use a TextForm, a TextForm for every language will be showed.
|
||||
"""
|
||||
|
||||
super().__init__(name, value)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue