summaryrefslogtreecommitdiff
path: root/repoze
AgeCommit message (Collapse)Author
2010-04-25Allow default exception views to handle the case where they'veChris McDonough
been registered explicitly via set_XXX_view instead of as exception views.
2010-04-25Make default_notfound_view and default_forbidden_view expect an exception asChris McDonough
a context. Cause append_slash_notfound_view to work in case it is registered via set_notfound_view.
2010-04-25Add tests for debug_templates (backfill for reload_templates).Chris McDonough
2010-04-25- It is now possible to turn on Chameleon template "debugging mode"Chris McDonough
for all Chameleon BFG templates by setting a BFG-related Paster ``.ini`` file setting named ``debug_templates``. The exceptions raised by Chameleon templates when a rendering fails are sometimes less than helpful. ``debug_templates`` allows you to configure your application development environment so that exceptions generated by Chameleon during template compilation and execution will contain more helpful debugging information. This mode is on by default in all new projects.
2010-04-25Fix default_locale_name.Chris McDonough
Add debug_templates setting.
2010-04-25Move locale out of fixtures and into localeapp to prevent test runner ↵Chris McDonough
weirdness (finding nonminimal.txt.py).
2010-04-25Merge i18n branch via svn merge --ignore-ancestry -r9030:9150 ↵Chris McDonough
$REPOZE_SVN/repoze.bfg/branches/i18n No foreigners were harmed in the coding of this feature.
2010-04-21Moved i18n work to a branch and revert to pre-i18n-feature state via svn ↵Chris McDonough
merge -r9054:9030 svn+ssh://repoze@svn.repoze.org/svn/repoze.bfg/trunk
2010-04-19Docstring tweak.Chris McDonough
2010-04-19Go with a subclass of z.i18nmid.Message with the args reordered as a compromise.Chris McDonough
Make get_translation always return something.
2010-04-19Docstrings.Chris McDonough
2010-04-19Punt and use zope.i18nmessageid.Chris McDonough
2010-04-19Tweak.Chris McDonough
2010-04-19Pass along translate function to templates.Chris McDonough
2010-04-19Dip a toe in the i18n waters.Chris McDonough
2010-04-18Comment.Chris McDonough
2010-04-18- Use "Venusian" (`http://docs.repoze.org/venusianChris McDonough
<http://docs.repoze.org/venusian>`) to perform ``bfg_view`` decorator scanning rather than relying on a BFG-internal decorator scanner. (Truth be told, Venusian is really just a generalization of the BFG-internal decorator scanner). - A new install-time dependency on the ``venusian`` distribution was added. - Remove ``repoze.bfg.compat.pkgutil_26.py`` and import alias ``repoze.bfg.compat.walk_packages``. These were only required by internal scanning machinery; Venusian replaced the internal scanning machinery, so these are no longer required.
2010-04-14Remove INotFoundView and IForbiddenView interfaces.Chris McDonough
2010-04-14Add "exception views" work contributed primarily by Andrey Popp by merging ↵Chris McDonough
the "phash" branch.
2010-04-07- Replace the statement ``path = path.rstrip('/').lstrip('/')`` withChris McDonough
the simpler ``path = path.strip('/')`` in the ``repoze.bfg.traversal.traversal_path`` function.
2010-03-10Wording fix (thanks Wiggy).Chris McDonough
2010-03-07- The ``__name__`` value assigned to the returned object in theChris McDonough
``bfg_alchemy`` application template's ``MyApp`` model was an integer. This was incorrect. It is now a string.
2010-03-03Defer conditional import of IPython to avoid breakage under mod_wsgi.Tres Seaver
o http://bugs.repoze.org/issue138
2010-03-02Coverage for missing 'pkgutil'.Tres Seaver
2010-02-22remove duplicate conjunctionsReed OBrien
2010-02-07Fix bug in resolve_resource_spec caused by a refactoring.Chris McDonough
Coverage.
2010-02-06- Remove magical feature of ``repoze.bfg.url.model_url`` whichChris McDonough
prepended a fully-expanded urldispatch route URL before a the model's path if it was noticed that the request had matched a route. This feature was ill-conceived, and didn't work in all scenarios.
2010-02-05- More correct conversion of provided ``renderer`` values to resourceChris McDonough
specification values (internal).
2010-02-04- Fix a bug whereby a ``renderer`` argument to the ``@bfg_view``Chris McDonough
decorator that provided a package-relative template filename might not have been resolved properly. Symptom: inappropriate ``Missing template resource`` errors.
2010-02-04- 1.2b4 introduced a bug whereby views added via a route configurationChris McDonough
that named a view callable and also a ``view_attr`` became broken. Symptom: ``MyViewClass is not callable`` or the ``__call__`` of a class was being called instead of the method named via ``view_attr``.
2010-02-03Renderings.Chris McDonough
2010-02-03Bug FixesChris McDonough
--------- - Ensure that ``secure`` flag for AuthTktAuthenticationPolicy constructor does what it's documented to do (merge Daniel Holth's fancy-cookies-2 branch). New Features ------------ - Add ``path`` and ``http_only`` options to AuthTktAuthenticationPolicy constructor (merge Daniel Holth's fancy-cookies-2 branch).
2010-02-02- Remove ``view_header``, ``view_accept``, ``view_xhr``,Chris McDonough
``view_path_info``, ``view_request_method``, ``view_request_param``, and ``view_containment`` predicate arguments from the ``Configurator.add_route`` argument list. These arguments were speculative. If you need the features exposed by these arguments, add a view associated with a route using the ``route_name`` argument to the ``add_view`` method instead. - Remove ``view_header``, ``view_accept``, ``view_xhr``, ``view_path_info``, ``view_request_method``, ``view_request_param``, and ``view_containment`` predicate arguments from the ``route`` ZCML directive attribute set. These attributes were speculative. If you need the features exposed by these attributes, add a view associated with a route using the ``route_name`` attribute of the ``view`` ZCML directive instead.
2010-01-25Use attrs rather than setattr.Chris McDonough
2010-01-25Unused import.Chris McDonough
2010-01-24100% test coverage.Chris McDonough
2010-01-24Make sure global views don't match by default.Chris McDonough
2010-01-24Merge reversepolarity branch.Chris McDonough
2010-01-21Add functional test.Chris McDonough
2010-01-21Add tests for setattr and getattr.Chris McDonough
2010-01-21- Fix a view lookup ordering bug whereby a view with a larger numberChris McDonough
of predicates registered first (literally first, not "earlier") for a triad would lose during view lookup to one registered with fewer.
2010-01-21Disuse sys.maxint; that's silly. Use a hardcoded MAX_WEIGHT value.Chris McDonough
2010-01-20Add (non-failing) tests for ordering issue reported indirectly via ↵Chris McDonough
http://labs.creativecommons.org/2010/01/13/cc-engine-and-web-non-frameworks/ .. can't seem to repeat.
2010-01-19- When WebOb 0.9.7.1 was used, a deprecation warning was issued forChris McDonough
the class attribute named ``charset`` within ``repoze.bfg.request.Request``. BFG now *requires* WebOb >= 0.9.7, and code was added so that this deprecation warning has disappeared.
2010-01-19Bug FixesChris McDonough
--------- - When the ``Configurator`` is passed an instance of ``zope.component.registry.Components`` as a ``registry`` constructor argument, fix the instance up to have the attributes we expect of an instance of ``repoze.bfg.registry.Registry`` when ``setup_registry`` is called. This makes it possible to use the global Zope component registry as a BFG application registry. Documentation ------------- - Change renderings of ZCML directive documentation. - Add a narrative documentation chapter: "Using the Zope Component Architecture in ``repoze.bfg``"
2010-01-18Prep for b1Chris McDonough
Merge a bunch of paper-based docs fixes Configure logging during bfgshell.
2010-01-16Massive overhaul to deal with the reality that we don't map URLs directly to ↵Chris McDonough
code.
2010-01-13- Get rid of references to repoze.bfg.router.Router.Chris McDonough
2010-01-13- In ``bfg_routesalchemy``, ``bfg_alchemy`` and ``bfgwiki2`` tutorial,Chris McDonough
clean up the SQLAlchemy connection by registering a ``repoze.tm.after_end`` callback instead of relying on a ``__del__`` method of a ``Cleanup`` class added to the WSFI environment. The ``__del__`` strategy was fragile and caused problems in the wild. Thanks to Daniel Holth for testing.
2010-01-11Merge of andrew-docs branch.Chris McDonough