Giter Site home page Giter Site logo

pyramid_exclog's Introduction

Pylons

Build Status

Pylons is a rapid web application development framework.

Note

Pylons has merged with repoze.bfg, and is now in maintenance-only mode. It's highly recommended that new projects start with the new merged web framework, pyramid.

Install

Read the online Installation instructions.

If you want to install from source you can run the following command:

$ python setup.py install

This will display a message and download setuptools if the module is not already installed. It will then install Pylons and all its dependencies. You may need root privileges to install setuptools.

Testing

To test the source distribution run the following command:

$ python setup.py test

This will install additional dependencies needed for the tests. As above, you may need root privileges.

Documentation

Read the complete Pylons web framework documentation.

Definitive Guide to Pylons is a book about Pylons published by Apress, written by James Gardner, with free HTML rendering.

Generating documentation requires Sphinx:

$ easy_install Sphinx

Then to build the documentation use the commands:

$ cd pylons/docs/<lang>
$ make html

pyramid_exclog's People

Contributors

abourget avatar bertjwregeer avatar blaflamme avatar conradoplg avatar ev-agelos avatar jalan avatar jayd3e avatar jinty avatar jon-betts avatar jvanasco avatar kotofos avatar landreville avatar lynnvaughan avatar mcdonc avatar mmerickel avatar rafrombrc avatar shish avatar stevepiercy avatar tseaver avatar wylee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyramid_exclog's Issues

new release?

version 1.0 throws AttributeError: 'Request' object has no attribute 'registry'

New PyPI release?

I was wondering if it'd be possible to get a new version released to PyPI sometime soon. I'm especially itching to use the new get_message functionality in production.

$(params)s instead of %(params)s

params values are not replaced in global message if an exception occurred

exclog.extra_info allow to get more info about occurred exception but params is not replaced
inside the string because of a bad string format

$(params)s instead of %(params)s

line 62 of init.py main file

position tween over pyramid_tm

It seems to me that with pyramid_tm moving over the exception views it may be necessary to move this tween over as well. Minimal changes are required aside from checking request.exception on top of uncaught exceptions. It might be smart as well to add an over=['pyramid_tm.tm_tween_factory', EXCVIEW] constraint.

as_globals_list enforcing a list of strings

Hi,

I noticed that the function as_globals_list in init.py file is using the maybe_resolve method from the resolver, this allows to pass a string that needs to be imported or directly a class which will be untouched.

def as_globals_list(value):
    ...
    value = aslist(value)
    for dottedname in value:
        ...
        resolver.maybe_resolve(dottedname)

However, the method used before the for loop aslist() assumed that everything is a string. Could we follow the same logic that maybe_resolve and handle the case where the value is a class directly?

Trouble with Amazon aws : SMTPAuthenticationError: (530, 'Must issue a STARTTLS command first')

I successfully used my aws credentials to send an email.
But when I use it in exclog to send a mail it returns an error:
SMTPAuthenticationError: (530, 'Must issue a STARTTLS command first').

This is the code-

[handler_exc_handler]
class = handlers.SMTPHandler
args = (('email-smtp.us-east-1.amazonaws.com', 587), '[email protected]', '[email protected]'], 'Apnistreet Exception', ('username','user key'))
level = ERROR
formatter = exc_formatter

Could you perhaps look into it and say whether its exclog's problem or mine?

Custom log handler

Pyramid's narrative documentation is a little short on general exception handling:

To log (or email) exceptions generated by your Pyramid application, use the pyramid_exclog package.

I wonder what I must do to have pyramid_exclog use my custom handler? I'm sending my warnings to airbrake and am using airbrake-python for that.

While your code is pretty short I'm still unsure what exactly I have to patch to get my stuff working. Could you give me a general idea how I should proceed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.