Coder Social home page Coder Social logo

pyramid_royal's People

Contributors

antoine-lassauzay avatar hadrien avatar

Stargazers

 avatar  avatar  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

pyramid_royal's Issues

Project status?

Hey @hadrien, long time no see 😎

Do you think this project still has value (convention-over-configuration scaffolding for RESTful web services on top of Pyramid), or that truly good generic lib can’t be done and each project should define its mini-framework (like the one we both know that parses swagger spec to derive request validation schema)?

HTTP 500 error when using POST verb on Item resources.

  File "venv/local/lib/python2.7/site-packages/royal/views.py", line 123, in not_allowed
    else context),
  File "venv/local/lib/python2.7/site-packages/pyramid/url.py", line 534, in resource_url
    url_adapter = ResourceURL(resource, self)
  File "venv/local/lib/python2.7/site-packages/pyramid/traversal.py", line 736, in __init__
    physical_path_tuple = resource_path_tuple(resource)
  File "venv/lib/python2.7/site-packages/pyramid/traversal.py", line 388, in resource_path_tuple
    return tuple(_resource_path_list(resource, *elements))
  File "venv/local/lib/python2.7/site-packages/pyramid/traversal.py", line 394, in _resource_path_list
    path = [loc.__name__ or '' for loc in lineage(resource)]
AttributeError: 'ItemView' object has no attribute '__name__'

This is caused by the fact that the creation of the royal.exceptions.MethodNotAllowed instance is passed an ItemView instead of a resource instance in ItemView.post.

Remove bson formatter

Supporting BSON was a nice proof of concept for the royal renderer, but I don’t think it’s really useful, and it brings a dependency on pymongo. I think it’s out of scope for royal and should be removed.

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.