Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/r/a/RatticWeb-HEAD/cred/api.py   RatticWeb(Download)
from tastypie import fields
from tastypie.authentication import SessionAuthentication, MultiAuthentication
from account.authentication import MultiApiKeyAuthentication
from tastypie.validation import FormValidation
from tastypie.resources import ModelResource
        resource_name = 'cred'
        excludes = ['username', 'is_deleted']
        authentication = MultiAuthentication(SessionAuthentication(), MultiApiKeyAuthentication())
        authorization = CredAuthorization()
        filtering = {
        }
        resource_name = 'tag'
        authentication = MultiAuthentication(SessionAuthentication(), MultiApiKeyAuthentication())
        authorization = TagAuthorization()
        validation = FormValidation(form_class=TagForm)

src/r/a/RatticWeb-HEAD/staff/api.py   RatticWeb(Download)
from django.contrib.auth.models import Group
from django.conf import settings
 
from tastypie.authentication import SessionAuthentication, MultiAuthentication
from account.authentication import MultiApiKeyAuthentication
    class Meta:
        queryset = Group.objects.all()
        always_return_data = True
        resource_name = 'group'
        authentication = MultiAuthentication(MultiApiKeyAuthentication(), SessionAuthentication())