Skip to content

Commit

Permalink
Merge pull request #350 from plone/thet-custombundlefix
Browse files Browse the repository at this point in the history
custom bundle fix
  • Loading branch information
vangheem committed Jan 13, 2015
2 parents 686f562 + 6966e63 commit e00f34b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.rst
Expand Up @@ -8,6 +8,12 @@ Changelog
5.0b1 (unreleased)
------------------

- Fix the resource registry to save the automatically generated filepath to the
compiled resource on the bundle object after compilation. The filepath is
always in the '++plone++static/' namespace. This fix makes custom bundles
actually includable.
[thet]

- Get icon from layout_view instead of plone_view.
[pbauer]

Expand Down
2 changes: 2 additions & 0 deletions Products/CMFPlone/controlpanel/browser/resourceregistry.py
Expand Up @@ -240,6 +240,7 @@ def save_js_build(self):
bundle = self.get_bundles().get(req.form['bundle'])
if bundle:
bundle.last_compilation = datetime.now()
bundle.jscompilation = '++plone++{}'.format(filepath)
return json.dumps({
'success': True,
'filepath': '++plone++' + filepath
Expand All @@ -255,6 +256,7 @@ def save_less_build(self):
bundle = self.get_bundles().get(req.form['bundle'])
if bundle:
bundle.last_compilation = datetime.now()
bundle.csscompilation = '++plone++{}'.format(filepath)
return json.dumps({
'success': True,
'filepath': '++plone++' + filepath
Expand Down
1 change: 0 additions & 1 deletion Products/CMFPlone/resources/viewlets/__init__.py
@@ -1,4 +1,3 @@

from Products.ResourceRegistries.interfaces.registries import IResourceRegistry
from Products.ResourceRegistries.interfaces.registries import ICSSRegistry
from Products.ResourceRegistries.interfaces.registries import IKSSRegistry
Expand Down

0 comments on commit e00f34b

Please sign in to comment.