summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2008-12-09Slight rewording.Chris McDonough
2008-12-09Add context.root to router so the root model can be easily accessed from a viewFernando Correa Neto
2008-12-07Prep for 0.5.3.Chris McDonough
2008-12-05Prepare for 0.5.2.Chris McDonough
2008-11-25Prep for 0.5.1.Chris McDonough
2008-11-25Add reference.Chris McDonough
2008-11-19 - Fix ModelGraphTraverser; don't try to change the ``__name__`` orChris McDonough
``__parent__`` of an object that claims it implements ILocation during traversal even if the ``__name__`` or ``__parent__`` of the object traversed does not match the name used in the traversal step or the or the traversal parent . Rationale: it was insane to do so. This bug was only found due to a misconfiguration in an application that mistakenly had intermediate persistent non-ILocation objects; traversal was causing a persistent write on every request under this setup. - ``repoze.bfg.location.locate`` now unconditionally sets ``__name__`` and ``__parent__`` on objects which provide ILocation (it previously only set them conditionally if they didn't match attributes already present on the object via equality). Prep for 0.5.0.
2008-11-17 - Add chameleon text template API (chameleon ${name} renderingsChris McDonough
where the template does not need to be wrapped in any containing XML). Prep for 0.4.9.
2008-11-17Continue the charade of telling people where to invoke things from.Chris McDonough
2008-11-17Explain in terms of virtualenv.Chris McDonough
2008-11-16Describe registration.Chris McDonough
2008-11-16Don't mention REST; I don't understand it obviously.Chris McDonough
2008-11-15Use elif.Chris McDonough
2008-11-15Don't mention XML-RPC.Chris McDonough
2008-11-15Grammar.Chris McDonough
2008-11-15Misspelling.Chris McDonough
2008-11-15Typo.Chris McDonough
2008-11-14Describe doing an HTTP redirect.Chris McDonough
2008-11-14Fix code and improve narrative.Chris McDonough
2008-11-14Models-as-class-only.Chris McDonough
API functions that act against models.
2008-11-14 - Document adding a request type interface to the request via aChris McDonough
subscriber function in the events narrative documentation.
2008-11-14(no commit message)Chris McDonough
2008-11-14 - Change the default paster template to register its single viewChris McDonough
against a class rather than an interface.
2008-11-14Note that subclasses work too.Chris McDonough
2008-11-14 - Document view registrations against classes andChris McDonough
``repoze.bfg.convention`` in context.
2008-11-14 - Change paster template ``tests.py`` to include a true unit test.Chris McDonough
Retain old test as an integration test. Update documentation.
2008-11-12 - ``repoze.bfg.traversal.model_url`` now always appends a slash toChris McDonough
all generated URLs unless further elements are passed in as the third and following arguments. Rationale: views often use ``model_url`` without the third-and-following arguments in order to generate a URL for a model in order to point at the default view of a model. The URL that points to the default view of the *root* model is technically ``http://mysite/`` as opposed to ``http://mysite`` (browsers happen to ask for '/' implicitly in the GET request). Because URLs are never automatically generated for anything *except* models by ``model_url``, and because the root model is not really special, we continue this pattern. The impact of this change is minimal (at most you will have too many slashes in your URL, which BFG deals with gracefully anyway). Prep for 0.4.8.
2008-11-11 - Allow ``testing.registerEventListener`` to be used with Zope 3Chris McDonough
style "object events" (subscribers accept more than a single event argument). We extend the list with the arguments, rather than append. Prep for 0.4.7.
2008-11-10 - The ``model_path`` and ``model_url`` traversal APIs returned theChris McDonough
wrong value for the root object (e.g. ``model_path`` returned ``''`` for the root object, while it should have been returning ``'/'``). Prep for 0.4.6.
2008-11-10Prep for 0.4.5.Chris McDonough
2008-11-09Prep for 0.4.4.Chris McDonough
2008-11-09registerTemplateRenderer -> registerDummyRendererChris McDonough
2008-11-09More docs.Chris McDonough
2008-11-09More docs.Chris McDonough
2008-11-08Get rid of BFGTestCase base class: use only functions.Chris McDonough
2008-11-08registerTemplate -> registerDummyTemplateChris McDonough
2008-11-08Add makeRequest API.Chris McDonough
Add minimal documentation of BFGTestCase.
2008-11-07 FeaturesChris McDonough
- Added a ``repoze.bfg.testing`` module to attempt to make it slightly easier to write unittest-based automated tests of BFG applications. Information about this class is in the documentation. - The default template renderer now supports testing better by looking for ``ITestingTemplateRenderer`` using a relative pathname. This is exposed indirectly through the API named ``registerTemplate`` in ``repoze.bfg.testing``. Deprecations - The names ``repoze.bfg.interfaces.ITemplate`` , ``repoze.bfg.interfaces.ITemplateFactory`` and ``repoze.bfg.interfaces.INodeTemplate`` have been deprecated. These should now be imported as ``repoze.bfg.interfaces.ITemplateRenderer`` and ``repoze.bfg.interfaces.ITemplateRendererFactory``, and ``INodeTemplateRenderer`` respectively. - The name ``repoze.bfg.chameleon_zpt.ZPTTemplateFactory`` is deprecated. Use ``repoze.bfg.chameleon_zpt.ZPTTemplateRenderer``. - The name ``repoze.bfg.chameleon_genshi.GenshiTemplateFactory`` is deprecated. Use ``repoze.bfg.chameleon_genshi.GenshiTemplateRenderer``. - The name ``repoze.bfg.xslt.XSLTemplateFactory`` is deprecated. Use ``repoze.bfg.xslt.XSLTemplateRenderer``.
2008-11-02Prep for 0.4.3.Chris McDonough
2008-11-02Prep for 0.4.2.Chris McDonough
2008-11-02 FeaturesChris McDonough
- The ``BFG_DEBUG_AUTHORIZATION`` envvar and the ``debug_authorization`` config file value now only imply debugging of view-invoked security checks. Previously, information was printed for every call to ``has_permission`` as well, which made output confusing. To debug ``has_permission`` checks and other manual permission checks, use the debugger and print statements in your own code. - Authorization debugging info is now only present in the HTTP response body oif ``debug_authorization`` is true. - The format of authorization debug messages was improved. - A new ``BFG_DEBUG_NOTFOUND`` envvar was added and a symmetric ``debug_notfound`` config file value was added. When either is true, and a NotFound response is returned by the BFG router (because a view could not be found), debugging information is printed to stderr. When this value is set true, the body of HTTPNotFound responses will also contain the same debugging information. - ``Allowed`` and ``Denied`` responses from the security machinery are now specialized into two types: ACL types, and non-ACL types. The ACL-related responses are instances of ``repoze.bfg.security.ACLAllowed`` and ``repoze.bfg.security.ACLDenied``. The non-ACL-related responses are ``repoze.bfg.security.Allowed`` and ``repoze.bfg.security.Denied``. The allowed-type responses continue to evaluate equal to things that themselves evaluate equal to the ``True`` boolean, while the denied-type responses continue to evaluate equal to things that themselves evaluate equal to the ``False`` boolean. The only difference between the two types is the information attached to them for debugging purposes. - Added a new ``BFG_DEBUG_ALL`` envvar and a symmetric ``debug_all`` config file value. When either is true, all other debug-related flags are set true unconditionally (e.g. ``debug_notfound`` and ``debug_authorization``). Documentation - Added info about debug flag changes. - Added a section to the security chapter named "Debugging Imperative Authorization Failures" (for e.g. ``has_permssion``).
2008-11-01 - Change default paster template generator to use ``Paste#http``Chris McDonough
server rather than ``PasteScript#cherrpy`` server. The cherrypy server has a security risk in it when ``REMOTE_USER`` is trusted by the downstream application.
2008-10-31Changes from jpcw.Chris McDonough
2008-10-28 - If the ``render_view_to_response`` function was called, if theChris McDonough
view was found and called, but it returned something that did not implement IResponse, the error would pass by unflagged. This was noticed when I created a view function that essentially returned None, but received a NotFound error rather than a ValueError when the view was rendered. This was fixed.
2008-10-22Fix link styling in navbar.Chris McDonough
2008-10-17Add repoze.org color scheme.Tres Seaver
2008-10-17Include logo in sphinx docs.Tres Seaver
2008-10-17Missing period in the self.__dict__Fernando Correa Neto
2008-10-15Workflow.Chris McDonough
2008-10-15wrong import in tutorials/cmf/catalogFernando Correa Neto