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

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)
Primary class container for CSRF validation logic. The main function of
this extension is to generate and validate CSRF tokens. The design and
implementation of this extension is influenced by Django's CSRF middleware.

Tokens are generated using a salted SHA1 hash. The salt is based off your
application's `SECRET_KEY` setting and a random range.

You might intialize :class:`SeaSurf` something like this::

    csrf = SeaSurf(app)(more...)

src/s/i/Sixpack-1.1.1/sixpack/web.py   Sixpack(Download)
from flask import Flask
from flask import render_template, abort, request, url_for, redirect, jsonify, make_response
from flask.ext.seasurf import SeaSurf
from flask.ext.assets import Environment, Bundle
from flask_debugtoolbar import DebugToolbarExtension
 
app = Flask(__name__)
csrf = SeaSurf(app)
 
js = Bundle('js/vendor/jquery.js', 'js/vendor/d3.js',

src/s/i/sixpack-HEAD/sixpack/web.py   sixpack(Download)
from flask import Flask
from flask import render_template, abort, request, url_for, redirect, jsonify, make_response
from flask.ext.seasurf import SeaSurf
from flask.ext.assets import Environment, Bundle
from flask_debugtoolbar import DebugToolbarExtension
 
app = Flask(__name__)
csrf = SeaSurf(app)
 
js = Bundle('js/vendor/jquery.js', 'js/vendor/d3.js',

src/f/o/foofind-web-HEAD/foofind/services/extensions.py   foofind-web(Download)
from flask.ext.login import LoginManager
from flask.ext.mail import Mail, Message
from flask.ext.seasurf import SeaSurf
from smtplib import SMTPRecipientsRefused
from raven.contrib.flask import Sentry
cache = Cache()
unit = UnitTester()
csrf = SeaSurf()
 
def send_mail(subject,to,template=None,attachment=None,**kwargs):

src/s/t/standup-HEAD/standup/main.py   standup(Download)
from flask.ext.funnel import Funnel
from flask.ext.markdown import Markdown
from flask.ext.seasurf import SeaSurf
from standup.apps.status.helpers import get_weeks
from standup.apps.status.models import Project
 
 
csrf = SeaSurf()
 
 

src/f/o/foofind-web-HEAD/foofind/blueprints/index.py   foofind-web(Download)
from flask.ext.babelex import gettext as _
from flask.ext.login import current_user
from flask.ext.seasurf import SeaSurf
from urlparse import urlparse