コード例 #1
0
ファイル: fields.py プロジェクト: makkus/booby
    def __repr__(self):
        options = dict(self.options)
        options['validators'] = self.validators

        cls = type(self)

        return '<{}.{}({})>'.format(cls.__module__, cls.__name__,
                                    _utils.repr_options(options))
コード例 #2
0
ファイル: fields.py プロジェクト: jaimegildesagredo/booby
    def __repr__(self):
        options = dict(self.options)
        options['validators'] = self.validators

        cls = type(self)

        return '<{}.{}({})>'.format(cls.__module__, cls.__name__,
                                    _utils.repr_options(options))
コード例 #3
0
    def __repr__(self):
        cls = type(self)

        return '<{}.{}({})>'.format(cls.__module__, cls.__name__,
                                    _utils.repr_options(dict(self)))
コード例 #4
0
 def __repr__(cls):
     return '<{}.{}({})>'.format(cls.__module__, cls.__name__,
                                 _utils.repr_options(cls._fields))
コード例 #5
0
ファイル: models.py プロジェクト: cr0hn/booby
 def __repr__(cls):
     return '<{}.{}({})>'.format(cls.__module__, cls.__name__,
                                 _utils.repr_options(cls._fields))
コード例 #6
0
ファイル: models.py プロジェクト: cr0hn/booby
    def __repr__(self):
        cls = type(self)

        return '<{}.{}({})>'.format(cls.__module__, cls.__name__,
                                    _utils.repr_options(dict(self)))