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/b/u/Buckley-HEAD/sketch/db/model.py   Buckley(Download)
from google.appengine.ext import db
from google.appengine.runtime.apiproxy_errors import CapabilityDisabledError
from google.appengine.api import memcache
from google.appengine.ext.db import Error as DBError, BadQueryError, BadKeyError, BadPropertyError
from sketch.util.safestring import force_int
    def fetch_cached(self, query, num=100, cached=True, page=1):
      page = force_int(page, 1)
      num = force_int(num, 100)
      offset = 0   
      if page > 1:

src/b/u/Buckley-HEAD/buckley/controllers.py   Buckley(Download)
 
from sketch.exception import NotFound
from sketch.util.safestring import force_int
from google.appengine.api import memcache
 
  def get(self, page=1):
    page = force_int(page, 1)
    posts = buckley.models.Post.get_posts_published(num=5, page=page)
 
    return self.render('archive', {