예제 #1
0
 def is_default(cls):
     return (    SimpleModel.is_default(cls)
             and cls.Attributes.gt == Decimal.Attributes.gt
             and cls.Attributes.ge == Decimal.Attributes.ge
             and cls.Attributes.lt == Decimal.Attributes.lt
             and cls.Attributes.le == Decimal.Attributes.le
         )
예제 #2
0
파일: primitive.py 프로젝트: rch/rpclib
 def is_default(cls):
     return (SimpleModel.is_default(cls)
             and cls.Attributes.gt == Decimal.Attributes.gt
             and cls.Attributes.ge == Decimal.Attributes.ge
             and cls.Attributes.lt == Decimal.Attributes.lt
             and cls.Attributes.le == Decimal.Attributes.le)
예제 #3
0
 def is_default(cls):
     return (    SimpleModel.is_default(cls)
             and cls.Attributes.min_len == Unicode.Attributes.min_len
             and cls.Attributes.max_len == Unicode.Attributes.max_len
             and cls.Attributes.pattern == Unicode.Attributes.pattern)
예제 #4
0
파일: primitive.py 프로젝트: rch/rpclib
 def is_default(cls):
     return (SimpleModel.is_default(cls)
             and cls.Attributes.min_len == String.Attributes.min_len
             and cls.Attributes.max_len == String.Attributes.max_len
             and cls.Attributes.pattern == String.Attributes.pattern)