Last page update: November 23, 2011
Classes:
- GnrDboPackage
- GnrDboTable
- GnrHTable
- TableBase
- Table_counter
- Table_recordtag
- Table_recordtag_link
- Table_userobject
Complete reference:
Base class for packages
Generate a new number from the specified counter and return it.
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
Get a preference for the current package. Return the value of the specified preference, or dflt if it is missing
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
Set a preference for the current package.
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
A hierarchical table. More information on the HTable section
TODO
| Parameters: | record_data – TODO |
|---|
| Parameters: | tbl – the table object |
|---|
Create the necessary columns in order to use the HTableHandler component.
In particular it adds:
You can redefine the first three columns in your table; if you don’t redefine them, they are created with the following features:
tbl.column('code', name_long='!!Code', base_view=True)
tbl.column('description', name_long='!!Description', base_view=True)
tbl.column('child_code', name_long='!!Child code', validate_notnull=True,
validate_notnull_error='!!Required', base_view=True,
validate_regex='!\.', validate_regex_error='!!Invalid code: "." char is not allowed')
TODO
| Parameters: | record_data – TODO |
|---|
TODO
| Parameters: |
|
|---|
TODO
TODO
TODO
| Parameters: | tblname – a string composed by the package name and the database table name separated by a dot (.) |
|---|
TODO
| Parameters: |
|---|
Add some useful columns for tables management (first of all, the id column)
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
This method is triggered during the insertion (or a change) of a record. It returns the insertion date as a value of the dict with the key equal to record[fldname], where fldname is the name of the field inserted in the record.
| Parameters: |
|
|---|
This table is automatically created for every package that inherit from GnrDboPackage.
Configure the database, creating the database table and some columns
| Parameters: | pkg – the package object |
|---|
Compose a counter code key and return it
| Parameters: |
|
|---|
Create a counter. The counter is built through a Bag
| Parameters: |
|
|---|
Create the output for the code and return it
| Parameters: |
|
|---|
Generate a new number from the specified counter and return it as a string
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
Return a tuple (year, month, date) of strings from a date.
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
TODO
TODO
Configure the database, creating the database table and some columns
| Parameters: | pkg – the package object |
|---|
TODO
| Parameters: |
|
|---|
TODO
| Parameters: | record – TODO |
|---|
TODO
| Parameters: | record_data – TODO |
|---|
TODO
| Parameters: |
|
|---|
TODO
TODO
TODO
| Parameters: |
|
|---|
Configure the database, creating the database table and some columns
| Parameters: | pkg – the package object |
|---|
TODO
| Parameters: |
|
|---|
TODO
| Parameters: | table – the database table name, in the form packageName.tableName (packageName is the name of the package to which the table belongs to) |
|---|
TODO
| Parameters: |
|
|---|
TODO
| Parameters: |
|
|---|
TODO
TODO
| Parameters: | table – the database table name |
|---|
TODO
TODO
Configure the database, creating the database table and some columns
| Parameters: | pkg – the package object |
|---|
TODO
| Parameters: |
|---|
TODO
| Parameters: |
|
|---|
TODO
| Parameters: |
|---|
TODO