#3 — Missing 'iqpp: rate' and possibly other permissions from iqpp.rating

by Justin Ryan last modified Feb 21, 2009 09:20 PM
State Confirmed
Version: 2.0
Area Functionality
Issue type Bug
Severity Medium
Submitted by Justin Ryan
Submitted on Aug 06, 2007
Responsible Kai Diefenbach
Target release:
When trying to install EasyRating, I get this traceback:

2007-08-06 06:25:19 ERROR Zope.SiteErrorLog https://zope.qutang.net/[…]/installProducts
Traceback (innermost last):
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 333, in installProduct
   - __traceback_info__: ('EasyRating',)
  Module Products.ExternalMethod.ExternalMethod, line 225, in __call__
   - __traceback_info__: ((<PloneSite at /plone-sites/vongogo.org/portal>,), {}, None)
  Module /home/zope/bundles/Products-p25/EasyRating/Extensions/Install.py, line 17, in install
  Module Products.GenericSetup.tool, line 252, in runAllImportSteps
   - __traceback_info__: profile-Products.EasyRating:EasyRating
  Module Products.GenericSetup.tool, line 766, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 732, in _doRunImportStep
   - __traceback_info__: easyrating
  Module Products.EasyRating.profiles.setuphandlers, line 19, in importVarious
  Module Products.CacheSetup.patch, line 139, in manage_permission
  Module Products.CacheSetup.patch_utils, line 6, in call
  Module <string>, line 8, in _facade
  Module AccessControl.requestmethod, line 63, in _curried
  Module AccessControl.Role, line 196, in manage_permission
ValueError: The permission <em>iqpp.rating: rate</em> is invalid.
2007-08-06 06:25:21 CRITICAL txn.-1289716816 A storage error occurred during the second phase of the two-phase commit. Resources may be in an inconsistent state.
2007-08-06 06:25:21 ERROR Zope.SiteErrorLog https://zope.qutang.net/[…]/installProducts
Traceback (innermost last):
  Module ZPublisher.Publish, line 121, in publish
  Module Zope2.App.startup, line 240, in commit
  Module transaction._manager, line 96, in commit
  Module transaction._transaction, line 380, in commit
  Module transaction._transaction, line 378, in commit
  Module transaction._transaction, line 441, in _commitResources
  Module ZODB.Connection, line 679, in tpc_finish
  Module ZEO.ClientStorage, line 974, in tpc_finish
  Module ZEO.ClientStorage, line 999, in _update_cache
  Module ZEO.cache, line 367, in invalidate
AssertionError
2007-08-06 06:25:35 INFO Signals Caught signal SIGINT
2007-08-06 06:25:35 INFO Z2 Shutting down
[zope@theplanet zope-instance-manage]$ cd ~/python/2.4.4/lib/python2.4/site-packages/iqpp.rating-0.1dev-py2.4.egg/
[zope@theplanet iqpp.rating-0.1dev-py2.4.egg]$ ls
EGG-INFO iqpp
[zope@theplanet iqpp.rating-0.1dev-py2.4.egg]$ grep -r iqpp\.rating\: .
./iqpp/rating/configure.zcml: title = "iqpp.rating: rate" />
./iqpp/rating/configure.zcml: title = "iqpp.rating: details" />
./iqpp/rating/configure.zcml: title = "iqpp.rating: manage rating" />
[zope@theplanet iqpp.rating-0.1dev-py2.4.egg]$

Maybe this happens because of an setup.py install, versus just moving iqpp dir to lib/python ?
Steps to reproduce:
install iqpp.rating into zope's python using setup.py
try to install EasyRating into a site
see above error
Added by Kai Diefenbach on Aug 07, 2007 11:44 AM
Issue state: unconfirmedopen
Responsible manager: (UNASSIGNED)diefenbach
> Maybe this happens because of an setup.py install, versus just moving iqpp dir to lib/python ?

Yes, I think this is true. Will check this soon. Thanks.
Added by dennisharrison on Sep 09, 2007 11:21 PM
Any more info on this? Or is there a new way of getting Easy Ratings to work in plone2.5 ?

Are there eggs for use yet?
Added by Christian Ledermann on Oct 18, 2007 08:45 AM
I get the same error when I upgraded from Plone 2.5.3 to 2.5.4 with easyrating 1.0b3 when trying to reinstall:


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.GenericSetup.tool, line 432, in manage_importAllSteps
  Module Products.GenericSetup.tool, line 252, in runAllImportSteps
   - __traceback_info__: profile-Products.EasyRating:EasyRating
  Module Products.GenericSetup.tool, line 766, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 732, in _doRunImportStep
   - __traceback_info__: easyrating
  Module Products.EasyRating.profiles.setuphandlers, line 19, in importVarious
  Module <string>, line 8, in _facade
  Module AccessControl.requestmethod, line 63, in _curried
  Module AccessControl.Role, line 196, in manage_permission
ValueError: The permission <em>iqpp.rating: rate</em> is invalid.
Added by Christian Ledermann on Oct 18, 2007 09:02 AM
commenting out the "iqpp.rating: rate" in configure.zcml does not change anything so i guess this throws the exeption:

EasyRating/profiles/setuphandlers.py: portal.manage_permission('iqpp.rating: rate', ["Anonymous", "Member"], 1)
Added by Christian Ledermann on Oct 18, 2007 09:11 AM
Clarification: the above error was thrown by portal_setup when reimporting.

the quickinstaller throws this error:

Traceback (most recent call last):

  File "/usr/local/zope-instances/plone2.5/Products/CMFQuickInstallerTool/QuickInstallerTool.py", line 333, in installProduct
    res=install(portal)

  File "/usr/local/lib/zope-2.9/lib/python/Products/ExternalMethod/ExternalMethod.py", line 225, in __call__
    try: return f(*args, **kw)

  File "/usr/local/zope-instances/plone2.5/Products/EasyRating/Extensions/Install.py", line 17, in install
    setup_tool.runAllImportSteps()

  File "/usr/local/zope-instances/plone2.5/Products/GenericSetup/tool.py", line 252, in runAllImportSteps
    return self._runImportStepsFromContext(context, purge_old=purge_old)

  File "/usr/local/zope-instances/plone2.5/Products/GenericSetup/tool.py", line 766, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)

  File "/usr/local/zope-instances/plone2.5/Products/GenericSetup/tool.py", line 732, in _doRunImportStep
    return handler(context)

  File "/usr/local/zope-instances/plone2.5/Products/EasyRating/profiles/setuphandlers.py", line 19, in importVarious
    portal.manage_permission('iqpp.rating: rate', ["Anonymous", "Member"], 1)

  File "", line 8, in _facade

  File "/usr/local/lib/zope-2.9/lib/python/AccessControl/requestmethod.py", line 63, in _curried
    return callable(*args, **kw)

  File "/usr/local/lib/zope-2.9/lib/python/AccessControl/Role.py", line 196, in manage_permission
    raise ValueError, (

ValueError: The permission iqpp.rating: rate is invalid.

No responses can be added.