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

All Samples(15)  |  Call(0)  |  Derive(9)  |  Import(6)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/meddleware/csrf.py   mediagoblin-spaetz(Download)
 
from mediagoblin import mg_globals
from mediagoblin.meddleware import BaseMeddleware
 
_log = logging.getLogger(__name__)
class CsrfMeddleware(BaseMeddleware):
    """CSRF Protection Meddleware
 
    Adds a CSRF Cookie to responses and verifies that it is present
    and matches the form token for non-safe requests.

src/m/e/mediagoblin-0.6.1/mediagoblin/meddleware/csrf.py   mediagoblin(Download)
 
from mediagoblin import mg_globals
from mediagoblin.meddleware import BaseMeddleware
from mediagoblin.tools.translate import lazy_pass_to_ugettext as _
 
class CsrfMeddleware(BaseMeddleware):
    """CSRF Protection Meddleware
 
    Adds a CSRF Cookie to responses and verifies that it is present
    and matches the form token for non-safe requests.

src/j/o/JoshuaGoblin-HEAD/mediagoblin/meddleware/csrf.py   JoshuaGoblin(Download)
 
from mediagoblin import mg_globals
from mediagoblin.meddleware import BaseMeddleware
from mediagoblin.tools.translate import lazy_pass_to_ugettext as _
 
class CsrfMeddleware(BaseMeddleware):
    """CSRF Protection Meddleware
 
    Adds a CSRF Cookie to responses and verifies that it is present
    and matches the form token for non-safe requests.

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/plugins/trim_whitespace/__init__.py   mediagoblin-spaetz(Download)
class TrimWhiteSpaceMeddleware(meddleware.BaseMeddleware):
    _setup_plugin_called = 0
    RE_MULTI_WHITESPACE = re.compile(b'(\s)\s+', re.M)
 
    def process_response(self, request, response):

src/m/e/mediagoblin-0.6.1/mediagoblin/plugins/trim_whitespace/__init__.py   mediagoblin(Download)
class TrimWhiteSpaceMeddleware(meddleware.BaseMeddleware):
    _setup_plugin_called = 0
    RE_MULTI_WHITESPACE = re.compile(b'(\s)\s+', re.M)
 
    def process_response(self, request, response):

src/j/o/JoshuaGoblin-HEAD/mediagoblin/plugins/trim_whitespace/__init__.py   JoshuaGoblin(Download)
class TrimWhiteSpaceMeddleware(meddleware.BaseMeddleware):
    _setup_plugin_called = 0
    RE_MULTI_WHITESPACE = re.compile(b'(\s)\s+', re.M)
 
    def process_response(self, request, response):

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/tools.py   JoshuaGoblin(Download)
from mediagoblin.init.config import read_mediagoblin_config
from mediagoblin.db.base import Session
from mediagoblin.meddleware import BaseMeddleware
from mediagoblin.auth import gen_password_hash
from mediagoblin.gmg_commands.dbupdate import run_dbupdate
class TestingMeddleware(BaseMeddleware):
    """
    Meddleware for the Unit tests
 
    It might make sense to perform some tests on all

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/tests/tools.py   mediagoblin-spaetz(Download)
from mediagoblin.db.open import setup_connection_and_db_from_config
from mediagoblin.db.sql.base import Session
from mediagoblin.meddleware import BaseMeddleware
from mediagoblin.auth.lib import bcrypt_gen_password_hash
from mediagoblin.gmg_commands.dbupdate import run_dbupdate
class TestingMeddleware(BaseMeddleware):
    """
    Meddleware for the Unit tests
 
    It might make sense to perform some tests on all

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/tools.py   mediagoblin(Download)
from mediagoblin.init.config import read_mediagoblin_config
from mediagoblin.db.base import Session
from mediagoblin.meddleware import BaseMeddleware
from mediagoblin.auth import gen_password_hash
from mediagoblin.gmg_commands.dbupdate import run_dbupdate
class TestingMeddleware(BaseMeddleware):
    """
    Meddleware for the Unit tests
 
    It might make sense to perform some tests on all