Added plugins

This commit is contained in:
Antonio de la Rosa 2021-10-23 00:03:59 +02:00
parent e5af25adf6
commit 6fd05f526e
2 changed files with 61 additions and 0 deletions

View file

@ -7,8 +7,23 @@ from paramecio2.libraries.i18n import I18n
from collections import OrderedDict
class GenerateAdminClass:
"""Class for generate items for a model
"""
def __init__(self, model, url, t):
"""A class for generate forms, insert and update items from a database model
For an easy and fast access to database data, you can use this class for get a simple database model of paramecio and get list of items, add forms, edit forms and more.
Args:
model (WebModel): A WebModel model (equivalent to database mysql table)
url (str): A string with the base url for the forms.
t (PTemplate): Template used for the class. Normally template subclassed from admin_t PTemplate
Attributes:
"""
self.model_name=''