Installing StatsD
These links were all very greatly appreciated
diff --git a/pyramid_mailer/response.py b/pyramid_mailer/response.py | |
index 603e3d8..831fc8a 100644 | |
--- a/pyramid_mailer/response.py | |
+++ b/pyramid_mailer/response.py | |
@@ -38,6 +38,7 @@ import quopri | |
import sys | |
import mimetypes | |
import string | |
+import types | |
from email.mime.base import MIMEBase |
server { | |
listen 80; | |
server_name | |
graphite.example.com | |
; | |
error_log /var/log/uwsgi/graphite_a-nginx.log | |
location / { | |
auth_basic "Graphite"; |
Installing StatsD
These links were all very greatly appreciated
config.add_subscriber(\ | |
"app.subscribers.statsd_timing", | |
"pyramid.events.ContextFound") |
from _api import IntegratedApi | |
api = IntegratedApi() | |
api.bootstrapped.request.dbSession.writer.rollback() | |
## do stuff | |
api.request_finish() | |
api.request_new() | |
## do stuff |
import re | |
RE_kwargs_unified = re.compile(""" | |
(?P<arg> | |
(?P<k>[\w\-]+) | |
= | |
(?P<q>"|') | |
(?P<v>[^"]+) | |
(?P=q) | |
)+ |
def includeme(config): | |
config.add_tween( 'exception_logging_tween_factory' , under=EXCVIEW ) | |
def exception_logging_tween_factory(handler,registry): | |
def exception_logging_tween(request): | |
ignored = (WSGIHTTPException,) | |
try: | |
return handler(request) | |
except ignored: | |
raise |
import logging | |
log = logging.getLogger(__name__) | |
import pyramid_beaker | |
from pyramid.session import UnencryptedCookieSessionFactoryConfig | |
import types | |
valid_args_pyramid_UnencryptedCookieSessionFactoryConfig = [ | |
'secret', |
from pyramid.config import Configurator | |
from pyramid.view import view_config | |
import pyramid_mailer | |
from pyramid_mailer import get_mailer | |
from pyramid_mailer.message import Message as MailerMessage | |
from pyramid_mailer import mailer_factory_from_settings | |
def main(global_config, **settings): |
--- whisper.py 2013-08-14 11:59:04.000000000 -0400 | |
+++ whisper.py.fix 2013-08-14 11:59:17.000000000 -0400 | |
@@ -324,11 +324,6 @@ | |
if os.path.exists(path): | |
raise InvalidConfiguration("File %s already exists!" % path) | |
+ # ensure the path | |
+ _path_dir = os.path.split(path) | |
+ if not os.path.exists( _path_dir ): | |
+ os.makedirs( _path_dir ) |