[PEAK] Dispatch
Alain Poirier
alain.poirier at net-ng.com
Tue Mar 28 07:46:05 EST 2006
Hi Phillip,
Using RuleDispatch with Zope 2.x, I've got the problem that the
'isinstance()' rule doesn't accept a Zope extension class.
Do you think it could be possible to fix this problem ?
Thanks,
"""
...
File "build/bdist.linux-i686/egg/dispatch/functions.py", line 690, in when
File "build/bdist.linux-i686/egg/dispatch/functions.py", line 577, in
_decorate
File "<string>", line 10, in parseRule
File "build/bdist.linux-i686/egg/dispatch/functions.py", line 440, in
parseRule
File "build/bdist.linux-i686/egg/dispatch/functions.py", line 326, in
parse
File "build/bdist.linux-i686/egg/dispatch/ast_builder.py", line 383, in
parse_expr
File "build/bdist.linux-i686/egg/dispatch/ast_builder.py", line 378, in
build
File "build/bdist.linux-i686/egg/dispatch/ast_builder.py", line 51, in
com_binary
File "build/bdist.linux-i686/egg/dispatch/predicates.py", line 611, in And
File "build/bdist.linux-i686/egg/dispatch/ast_builder.py", line 378, in
build
File "build/bdist.linux-i686/egg/dispatch/ast_builder.py", line 178, in
power
File "build/bdist.linux-i686/egg/dispatch/ast_builder.py", line 284, in
com_call_function
File "build/bdist.linux-i686/egg/dispatch/predicates.py", line 547, in
method
File "<string>", line 5, in expressionSignature
File "build/bdist.linux-i686/egg/dispatch/predicates.py", line 721, in
convertIsInstanceToClassCriterion
File "build/bdist.linux-i686/egg/protocols/interfaces.py", line 298, in
__call__
File "_speedups.pyx", line 198, in _speedups.Protocol__call__
File "_speedups.pyx", line 183, in _speedups._adapt
AdaptationFailure: ("Can't adapt", <extension class
pjsproduct_zb.pjsproduct.CPJSProduct at b5aeb7a0>, <class
'dispatch.interfaces.ICriterion'>)
"""
More information about the PEAK
mailing list