示例#1
0
 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)
示例#2
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        'start_dt',
                        'end_dt',
                        is_deleted=False,
                        _text=text_to_repr(self.title, max_length=75))
示例#3
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        'revision_id',
                        'user_id',
                        internal=False,
                        _text=text_to_repr(self.text))
示例#4
0
文件: events.py 项目: stomanin/indico
 def __repr__(self):
     # TODO: add self.protection_repr once we use it
     return format_repr(self,
                        'id',
                        'start_dt',
                        'end_dt',
                        is_deleted=False,
                        _text=text_to_repr(self.title, max_length=75))
示例#5
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        _text=text_to_repr(self.html, html=True))
示例#6
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        'abstract_id',
                        content_type=None,
                        _text=text_to_repr(self.filename))
示例#7
0
文件: files.py 项目: indico/indico
 def __repr__(self):
     return format_repr(self, 'id', '_contribution_id', content_type=None, _text=text_to_repr(self.filename))
示例#8
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        'abstract_id',
                        is_deleted=False,
                        _text=text_to_repr(self.text))
示例#9
0
 def __repr__(self):
     return format_repr(self, 'id', _text=text_to_repr(self.title))
示例#10
0
 def __repr__(self):
     desc = text_to_repr(self.description)
     return f'<SurveyText({self.id}, {self.survey_id}): "{desc}")>'
示例#11
0
 def __repr__(self):
     desc = text_to_repr(self.description)
     return '<SurveyText({}, {}): "{}")>'.format(self.id, self.survey_id, desc)
示例#12
0
文件: tracks.py 项目: indico/indico
 def __repr__(self):
     return format_repr(self, 'id', _text=text_to_repr(self.title))
示例#13
0
文件: files.py 项目: indico/indico
 def __repr__(self):
     return format_repr(self, 'id', 'abstract_id', content_type=None, _text=text_to_repr(self.filename))
示例#14
0
 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)
示例#15
0
文件: categories.py 项目: fph/indico
 def __repr__(self):
     return format_repr(self, 'id', is_deleted=False, _text=text_to_repr(self.title, max_length=75))
示例#16
0
 def __repr__(self):
     render_mode = self.render_mode.name if self.render_mode is not None else None
     source = text_to_repr(self.source, html=True)
     return '<EventNoteRevision({}, {}, {}, {}): "{}">'.format(self.id, self.note_id, render_mode, self.created_dt,
                                                               source)
示例#17
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        'event_id',
                        is_deleted=False,
                        _text=text_to_repr(self.title))
示例#18
0
 def __repr__(self):
     render_mode = self.render_mode.name if self.render_mode is not None else None
     source = text_to_repr(self.source, html=True)
     return '<EventNoteRevision({}, {}, {}, {}): "{}">'.format(
         self.id, self.note_id, render_mode, self.created_dt, source)
示例#19
0
文件: events.py 项目: indico/indico
 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))
示例#20
0
 def __repr__(self):
     return format_repr(self, 'id', 'revision_id', is_deleted=False, _text=text_to_repr(self.text))
示例#21
0
文件: comments.py 项目: indico/indico
 def __repr__(self):
     return format_repr(self, 'id', 'abstract_id', is_deleted=False, _text=text_to_repr(self.text))
示例#22
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        'revision_id',
                        is_deleted=False,
                        _text=text_to_repr(self.text))
示例#23
0
文件: events.py 项目: florv/indico
 def __repr__(self):
     # TODO: add self.protection_repr once we use it
     return format_repr(self, 'id', 'start_dt', 'end_dt', is_deleted=False,
                        _text=text_to_repr(self.title, max_length=75))
示例#24
0
 def __repr__(self):
     return format_repr(self,
                        'id',
                        '_contribution_id',
                        content_type=None,
                        _text=text_to_repr(self.filename))
示例#25
0
 def __repr__(self):
     desc = text_to_repr(self.description)
     return '<SurveyText({}, {}): "{}")>'.format(self.id, self.survey_id,
                                                 desc)
示例#26
0
文件: menu.py 项目: hennogous/indico
 def __repr__(self):
     return format_repr(self, 'id', _text=text_to_repr(self.html, html=True))
示例#27
0
def test_text_to_repr(input, html, max_length, output):
    assert text_to_repr(input, html=html, max_length=max_length) == output
示例#28
0
def test_text_to_repr(input, html, max_length, output):
    assert text_to_repr(input, html=html, max_length=max_length) == output
示例#29
0
 def __repr__(self):
     return format_repr(self, 'id', 'event_id', is_deleted=False, _text=text_to_repr(self.title))