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

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

src/b/u/Buckley-HEAD/sketch/templating/jinja.py   Buckley(Download)
from sketch.helpers.dateformat import *
from sketch.helpers.forms import *
from sketch.exception import NotFound, Forbidden, InternalServerError
 
try:
    logging.info('Could not import Jinja')
    logging.info(sys.path)
    raise NotFound('Could not import jinja2')
 
_jinja_env = None

src/b/u/Buckley-HEAD/sketch/application.py   Buckley(Download)
 
      if not match:
        raise sketch.exception.NotFound()
 
      self.dispatch(match, request, response)

src/b/u/Buckley-HEAD/buckley/controllers.py   Buckley(Download)
import buckley
 
from sketch.exception import NotFound
from sketch.util.safestring import force_int
from google.appengine.api import memcache
  def get(self, stub):
    page_obj = buckley.models.Post.is_page(stub)
 
    if not page_obj:
      raise NotFound()
  def get(self, stub):
    post_obj = buckley.models.Post.is_post(stub)
 
    if not post_obj:
      raise NotFound()
 
    if not format in ['atom', 'rss', 'rss2']:
      raise NotFound()
 
    posts = buckley.models.Post.get_posts_published(num=self.config.feed_posts)

src/b/u/Buckley-HEAD/buckley/admin.py   Buckley(Download)
      post = Post.get_single_by_key(key)
      if not post:
        raise sketch.exception.NotFound()
 
      post.title = title
        self.redirect('/admin/%s/edit/%s' % (ptype, str(post.key()) + '?success'))
      else:
        raise sketch.exception.NotFound()
    else:      
      categories = [db.Category('none')]