Пример #1
0
 def __init__(self, *args, **kwargs):
     self.author_types = AuthorType.serialize()
     self.allow_authors = kwargs.pop('allow_authors', kwargs['_form'].event.type == 'conference')
     self.allow_submitters = kwargs.pop('allow_submitters', True)
     self.show_empty_coauthors = kwargs.pop('show_empty_coauthors', True)
     self.default_author_type = kwargs.pop('default_author_type', AuthorType.none)
     self.default_is_submitter = kwargs.pop('default_is_submitter', True)
     self.default_is_speaker = True
     super(ContributionPersonLinkListField, self).__init__(*args, **kwargs)
Пример #2
0
 def __init__(self, *args, **kwargs):
     self.author_types = AuthorType.serialize()
     self.allow_authors = kwargs.pop('allow_authors', kwargs['_form'].event.type == 'conference')
     self.allow_submitters = kwargs.pop('allow_submitters', True)
     self.show_empty_coauthors = kwargs.pop('show_empty_coauthors', True)
     self.default_author_type = kwargs.pop('default_author_type', AuthorType.none)
     self.default_is_submitter = kwargs.pop('default_is_submitter', True)
     self.default_is_speaker = True
     super(ContributionPersonLinkListField, self).__init__(*args, **kwargs)
Пример #3
0
 def __init__(self, *args, **kwargs):
     self.author_types = AuthorType.serialize()
     self.allow_authors = kwargs.pop("allow_authors", kwargs["_form"].event.type == "conference")
     self.allow_submitters = kwargs.pop("allow_submitters", True)
     self.show_empty_coauthors = kwargs.pop("show_empty_coauthors", True)
     self.default_author_type = kwargs.pop("default_author_type", AuthorType.none)
     self.default_is_submitter = kwargs.pop("default_is_submitter", True)
     self.default_is_speaker = True
     super(ContributionPersonLinkListField, self).__init__(*args, **kwargs)
Пример #4
0
 def __init__(self, *args, **kwargs):
     self.author_types = AuthorType.serialize()
     self.allow_authors = True
     self.allow_submitters = False
     self.show_empty_coauthors = kwargs.pop('show_empty_coauthors', True)
     self.default_author_type = kwargs.pop('default_author_type', AuthorType.none)
     self.default_is_submitter = False
     self.default_is_speaker = False
     self.require_primary_author = True
     super(AbstractPersonLinkListField, self).__init__(*args, **kwargs)
Пример #5
0
 def __init__(self, *args, **kwargs):
     self.author_types = AuthorType.serialize()
     self.allow_authors = True
     self.allow_submitters = False
     self.show_empty_coauthors = kwargs.pop('show_empty_coauthors', True)
     self.default_author_type = kwargs.pop('default_author_type', AuthorType.none)
     self.default_is_submitter = False
     self.default_is_speaker = False
     self.require_primary_author = True
     super(AbstractPersonLinkListField, self).__init__(*args, **kwargs)
Пример #6
0
 def __init__(self, *args, **kwargs):
     self.author_types = AuthorType.serialize()
     self.allow_authors = True
     self.allow_submitters = False
     self.show_empty_coauthors = kwargs.pop('show_empty_coauthors', True)
     self.default_author_type = kwargs.pop('default_author_type', AuthorType.none)
     self.default_is_submitter = False
     self.default_is_speaker = False
     self.require_primary_author = True
     self.sort_by_last_name = True
     self.disable_user_search = kwargs.pop('disable_user_search', False)
     super().__init__(*args, **kwargs)