added method getitem() to the SessionMetaData class
This commit is contained in:
parent
36c82d1960
commit
ad0b45c8f3
1 changed files with 6 additions and 0 deletions
|
@ -1244,6 +1244,12 @@ class SessionMetaData(ConfigurableManager):
|
|||
def additem(self, key, value):
|
||||
self.configs[key] = value
|
||||
|
||||
def getitem(self, key):
|
||||
try:
|
||||
return self.configs[key]
|
||||
except KeyError:
|
||||
pass
|
||||
return None
|
||||
def items(self):
|
||||
return self.configs.iteritems()
|
||||
|
||||
|
|
Loading…
Reference in a new issue