summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-07-03Note no-spaces-in-path issue.Chris McDonough
2009-07-03- Fix ``configure_zcml`` filespec check on Windows. Previously if anChris McDonough
absolute filesystem path including a drive letter was passed as ``filename`` (or as ``configure_zcml`` in the options dict) to ``repoze.bfg.router.make_app``, it would be treated as a package:resource_name specification.
2009-07-02- Fix inaccuracies and import errors in bfgwiki (traversal+ZODB) andChris McDonough
bfgwiki2 (urldispatch+SA) tutorials. - Use bfgsite index for all tutorial setup.cfg files.
2009-07-02Use bfgsite index.Chris McDonough
2009-07-02Fix import.Chris McDonough
Use request.url as "referrer" as we're no longer redirecting.
2009-07-02Get import and logged in detection working right.Chris McDonough
2009-07-02Use bfgsite index.Chris McDonough
2009-07-02Unused imports.Chris McDonough
2009-07-02Testing output.Chris McDonough
2009-07-02Prep for 1.0b1.Chris McDonough
2009-07-02Rendering.Chris McDonough
2009-07-02Allow ``zcml_configure`` value to override the package.Chris McDonough
2009-07-02Rendering.Chris McDonough
2009-07-02Rendering.Chris McDonough
2009-07-02Point at the right bug tracker.Chris McDonough
2009-07-02Reorder.Chris McDonough
2009-07-02Typo.Chris McDonough
2009-07-02- Added an "Extending" chapter to the narrative documentation whichChris McDonough
explains how to extend or modify an existing BFG application using another Python package and ZCML.
2009-07-02Mention resources.Chris McDonough
2009-07-02- Added a "Resources" chapter to the narrative documentation whichChris McDonough
explains how to override resources within one package from another package.
2009-07-02- Allow a Paste config file (``configure_zcml``) value or anChris McDonough
environment variable (``BFG_CONFIGURE_ZCML``) to name a ZCML file that will be used to bootstrap the application. Previously, the integrator could not influence which ZCML file was used to do the boostrapping (only the original application developer could do so).
2009-07-02Document (upcoming) ``configure_zcml`` feature.Chris McDonough
2009-07-01Minimal mention of new feature.Chris McDonough
2009-07-01Prep for yet another alpha.Chris McDonough
2009-07-01Formatting.Chris McDonough
2009-07-01- Make it possible to pass strings in the formChris McDonough
"package_name:relative/path" to APIs like ``render_template``, ``render_template_to_response``, and ``get_template``. Sometimes the package in which a caller lives is a direct namespace package, so the module which is returned is semi-useless for navigating from.
2009-07-01Prep for 1.0a8.Chris McDonough
2009-07-01Rendering.Chris McDonough
2009-07-01Renderings.Chris McDonough
2009-07-01- Deprecate the ``authentication_policy`` and ``authorization_policy``Chris McDonough
arguments to ``repoze.bfg.router.make_app``. Instead, developers should use the various authentication policy ZCML directives (``repozewho1authenticationpolicy``, ``remoteuserauthenticationpolicy`` and ``authtktauthenticationpolicy``) and the `aclauthorizationpolicy`` authorization policy directive as described in the changes to the "Security" narrative documentation chapter and the wiki tutorials.
2009-07-01- Add three new ZCML directives which configure authenticationChris McDonough
policies: - ``repozewho1authenticationpolicy`` - ``remoteuserauthenticationpolicy`` - ``authtktauthenticationpolicy`` - Add a new ZCML directive which configures an ACL authorization policy named ``aclauthorizationpolicy``.
2009-07-01Update copyright years.Chris McDonough
2009-07-01Use nonmutable default arg.Chris McDonough
2009-07-01Modify.Chris McDonough
2009-07-01No, and yes.Chris McDonough
2009-06-30- Bug fix: when a ``repoze.bfg.resource.PackageOverrides`` class wasChris McDonough
instantiated, and the package it was overriding already had a ``__loader__`` attribute, it would fail at startup time, even if the ``__loader__`` attribute was another PackageOverrides instance. We now replace any ``__loader__`` that is also a PackageOverrides instance. Symptom: ``ConfigurationExecutionError: <type 'exceptions.TypeError'>: Package <module 'karl.views' from '/Users/chrism/projects/osi/bfgenv/src/karl/karl/views/__init__.pyc'> already has a __loader__ (probably a module in a zipped egg)``.
2009-06-30Back to dev.Chris McDonough
2009-06-30Prep for 1.0a7.Chris McDonough
2009-06-30- Add a ``reload_resources`` configuration file setting (aka theChris McDonough
``BFG_RELOAD_RESOURCES`` environment variable). When this is set to true, the server never needs to be restarted when moving files between directory resource overrides (esp. for templates currently). - Add a ``reload_all`` configuration file setting (aka the ``BFG_RELOAD_ALL`` environment variable) that implies both ``reload_resources`` and ``reload_templates``. - The ``static`` helper view class now uses a ``PackageURLParser`` in order to allow for the overriding of static resources (CSS / logo files, etc) using the ``resource`` ZCML directive. The ``PackageURLParser`` class was added to a (new) ``static`` module in BFG; it is a subclass of the ``StaticURLParser`` class in ``paste.urlparser``. - The ``repoze.bfg.templating.renderer_from_cache`` function now checks for the ``reload_resources`` setting; if it's true, it does not register a template renderer (it won't use the registry as a template renderer cache). - Add ``pkg_resources`` to the glossary. - Update the "Environment" docs to note the existence of ``reload_resources`` and ``reload_all``. - Use a colon instead of a tab as the separator between package name and relpath to form the "spec" when register a ITemplateRenderer.
2009-06-30Updated the ``bfg_alchemy`` paster template to include two views:Tres Seaver
- The view on the root shows a list of links to records. - The view on a record shows the details for that object.
2009-06-30Unused imports.Chris McDonough
2009-06-30- Register a ``repoze.bfg.resource.OverrideProvider`` as aChris McDonough
pkg_resources provider only for modules which are known to have overrides, instead of globally, when a <resource> directive is used (performance).
2009-06-29(no commit message)Chris McDonough
2009-06-29Update test output.Chris McDonough
2009-06-29(no commit message)Chris McDonough
2009-06-29Back to dev.Chris McDonough
2009-06-29Prep for 1.0a6.Chris McDonough
2009-06-29- Use ``caller_package`` function instead of ``caller_module``Chris McDonough
function within ``templating`` to avoid needing to name the caller module in resource overrides (actually match docs). - Make it possible to override templates stored directly in a module with templates in a subdirectory of the same module, stored directly within another module, or stored in a subdirectory of another module (actually match docs).
2009-06-29Prep for 1.0a5 release.Chris McDonough
2009-06-29Minimal docs for ``resource`` directive.Chris McDonough