mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 04:34:21 +08:00
Adds a contains method to SIDData to support in statement.
This commit is contained in:
@@ -102,5 +102,8 @@ class SIDData(object):
|
||||
def __len__(self):
|
||||
return len(self.__dict__)
|
||||
|
||||
def __contains__(self, name):
|
||||
return name in self.__dict__
|
||||
|
||||
def __repr__(self):
|
||||
return "SIDData({0})".format(self.__dict__)
|
||||
|
||||
Reference in New Issue
Block a user