CompoundField + ReferenceFields?
Andreas Jung <[email protected]> Fri, 19 May 2006 09:11:46 +0200
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <C0423C4E59163D90D1A0FEA2@[192.168.0.28]> |
Hi,
does anyone know if it possible to use ReferenceFields within a
CompoundField or ArrayField in a reasonable way? Combining both
fails with:
File
"/develop/sandboxes/unserding.de/Products/CMFCore/FSPageTemplate.py", line
195, in _exec
result = self.pt_render(extra_context=bound_names)
File "/develop/sandboxes/unserding.de/Products/CacheSetup/patch_cmf.py",
line 14, in FSPT_pt_render
return call_pattern(self, 'pt_render',
'__CacheSetup_FSPageTemplate_%s__', source, extra_context)
File
"/develop/sandboxes/unserding.de/Products/CacheSetup/patch_utils.py", line
9, in call_pattern
return getattr(self, pattern % __name__)(*args, **kw)
File
"/develop/sandboxes/unserding.de/Products/CMFCore/FSPageTemplate.py", line
134, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File "/develop/sandboxes/unserding.de/Products/CacheSetup/patch_cmf.py",
line 52, in PT_pt_render
return call_pattern(self, 'pt_render',
'__CacheSetup_PageTemplate_%s__', source, extra_context)
File
"/develop/sandboxes/unserding.de/Products/CacheSetup/patch_utils.py", line
9, in call_pattern
return getattr(self, pattern % __name__)(*args, **kw)
File
"/develop/sandboxes/unserding.de/Zope/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render
tal=not source, strictinsert=0)()
File
"/develop/sandboxes/unserding.de/Zope/lib/python/TAL/TALInterpreter.py",
line 206, in __call__
self.interpret(self.program)
File
"/develop/sandboxes/unserding.de/Zope/lib/python/TAL/TALInterpreter.py",
line 250, in interpret
handlers[opcode](self, args)
File
"/develop/sandboxes/unserding.de/Zope/lib/python/TAL/TALInterpreter.py",
line 477, in do_setLocal_tal
self.engine.setLocal(name, self.engine.evaluateValue(expr))
File
"/develop/sandboxes/unserding.de/Zope/lib/python/Products/PageTemplates/TALES.py",
line 221, in evaluate
return expression(self)
File
"/develop/sandboxes/unserding.de/Zope/lib/python/Products/PageTemplates/ZRPythonExpr.py",
line 47, in __call__
return eval(code, g, {})
File "Python expression "at_obj.Schema()[fieldRealName]"", line 1, in
<expression>
File
"/develop/sandboxes/unserding.de/Zope/lib/python/AccessControl/ZopeGuards.py",
line 67, in guarded_getitem
v = object[index]
File
"/develop/sandboxes/unserding.de/Products/Archetypes/Schema/__init__.py",
line 234, in __getitem__
return self._fields[name]
KeyError: 'votes 0|vote_reference_0'
Andreas
signature.asc
(application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEbW+zCJIWIbr9KYwRAmybAJwLL0nuAtako9dZlgLqO3j3hIMf5gCfXAgf 3OFwt1g8YItvO1nkUs9rm88= =yBm0 -----END PGP SIGNATURE-----