コード例 #1
0
 def provider_two(self):
     provider = CollectionProviderFactory(name='Spotarxiv')
     provider.allow_submissions = False
     provider.domain = 'https://www.spotarxiv.com'
     provider.description = 'spots not dots'
     provider.domain_redirect_enabled = True
     provider._id = 'spot'
     provider.save()
     return provider
コード例 #2
0
 def provider_two(self):
     provider = CollectionProviderFactory(name='Spotarxiv')
     provider.allow_submissions = False
     provider.domain = 'https://www.spotarxiv.com'
     provider.description = 'spots not dots'
     provider.domain_redirect_enabled = True
     provider._id = 'spot'
     provider.save()
     return provider
コード例 #3
0
 def collection_public(self, user):
     return CollectionFactory(creator=user,
                              provider=CollectionProviderFactory(),
                              is_public=True,
                              status_choices=['', 'asdf', 'lkjh'],
                              collected_type_choices=['', 'asdf', 'lkjh'],
                              issue_choices=['', '0', '1', '2'],
                              volume_choices=['', '0', '1', '2'],
                              program_area_choices=['', 'asdf', 'lkjh'])
コード例 #4
0
 def collection_public(self, user):
     return CollectionFactory(creator=user,
                              provider=CollectionProviderFactory(),
                              is_public=True)
コード例 #5
0
 def asdf_provider(self):
     return CollectionProviderFactory(_id='asdf')
コード例 #6
0
 def osf_provider(self):
     return CollectionProviderFactory(_id='osf')
コード例 #7
0
 def provider(self):
     return CollectionProviderFactory()
コード例 #8
0
 def collection(self):
     collection_provider = CollectionProviderFactory()
     return CollectionFactory(provider=collection_provider)
コード例 #9
0
 def collection_provider(self, user_one):
     cp = CollectionProviderFactory(creator=user_one)
     cp.allow_submissions = False
     cp.save()
     return cp
コード例 #10
0
 def collection_provider(self, user_one):
     cp = CollectionProviderFactory(creator=user_one)
     cp.allow_submissions = False
     cp.save()
     return cp
コード例 #11
0
 def provider_one(self):
     return CollectionProviderFactory(name='Sockarxiv')