Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Any other method is needed to ba added to db_entry class?

def delete_data(self, ids_name, occurrence=0):

IDS superclass

Parent class for all classes representing particular IDSes. 

...

def get_ids(cls, ids_name):

IDS class

Warning

To be backward compatible or not to be backward compatible, that is the question!

Backward compatibility, understood as possibility of using 'old' and 'new' approach at the same time:

(plus) Can be achieved without big effort, as content of IDS class will not change (a lot)

(plus) All 'old' scripts will work - no modifications needed →  users are happy (smile)

(minus) Currently all methods use context kept in IDS that was a reason of many problems. New API is designed to overcome this issue. Keeping compatibility means that methods still will be able to use context stored in IDS.

(minus) All unwanted, messy methods operating on context stored (setCtx, etc)  must be kept 



Class  methods (aka "static")

...

def read_time_mode(self, ctx):
def read_time(self, ctx):

IDS 

def getput(self, occurrence=0, db_entry=None):

def putget(self, occurrence=0, db_entry=None):

def putSlice(self, occurrence=0):

def putSlicegetSlice(self, time_requested, interpolation_method, occurrence=0):