cute_mongo_forms.row.base¶
base.py : The Row class
- Copyright: 2017-2018 Sampsa Riikonen
- Authors : Sampsa Riikonen
- Date : 2017
- Version : 0.2
This file is part of the cute_mongo_forms library
License: LGPLv3+ (see the COPYING.LESSER file)
Functions
dictionaryCheck (definitions, dic) |
Checks that dictionary has certain values, according to definitions |
main () |
|
noCheck (obj) |
|
objectCheck (definitions, obj) |
Checks that object has certain attributes, according to definitions |
parameterInitCheck (definitions, parameters, obj) |
Checks that parameters are consistent with a definition |
test1 () |
|
test2 () |
|
typeCheck (obj, typ) |
Check type of obj, for example: typeCheck(x,int) |
Classes
Column (**kwargs) |
Mother class for columns. |
ColumnSpec (column_class, **kwargs) |
|
LineEditColumn (**kwargs) |
Derived from Column. |
Row (**kwargs) |
Defines a common columns structure for documents in a [document database] collection. |
RowWatcher (name, bases, clsdict) |
-
class
cute_mongo_forms.row.base.
Row
(**kwargs)[source]¶ Defines a common columns structure for documents in a [document database] collection. The column structure (i.e. “Row”) is defined in the child class header like this:
columns=[ ColumnSpec(LineEditColumn, key_name="firstname", label_name="First Name"), ... ]
This class knows how to create a Qt form, corresponding to the column structure
-
classmethod
genKeys
()[source]¶ This is called when you declare the class, i.e. at “Class MyNewRow(Row) …”. It updates the class variables “keys” and “keyset”
-
classmethod