I'm trying to modify getpaid.discount so users who define a discount code can enter two per item instead of one. To make this change I've tried starting with a clean buildout but am running into some issues.
The first looks like a stray checkin of expercash. Removing references to it in 335.cfg gets past the issue (I'll check in the updated cfg file)
The second issue looks like version conflicts. If I include getpaid.discount, I need to pin zope.container = 3.8.1. Should I make this change in 335.cfg or someplace else?
The third issue is the one that has me stumped. If I include getpaid.discount in the sources.cfg:eggs, base.cfg:autocheckout and base.cfg:zcml then I get this error on startup:
Traceback (most recent call last):
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
self.startZope()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 278, in startZope
Zope2.startup()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Zope2/__init__.py", line 47, in startup
_startup()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Zope2/App/startup.py", line 102, in startup
OFS.Application.initialize(application)
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/OFS/Application.py", line 309, in initialize
initializer.initialize()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/OFS/Application.py", line 338, in initialize
self.install_products()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/OFS/Application.py", line 603, in install_products
return install_products(app)
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/OFS/Application.py", line 634, in install_products
folder_permissions, raise_exc=debug_mode)
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/OFS/Application.py", line 786, in install_product
initmethod(context)
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Products/Five/__init__.py", line 28, in initialize
zcml.load_site()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/Products/Five/zcml.py", line 53, in load_site
_context = xmlconfig.file(file)
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 581, in file
context.execute_actions()
File "/Users/roblarubbio/projects/getpaid.buildout/parts/zope2/lib/python/zope/configuration/config.py", line 612, in execute_actions
callable(*args, **kw)
File "/Users/roblarubbio/.buildout/eggs/Products.PlacelessTranslationService-1.5.4-py2.4.egg/Products/PlacelessTranslationService/patches.py", line 44, in handler
domain.addCatalog(catalog)
zope.configuration.config.ConfigurationExecutionError: exceptions.AttributeError: 'PTSTranslationDomain' object has no attribute 'addCatalog'
in:
File "/Users/roblarubbio/projects/getpaid.buildout/src/getpaid.discount/src/getpaid/discount/configure.zcml", line 6.1-6.49
<i18n:registerTranslations directory="locales"/>
Anyone have any thoughts or suggestions? Thanks.