def __repr__(self): return format_repr(self, 'id', 'type', 'start_dt', 'end_dt', _repr=self.object)
def __repr__(self): return format_repr(self, 'id', 'event_id', no_score=False, is_deleted=False, _text=self.text)
def __repr__(self): return format_repr(self, 'id', 'email', is_deleted=False, is_pending=False, _text=self.full_name)
def __repr__(self): return format_repr(self, 'id', 'type', 'revision_id', 'user_id', proposed_action=None)
def __repr__(self): return format_repr(self, 'id', 'person_id', 'abstract_id', is_speaker=False, author_type=None, _text=self.full_name)
def __repr__(self): return format_repr(self, 'id', 'registration_form_id', is_enabled=True, is_deleted=False, is_manager_only=False, _text=self.title)
def __repr__(self): return format_repr(self, 'id', 'event_id', 'principal', read_access=False, full_access=False, roles=[])
def __repr__(self): full_name = '{} {}'.format(self.first_name, self.last_name) return format_repr(self, 'id', 'registration_form_id', 'email', 'state', _text=full_name)
def test_format_repr(args, kwargs, output): class Foo(object): def __init__(self, **kwargs): self.__dict__.update(kwargs) class MyEnum(Enum): foo = 'bar' obj = Foo(id=1, enum=MyEnum.foo, hello='world', dct={'a': 'b'}, flag1=True, flag0=False) assert format_repr(obj, *args, **kwargs) == output
def __repr__(self): return format_repr(self, 'id', is_deleted=False, _text=self.title)
def __repr__(self): return format_repr(self, 'id', 'event_id', 'reference_type_id', _text=self.value)
def __repr__(self): return format_repr(self, 'id', 'event_id', is_deleted=False, _text=text_to_repr(self.title))
def __repr__(self): return format_repr(self, 'id', _text=self.title)
def __repr__(self): return format_repr(self, 'id', 'start_dt', 'end_dt', is_deleted=False, is_locked=False, _text=text_to_repr(self.title, max_length=75))
def __repr__(self): return format_repr(self, 'id', 'user_id', 'event_id', _text=', '.join(self.competences))
def __repr__(self): return format_repr(self, 'id', is_untrusted=False, _text=self.full_name)
def __repr__(self): # in case of a new object we might not have the default status set status = TransactionStatus(self.status).name if self.status is not None else None return format_repr(self, 'id', 'registration_id', 'provider', 'amount', 'currency', 'timestamp', status=status)
def __repr__(self): text = text_to_repr(self.data) if isinstance(self.data, unicode) else self.data return format_repr(self, 'contribution_id', 'contribution_field_id', _text=text)
def __repr__(self): return format_repr(self, 'id', is_deleted=False, _text=text_to_repr(self.title, max_length=75))
def __repr__(self): return format_repr(self, 'id', '_contribution_id', content_type=None, _text=text_to_repr(self.filename))
def __repr__(self): return format_repr(self, 'id', 'event_id', 'category_id', _text=self.title)
def __repr__(self): return format_repr(self, 'id', 'abstract_id', is_deleted=False, _text=text_to_repr(self.text))
def __repr__(self): return format_repr(self, 'id', 'url_template', _text=self.name)
def __repr__(self): return format_repr(self, 'id', 'person_id', 'event_id', _text=self.full_name)
def __repr__(self): return format_repr(self, 'id', 'abstract_id', content_type=None, _text=text_to_repr(self.filename))
def __repr__(self): return format_repr(self, 'id', 'subcontribution_id', 'reference_type_id', _text=self.value)
def __repr__(self): return format_repr(self, 'id', 'field_type', is_required=False, is_active=True, _text=self.title)
def __repr__(self): return format_repr(self, 'legacy_page_id', 'page_id')
def __repr__(self): return format_repr(self, 'event_id', 'legacy_session_id', 'legacy_session_block_id', 'session_block_id')
def __repr__(self): return format_repr(self, 'email')