...
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:
|
...
Class methods (aka "static")
Code Block |
---|
def get_max_occurrences(cls): |
...
def read_time_mode(self, ctx): |
...
def read_time(self, ctx): |
...
IDS storing / reading
db_entry
is used to provide explicitly context to methods. This parameter should be mandatory, but is optional to keep compatibility....
Code Block |
---|
def |
IDS
...
put(self, occurrence=0, db_entry=None): |
...
def get(self, occurrence=0, db_entry=None): |
...
def putSlice(self, occurrence=0, db_entry=None): |
...
def getSlice(self, time_requested, interpolation_method, occurrence=0, db_entry=None): |