Feature #556
Add a versioned record subclass
Status:
Closed
Priority:
Normal
Assignee:
Elmer de Looff
Category:
Model
Target version:
-
Description
For the Underdark customer and invoicing system, it's necessary to have a version-tracked table with customer information. This problem is easiest solved in the uWeb model itself.
Associated revisions
History
#1 Updated by Elmer de Looff about 13 years ago
Groundwork for the subclass has been committed, this involves creating more delegation between methods and stricter-purpose methods.
#2 Updated by Elmer de Looff about 13 years ago
- Status changed from In Progress to Resolved
- Assignee changed from Elmer de Looff to Jan Klopper
- % Done changed from 30 to 70
This has been added in r3220 for Underdark. The new VersionedRecord
class
cls._RECORD_KEY
- The table field that has groups versioned records togetherrecord_key
- property that returns the value of the_RECORD_KEY
field.- All Save() actions will create a new database entry
- Records that have a
record_key
defined will use that - Records without a
record_key
will have one assigned from the_NextRecordKey
method.
- Records that have a
FromIdentifier
- Gets the last version of aRecord
based on the record keyList
- Yields the latest version of all versioned database entriesListVersions
- Yields all versions for the given record key
Jan, if you could verify the functioning of this in the customer and invoicing portal you're working on, that'd be great.
#3 Updated by Jan Klopper about 13 years ago
- Status changed from Resolved to Closed
- Assignee changed from Jan Klopper to Elmer de Looff
- % Done changed from 70 to 100
Seems to work as intended in 'customer'
Added the VersionedRecord class, which supports versioning a database table. This resolves #556.