#2 — AttributeError when trying to uninstall a theme on Plone 2.5

by Nate Aune last modified Feb 21, 2009 09:13 PM
State Tested and confirmed closed
Version: 2.1
Area Functionality
Issue type Bug
Severity Medium
Submitted by Nate Aune
Submitted on Jul 20, 2006
Responsible David Convent
Target release:


I created a new theme using the bin/generator.py script with the latest DIYPloneStyle from svn trunk, and successfully installed the new theme in my Plone site. However, when I try to uninstall the theme, the following error occurs. I'm using Plone 2.5 final release.

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 527, in reinstallProducts
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 510, in uninstallProducts
  Module Products.CMFQuickInstallerTool.InstalledProduct, line 278, in uninstall
  Module Products.ExternalMethod.ExternalMethod, line 225, in __call__
   - __traceback_info__: ((<PloneSite at /sites/oblates>,), {}, None)
  Module /usr/misc/zope/instances/zope29-plone25-staging/Products/OblatesTheme/Extensions/Install.py, line 22, in uninstall
  Module Products.OblatesTheme.Extensions.utils, line 131, in resetResources
AttributeError: _data
Added by David Convent on Jul 25, 2006 11:32 PM
Responsible manager: (UNASSIGNED)davconvent
Severity: LowMedium
Target release: 2.1.3None
I could not reproduce the error with a skin I created.

The error sounds very strange, _data is the attribute where all basic values of any registered resource in both the css and js registries are stored, so a registered registry should definitely have that attribute.

Did you modify your skin before trying to uninstall it?

Did you run the tests of DIYPloneStyle and/or the generated product with same error?
Added by Shaun Hills on Jul 27, 2006 02:27 PM
We get what appears to be the same type of error when trying to reinstall a skin based on DIYPloneStyle (latest released version, not SVN). Steps taken were:

1) Made some changes to add 2 Javascripts to portal_javascripts, and also to unregister ploneCustom.css, deprecated.css etc from portal_css. Added a couple of images to skin.

2) svn commit, svn update on server

3) Reinstall in portal_quickinstaller

4) AttributeError, traceback attached

5) Same problem if trying uninstall rather than reinstall

Creating a new Plone on the same Zope and installing then reinstalling the skin doesn't produce the same error, which leads me to believe it may have been something to do with the svn update. But this isn't an issue I've seen with DIYPlonestyle-based skins before, nor am I 100% sure how to resolve it (ideas welcome ;-)
Added by (anonymous) on Aug 01, 2006 04:01 PM
1. Create a Product using default name "MyTheme".
2. Copy the MyTheme folder to NewName
3. Change all instances of "MyTheme" to "NewName" in scripts, templates, etc.
4. Install NewName Product.
5. Uninstall NewName... see the error.

--HTH
Added by David Convent on Aug 04, 2006 07:58 PM
mmh, to me it looks like an issue covered in the documentation, see point 3 in
http://plone.org/[…]/troubleshooting

Although I agree that being able to modify any css or js resource id/name and still being able to reinstall the theme is a 'must have' feature.

The only way I could reproduce the same error was to add or modify either a css or a javascript in general product configuration (in config.py and /skins/*).

This was fixed in svn trunk.

Please test that you can now freely edit config.py according to modified file names on the file system (or added files) and reinstall the product without error.

Note -- If you modified config.py, you have to refresh your product or restart your Zope server in order to get your changes loaded and have the quick_installer behave gracefully.

I don't think there is much I can do to fix any error that would araise if you renamed your product folder in your Zope Products directory before uninstalling your theme.

No responses can be added.