collective / Products.LoginLockout

Prevents endless login attempts in Plone, making it more secure.
https://pypi.python.org/pypi/Products.LoginLockout
2 stars 7 forks source link

Old style Tool registration is moved to generic setup based tool registration. #8

Closed nazrulworld closed 6 years ago

nazrulworld commented 6 years ago

When I run the test got bellows errors:

File "*******/.cache/buildout/eggs/Products.GenericSetup-1.8.8-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
   - __traceback_info__: Products.LoginLockout.various
  File "*******/www/python/CONTRIBUTIONS_FOLDER/Products.LoginLockout/Products/LoginLockout/setuphandlers.py", line 141, in setupVarious
    install(site)
  File "*********/www/python/CONTRIBUTIONS_FOLDER/Products.LoginLockout/Products/LoginLockout/setuphandlers.py", line 44, in install
    addTool(portal, PROJECTNAME, TOOL_ID)
  File "*********www/python/CONTRIBUTIONS_FOLDER/Products.LoginLockout/Products/LoginLockout/setuphandlers.py", line 109, in addTool
    portal.manage_addProduct[product_name].manage_addTool(
AttributeError: manage_addTool

Solution I did: make a file toolset.xml inside profile directory and let genericsetup to handle the tool registration.