zc.sourcefactory doesn't work out of the box
Bug #319546 reported by
Jeroen Michiel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If you add zc.sourcefactoy to install_requires in setup.py, it gets the latest version (0.4.0), which doesn't seem to be compatible with the other components grok uses.
If you use a schema.Choice field with a BasicSourceFactory, you get the error
ComponentLookup
Pinning its version to 0.3.5 solves it, but perhaps we should try and use the latest version?
To post a comment you must log in.
With an actual fresh grokproject it seems that pinning to 0.3.5 does not work any longer.
File "/opt/zope/ fencing/ vmmanager/ eggs/zope. component- 3.4.0-py2. 5.egg/zope/ component/ _api.py" , line 103, in getMultiAdapter Error(objects, interface, name) Error: ((<zc.sourcefac tory.source. FactoredContext ualSource object at 0xaef0bac>, <zope.publisher .browser. BrowserRequest instance URL=http:// localhost: 8080/test/ kvmManager/ add>), <InterfaceClass zope.browser. interfaces. ITerms> , u'')
raise ComponentLookup
ComponentLookup