extools.ui.custom_table¶
Custom Table UI
A simple UI for any custom table. Simply point this UI class at any table and it will render the fields for you.
If poplar_screenperms is installed, a permission code can be provided to control access to the screen or its fields.
-
class
extools.ui.custom_table.
CustomTableUI
(tablename, permcode)[source]¶ Bases:
object
CustomTableUI Class
Create a new custom UI for the given table and permissions code.
Parameters: - tablename (str) – Custom Table name
- permcode (str) – Permissions code
from extools.ui.custom_table import CustomTableUI TABLENAME = "MYTABLE" PERMISSION_CODE = "VIMYTA" def main(*args, **kwargs): CustomTableUI(TABLENAME, PERMISSION_CODE)