diff options
Diffstat (limited to 'TODO.txt')
| -rw-r--r-- | TODO.txt | 77 |
1 files changed, 55 insertions, 22 deletions
@@ -6,39 +6,68 @@ Must-Have (before 1.0) - Write a "Whats New" (delta from BFG 1.3) -- Consider deprecations for ``model`` and ``resource`` APIs. +- API docs for ``pyramid.views.action``. (also, @action decorator uses + ``name`` for the method name; consider whether this will be confused with + ``name`` of ``view_config`` which means something else) -- Re-make testing.setUp() and testing.tearDown() the canonical APIs for test - configuration. - -- API docs for ``pyramid.views.action``. +- Add docs for ``__action_decorator__`` attr of handler. - Use a commit veto when configuring repoze.tm2 in paster templates for non-1X, 2X, or 3X responses. -- Consider passing two callables to CallbackAuthenticationPolicy: one for - validating/obtaining the userid, the other for returning groups. +- Figure out how to slim the herd of paster templates. Related: + https://github.com/Pylons/pyramid/issues#issue/40, + https://github.com/Pylons/pyramid/issues#issue/42, + https://github.com/Pylons/pyramid/issues#issue/44, + https://github.com/Pylons/pyramid/issues#issue/94 +, https://github.com/Pylons/pyramid/issues#issue/95 -- Add docs for ``__action_decorator__`` attr of handler. +- Explain how to use i18n localization in Mako and Jinja2. -- Document the ``request.override_renderer`` attribute. +- Turn Forbidden status code into a 403 (it's currently a 401, which is for + bw compat, but is misleading). -- Figure out how to slim the herd of paster templates. +- Fix too-long template lines in tutorials for PDF renderings. -- Explain i18n in Mako and Jinja2. +- Bug in URL dispatch pattern matching: + https://github.com/Pylons/pyramid/issues#issue/90 -- Turn Forbidden into a 403. +- Allow ``pyramid.security.remember`` to accept a list of tokens for use when + there's an ``auth_tkt`` authentication policy: + https://github.com/Pylons/pyramid/issues#issue/81 and + https://github.com/Pylons/pyramid/issues#issue/78 -- @action decorator uses ``name`` for the method name; consider whether this - will be confused with ``name`` of ``view_config`` which means something - else. +- Add docs for ``route_path`` and ``route_url``, etc to Request API docs (see + also https://github.com/Pylons/pyramid/issues#issue/19). -- Consider adding a default exception view for HTTPException and attendant - ``redirect`` and ``abort`` functions ala Pylons. +- Deprecate ``@bfg_view``. + +- Reversing (context, request) in function view callable arglist produces + incomprehensible traceback:: + + def aview(request, context): + return {} + + if __name__ == '__main__': + from pyramid.config import Configurator + from paste.httpserver import serve + c = Configurator() + c.add_view(aview, renderer='__main__:foo.pt') + serve(c.make_wsgi_app()) + + File "/home/chrism/projects/pyramid/pyramid/config.py", line 2981, in map_nonclass + ronly = requestonly(view, self.attr) + File "/home/chrism/projects/pyramid/pyramid/config.py", line 3071, in requestonly + if len(args) - len(defaults) == 1: + zope.configuration.config.ConfigurationExecutionError: <type 'exceptions.TypeError'>: object of type 'NoneType' has no len() in: + ('reversed.py', 14, '<module>', "c.add_view(aview, renderer='__main__:foo.pt')") Should-Have ----------- +- Consider adding a default exception view for HTTPException and attendant + ``redirect`` and ``abort`` functions ala Pylons. + - Add notes about renderer response attrs to request docs. - Add an example of using a cascade to serve static assets from the root. @@ -57,14 +86,14 @@ Should-Have - Provide a response_set_cookie method on the request for rendered responses that can be used as input to response.set_cookie? -Nice-to-Have ------------- - - Make it possible to get at ACLDenied data from Forbidden response in exceptionview. -- ``config.meta`` classmethod which adds a new method to the Configurator - class. +- ``config.meta`` or ``config.extend`` classmethod which adds a new method + ("directive") to the Configurator class. + +Nice-to-Have +------------ - Better "Extending" chapter. @@ -128,3 +157,7 @@ Nice-to-Have - Add functionality that mocks the behavior of ``repoze.browserid``. +- Consider implementing the API outlined in + http://plope.com/pyramid_auth_design_api_postmortem, phasing out the + current auth-n-auth abstractions in a backwards compatible way. + |
