Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
use library_registry from fanstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Dec 1, 2010
1 parent 6470274 commit 8a7945b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zope/fanstatic/zcml.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def factory(request):
def action_setup(_context):
"""Publish all fanstatic library entry points as resources.
"""
for library in fanstatic.libraries():
for library in fanstatic.library_registry.values():
factory = create_factory(library)
adapts = (IBrowserRequest,)
provides = Interface
Expand Down
3 changes: 2 additions & 1 deletion src/zope/fanstatic/zopesupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def set_base_url_on_needed_inclusions(event):
class ZopeFanstaticResource(object):

# Hack to get ++resource++foo/bar/baz.jpg paths working in Zope
# Pagetemplates.
# Pagetemplates. Note that ++resource+foo/bar/baz.jpg URLs will
# not work with this hack!

implements(ITraversable, IAbsoluteURL)

Expand Down

0 comments on commit 8a7945b

Please sign in to comment.