Changelogs » Zc-resourcelibrary

PyUp Safety actively tracks 266,622 Python packages for vulnerabilities and notifies you when to upgrade.



  - Nothing changed yet.


  - Add support for Python 3.4, 3.5, 3.6 and PyPy.
  - Drop test dependency on ```` and
  ````, among others.
  - Make dependency optional.


  - Register adapters with getSiteManager rather than getGlobalSiteManager. This
  allows registering resource libraries in non-global sites. For detais see:
  - Raise NotImplementedError if we find that a second ZCML declaration would
  change the global library_info dict in a way that may (depending on ZCML
  ordering) break applications at runtime. These errors were pretty hard to
  - Remove unneeded test dependencies on ```` and
  - Remove dependency on ````.


  - Response._addDependencies will only include a ResourceLibrary in the
  list of dependencies if the ResourceLibrary actually has included
  This makes directives that simply declare dependencies on other
  libraries work again.
  - Add missing depedency on ````, clean up unused
  imports and whitespace.


  - Resource libraries that are required during a retried request are now
  correctly registered and injected to the HTML.
  - Import hooks functionality from zope.component after it was moved there from This lifts the dependency on
  - Removed an unused ISite import and thereby, the undeclared dependency on


  - Use ``zope.browserresource`` instead of ````, removing
  a dependency on latter.
  - Look up the "resources view" via queryMultiAdapter instead of looking into
  the adapter registry.
  - Moved the dependency on to the test dependencies.


  - Use ```` instead of ````.  Removes direct
  dependency on ````.


  New features:
  - An attempt to generate resource URLs using the "resources view" ()
  is now made; if unsuccesful, we fall back to the previous method of
  crafting the URL by hand from the site url. This ensures that the
  resource library respects the existing plugging points for resource
  publishing (see ````).
  - You can now explicitly specify where resource links should be
  inserted using the special marker comment '<!-- zc.resourcelibrary -->'.


  - Remove from dependencies, substituting
  its uses with direct imports.
  - Use zope-dev at mailing list address instead of
  zope3-dev at as the latter one is retired.
  - Change "cheeseshop" to "pypi" in the package homepage.


  Bugs fixed:
  - added the behavior from the standard Zope 3 response to guess that a body
  that is not HTML without an explicit mimetype should have a
  'text/plain' mimetype.  This means that, for instance, redirects with
  a body of '' and no explicit content type will no longer cause an
  exception in the resourcelibrary response code.


  New features:
  - You can now provide an alternative "directory-resource"
  factory. This facilitates implementation of dynamic resources.
  Bugs fixed:
  - Updated the functional-testing zcml file to get rid of a deprecation


  - bug fix: when checking content type, take into account that it may be None


  - changed MIME type handling to be more restrictive about whitespace to
  conform to RfC 2045


  - fixed the check for HTML and XML content to allow content type parameters


  - Update package meta-data.
  - Fixed package dependencies.
  - Merged functional and unit tests.




  - Add more package meta-data.


  - Update package code to work with newer versions of other packages.


  - Initial release.