Ignore:
Timestamp:
27 Jun 2010, 08:36:43 (15 years ago)
Author:
uli
Message:

Add accessor methods for JAMB tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/jambtables.py

    r5240 r5242  
    8181            yield data_dict
    8282
     83    def keys(self):
     84        """Get iterator over all registration numbers stored in table.
     85        """
     86        for item in self:
     87            yield item['reg_no']
     88
     89    def items(self):
     90        """Get tuples of registration number and datasets for each entry in
     91           data table.
     92        """
     93        for item in self:
     94            yield (item['reg_no'], item)
     95           
    8396    def clear(self):
    8497        """Remove all existing entries.
Note: See TracChangeset for help on using the changeset viewer.