js/css registry support in ArchGenXML 1.4.0 RC2
Harald Frießnegger <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Organization | Fachhochschule Vorarlberg |
| Message-ID | <[email protected]> |
just updated ArchGenXML to 1.4.0 RC2 (to be able to use i18ndude 2.0) and got an error when i reinstalled my product after re-generation. I found out that the imports for STYLESHEETS and JAVASCRIPTS are no longer sourrounded by try except which results in an exception if those two constants are not provided in AppConfig.py here's the patch (for revision 5225) regards, fRiSi --- Install_trunk.py 2005-12-01 14:13:53.961777800 +0100 +++ Install_patch.py 2005-12-01 14:16:42.918092536 +0100 @@ -244,8 +244,8 @@ </dtml-in>] + factory_tool.getFactoryTypes().keys() factory_tool.manage_setPortalFactoryTypes(listOfTypeIds=factory_types) - from Products.<dtml-var "package.getProductModuleName()">.config import STYLESHEETS try: + from Products.<dtml-var "package.getProductModuleName()">.config import STYLESHEETS portal_css = getToolByName(portal, 'portal_css') for stylesheet in STYLESHEETS: try: @@ -260,8 +260,9 @@ except: # No portal_css registry pass - from Products.<dtml-var "package.getProductModuleName()">.config import JAVASCRIPTS + try: + from Products.<dtml-var "package.getProductModuleName()">.config import JAVASCRIPTS portal_javascripts = getToolByName(portal, 'portal_javascripts') for javascript in JAVASCRIPTS: try: ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click