Changeset 5246


Ignore:
Timestamp:
27 Jun 2010, 09:02:53 (15 years ago)
Author:
uli
Message:

Remove unused add() method and explain better, what we're doing
when filtering JAMB data.

File:
1 edited

Legend:

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

    r5245 r5246  
    3838def filter_data(datadict):
    3939    """Filter items whose key contains 'ignore'
     40
     41    The function will remove all fields whose name start with
     42    ``ignore``. All data will be convertetd to unicode except
     43    ``data_of_birth``, which is turned into a `dateteime` object.
    4044    """
    4145    keys = datadict.keys()
     
    118122        self._copyDataFile(filepath)
    119123
    120     #def add(self, reg_no, data_dict):
    121     #    item = filter_data(data_dict)
    122     #    item.__name__ = reg_no
    123     #    item.__parent__ = self
    124     #    #if send_events:
    125     #    #    objectEventNotify(ObjectWillBeAddedEvent(item, self, reg_no))
    126     #    #self._data[reg_no] = item
    127     #    self._data_len += 1
    128     #    #if senf_event:
    129     #    #    objectEventNotify(ObjectAddedEvent(item, self, reg_no))
    130 
    131124    def _copyDataFile(self, path):
    132125        """Copy file in path to the JAMBData storage.
Note: See TracChangeset for help on using the changeset viewer.