Did I find the right examples for you? yes no

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

src/a/f/Affect-Sampler-HEAD/server/intgutil.py   Affect-Sampler(Download)
import wsgiref.handlers
from google.appengine.ext import webapp
import models
 
class _TestCrudRestHandler(webapp.RequestHandler):

src/d/j/djangosampler-HEAD/djangosampler/test_sampler.py   djangosampler(Download)
 
import sampler
import models
 
class TestSampler(TestCase):

src/p/i/picasso-blog-example-HEAD/blog/__init__.py   picasso-blog-example(Download)
import config
import models
import controllers
import middleware

src/p/y/pyhsmm-factorial-HEAD/example.py   pyhsmm-factorial(Download)
from pyhsmm.util.text import progprint_xrange
 
import models
import util as futil
 

src/b/l/bloggart-tipfy-HEAD/app/apps/blog/posts/generators.py   bloggart-tipfy(Download)
  def get_prev_next(cls, post):
    """Retrieves the chronologically previous and next post for this post""" 
    import models
 
    q = models.BlogPost.all().order('-published')
  def generate_resource(cls, post, resource, action='post'):
    import models
    if not post:
      post = models.BlogPost.get_by_id(resource)
    else:
  def generate_resource(cls, post, resource):
    import models
    post = models.BlogPost.get_by_id(resource)
    if post is None:
      return
  def generate_resource(cls, post, resource, pagenum=1, start_ts=None):
    import models
    q = models.BlogPost.all().order('-published')
    q.filter('published <', start_ts or datetime.datetime.max)
    cls._filter_query(resource, q)
  def generate_resource(cls, post, resource):
    import models
    q = models.BlogPost.all().order('-updated')
    # Fetch the 10 most recently updated non-draft posts
    posts = list(itertools.islice((x for x in q if x.path), 10))

src/w/u/wuditoo-HEAD/src/common/utils/__init__.py   wuditoo(Download)
def check_user_exists(func):
    import models
    def wrapper(self, username):
        user = models.User().find_by_username(username)
        if not user:
def check_photo_permission(func):
    import models
    def wrapper(self, photo_id, *args, **kwargs):
        photo = models.Photo().find(photo_id)
        if not photo or photo.status != 0:

src/b/l/bloggart-tipfy-HEAD/app/apps/blog/staticcontent/utils.py   bloggart-tipfy(Download)
def _get_all_paths():
  import models
  keys = []
  q = models.StaticContent.all(keys_only=True).filter('indexed', True)
  cur = q.fetch(1000)
def _regenerate_sitemap():
  import gzip
  import models
  from StringIO import StringIO
  from ..utils import render_template

src/b/l/bloggart-HEAD/generators.py   bloggart(Download)
  def get_prev_next(cls, post):
    """Retrieves the chronologically previous and next post for this post"""
    import models
 
    q = models.BlogPost.all().order('-published')
  def generate_resource(cls, post, resource, action='post'):
    import models
    if not post:
      post = models.BlogPost.get_by_id(resource)
    else:
  def generate_resource(cls, post, resource):
    import models
    post = models.BlogPost.get_by_id(resource)
    if post is None:
      return
  def generate_resource(cls, post, resource, pagenum=1, start_ts=None):
    import models
    q = models.BlogPost.all().order('-published')
    q.filter('published <', start_ts or datetime.datetime.max)
    cls._filter_query(resource, q)
  def generate_resource(cls, post, resource):
    import models
    q = models.BlogPost.all().order('-updated')
    # Fetch the 10 most recently updated non-draft posts
    posts = list(itertools.islice((x for x in q if x.path), 10))

src/u/p/updates.html5rocks.com-HEAD/generators.py   updates.html5rocks.com(Download)
  def get_prev_next(cls, post):
    """Retrieves the chronologically previous and next post for this post"""
    import models
 
    q = models.BlogPost.all().order('-published')
  def generate_resource(cls, post, resource, action='post'):
    import models
    if not post:
      post = models.BlogPost.get_by_id(resource)
    else:
  def generate_resource(cls, post, resource):
    import models
    post = models.BlogPost.get_by_id(resource)
    if post is None:
      return
  def generate_resource(cls, post, resource, pagenum=1, start_ts=None):
    import models
    q = models.BlogPost.all().order('-published')
    q.filter('published <', start_ts or datetime.datetime.max)
    cls._filter_query(resource, q)
  def generate_resource(cls, post, resource):
    import models
    q = models.BlogPost.all().order('-updated')
    # Fetch the 10 most recently updated non-draft posts
    posts = list(itertools.islice((x for x in q if x.path), config.posts_in_feed))

src/p/o/pombola-HEAD/pombola/hansard/admin.py   pombola(Download)
from django.contrib import admin
import models
 
from ajax_select import make_ajax_form
from ajax_select.admin import AjaxSelectAdmin
from django.template   import RequestContext
 
import models
from pprint import pprint
 

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next