I hereby claim:
- I am mmerickel on github.
- I am mmerickel (https://keybase.io/mmerickel) on keybase.
- I have a public key whose fingerprint is CC1A 48C9 57AC 6ABE F05B 2C59 6BC9 77B0 56B8 29E5
To claim this, I am signing this object:
cookie_state = { | |
'session_id': session_id, | |
'is_deleted': False, | |
} | |
def update_cookie(request, response): | |
exc = getattr(request, 'exception', None) | |
# exit early if there's an exception and the user specified |
I hereby claim:
To claim this, I am signing this object:
from pyramid.interfaces import IRequest | |
from zope.interface.registry import Components | |
def includeme(config): | |
config.add_request_method(find_service) | |
config.add_request_method(lambda _: Components(), 'service_cache', | |
reify=True) | |
config.add_directive('register_service', register_service) | |
config.add_directive('register_service_factory', register_service_factory) |
setup( | |
entry_points={ | |
'paste.filter_app_factory': [ | |
'ssl_only = myapp.middlewares.ssl_only:make_filter', | |
], | |
} | |
) |
diff --git a/pyramid/router.py b/pyramid/router.py | |
index ba4f85b..a11e556 100644 | |
--- a/pyramid/router.py | |
+++ b/pyramid/router.py | |
@@ -1,10 +1,12 @@ | |
from zope.interface import ( | |
implementer, | |
providedBy, | |
+ Interface, | |
) |
from pyramid.config import Configurator | |
from pyramid.view import view_config | |
def main(global_config, **app_settings): | |
config = Configurator(settings=app_settings) | |
config.include('.model') | |
config.scan(__name__) | |
return config.make_wsgi_app() | |
import logging.config | |
import os.path | |
from alembic import context | |
from sqlalchemy import create_engine, pool | |
# this is the Alembic Config object, which provides | |
# access to the values within the .ini file in use. | |
config = context.config |
from .meta import DBSession | |
from .users import User | |
from .entries import Entry |
import React from 'react'; | |
import {connect} from 'redux/react'; | |
import {bindActions} from './utils/bindActions'; | |
import * as Actions from './actions'; | |
@connect(state => ({ | |
activePage: state.activePage, | |
})) | |
@bindActions({ |