Пример #1
0
 def __le__(self, other):
     return AttributePath(self).__le__(other)
Пример #2
0
 def contains(self, item):
     return AttributePath(self).contains(item)
Пример #3
0
 def __ne__(self, other):
     if other is None or isinstance(other, Attribute):  # handle object identity comparison
         return self is not other
     return AttributePath(self).__ne__(other)
Пример #4
0
 def is_type(self):
     # What makes sense here? Are we using this to check if deserialization will be successful?
     return AttributePath(self).is_type(ATTR_TYPE_MAP[self.attr_type])
Пример #5
0
 def startswith(self, prefix):
     return AttributePath(self).startswith(prefix)
Пример #6
0
 def does_not_exist(self):
     return AttributePath(self).does_not_exist()
Пример #7
0
 def exists(self):
     return AttributePath(self).exists()
Пример #8
0
 def is_in(self, *values):
     return AttributePath(self).is_in(*values)
Пример #9
0
 def between(self, lower, upper):
     return AttributePath(self).between(lower, upper)
Пример #10
0
 def __getitem__(self, idx):
     return AttributePath(self).__getitem__(idx)