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

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)
Base class for all Simon models.

src/f/l/Flask-Simon-0.3.0/examples/flaskr/flaskr.py   Flask-Simon(Download)
from flask import (Flask, request, session, redirect, url_for, abort,
                   render_template, flash)
from flask.ext.simon import Simon, Model
 
 
class Entry(Model):
    class Meta:
        collection = 'entries'
        sort = '-id'
 

src/f/l/Flask-Simon-0.3.0/examples/flask-login/login.py   Flask-Simon(Download)
from flask import Flask, redirect, render_template, request, url_for
from flask.ext.login import (AnonymousUser, LoginManager, UserMixin,
                             login_required, login_user, logout_user)
from flask.ext.simon import Simon, Model
 
class User(Model, UserMixin):
    """A basic user model, it hooks into Flask-Login using UserMixin"""
 
    def get_id(self):
        """Retrieves the documents ID