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

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

src/m/t/mt-serverland-HEAD/serverland/dashboard/api/handlers.py   mt-serverland(Download)
    def read(self, request, shortname = None, results = False):
        '''Handles a GET request asking about translation requests.'''
        user_requests = TranslationRequest.objects.filter(owner=request.user)
 
        if shortname is None:

src/m/t/mt-serverland-HEAD/serverland/dashboard/forms.py   mt-serverland(Download)
 
        try:
            active_requests = TranslationRequest.objects.filter(deleted=False)
            other_request = active_requests.filter(shortname=data)
            assert(other_request.count() == 0)