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

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

src/g/a/gae-flickrapp-HEAD/FlickrApp/API/__init__.py   gae-flickrapp(Download)
    def ensure_crumb (self, path) :
 
        if not self.validate_crumb(self.user, path, self.request.get('crumb')) :
            self.api_error(400, 'Invalid crumb')
            return False
 
        if not handlers.has_key(method) :
            self.api_error(999, 'Unknown method')
            return
 
        format = self.request.get('format')
 
        if format and not format in self.valid_formats :
            self.api_error(999, 'Not a valid format')
 
        except Exception, e :
            self.api_error(999, 'Dispatch error: %s (that sometimes means there was a problem on the AppEngine side of things...)' % e)
            return
 

src/g/a/gae-flickr-backup-HEAD/FlickrApp/API/__init__.py   gae-flickr-backup(Download)
    def ensure_crumb (self, path) :
 
        if not self.validate_crumb(self.user, path, self.request.get('crumb')) :
            self.api_error(400, 'Invalid crumb')
            return False
 
        if not handlers.has_key(method) :
            self.api_error(999, 'Unknown method')
            return
 
        format = self.request.get('format')
 
        if format and not format in self.valid_formats :
            self.api_error(999, 'Not a valid format')
 
        except Exception, e :
            self.api_error(999, 'Dispatch error: %s (that sometimes means there was a problem on the AppEngine side of things...)' % e)
            return