AttributeError: aq_parent on images in Data table (on ZMS content root object)

Niels Dettenbach <[email protected]> Mon, 17 Oct 2011 16:21:12 +0200
Newsgroups gmane.comp.cms.zms.devel
Organization Syndicat IT&Internet
Message-ID <1998897.ftb7RmLFzR@gongo>
Dear all,


working with ZMS2 2.13.4.1651 (Build #134c) i get the following error page / log output when clicking on "edit" on a table row of a data table defined on / extending the ZMS (content) object. 

The table uses strings, integers and an image object in each row. Other (non-image/blob) data fields could be accessed as usual / expected by my code.

The same happens when i try to access the image blob by URI within a table row of a data table by my code.

It seems the getHref (URI) could not be rendered properly.

Is this a ZMS problem or something related to Python 2.6 (what i did not assume here)? 

Is this solved in a newer build/version of ZMS?


--- schnipp ---
Traceback (most recent call last):
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Try.py", line 149, in render_try_except
result = render_blocks(self.section, md)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Let.py", line 77, in render
return render_blocks(self.section, md)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Util.py", line 202, in eval
return eval(code, d)
File "", line 1, in
File "/var/zope/****/Products/zms/_objattrs.py", line 417, in getObjAttrInput
return self.f_selectImage(self,ob=self,fmName=fmName,elName=elName,value=value,key=obj_attr['id'],metaObj=metaObj,lang=lang,REQUEST=REQUEST)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/App/special_dtml.py", line 72, in __call__
(self,)+args[1:],kw)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_String.py", line 477, in __call__
try: result = render_blocks(self._v_blocks, md)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Let.py", line 77, in render
return render_blocks(self.section, md)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Try.py", line 140, in render
return self.render_try_except(md)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Try.py", line 174, in render_try_except
return render_blocks(handler, md)
File "/opt/zope212/lib/python2.6/site-packages/Zope2-2.12.14-py2.6-linux-x86_64.egg/DocumentTemplate/DT_Util.py", line 202, in eval
return eval(code, d)
File "", line 1, in
File "/var/zope/****/Products/zms/_blobfields.py", line 736, in getHref
parent = self.aq_parent
AttributeError: aq_parent
--- schnapp ---



--- schnipp ---
2011-10-17T16:07:18 ERROR Zope.SiteErrorLog 1318860438.260.571140901392 
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module OFS.DTMLMethod, line 150, in __call__
   - <DTMLMethod at /apool/****/content/index_ger.html>
   - URL: http://****/index_ger.html/manage_main
   - Physical Path: /apool/****/content/index_ger.html
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module App.special_dtml, line 72, in __call__
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module DocumentTemplate.DT_Let, line 77, in render
  Module App.special_dtml, line 72, in __call__
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module OFS.DTMLMethod, line 141, in __call__
   - <DTMLMethod at /apool/****/standard_html_header used for /apool/****/content>
   - URL: http://****/standard_html_header/manage_main
   - Physical Path: /apool/****/standard_html_header
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module OFS.DTMLMethod, line 141, in __call__
   - <DTMLMethod at /apool/****/background_img used for /apool/****/content>
   - URL: http://****/background_img/manage_main
   - Physical Path: /apool/****/background_img
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module DocumentTemplate.DT_Util, line 202, in eval
   - __traceback_info__: img
  Module <string>, line 1, in <expression>
  Module Products.zms._blobfields, line 736, in getHref
AttributeError: aq_parent
--- schnapp ---


many thanks in advance for your time.


best regards,




Niels.

-- 
---
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com/
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)

iQIcBAABCAAGBQJOnDnbAAoJEM78prARigUnF+kP/AnstJQs2Ra0HJaDz6tzPnu9
fQV0ybOIHqwqxdX5Mn1Eq/0gMcFQdlE2I75TIe2JZDuXROP7SPHl9HuGZzz2j862
O9jCRWmGGl5yBJ6Bp8QBSl5hUqkExJxvdLiZedAa48vOSpzETCcdmAOGbrDFWciK
y/9JxdtL349o9JWz8HHXQivo4XCkodT4GuKa1W55HLy7AtkWlWjg+YIhQnN6mkoB
3T6kENiRjhJst1ZOTStsOgBuXCaC8vZchYciTw3bVOK61hBv+uxesjHdrXb8V7NG
R2Rx6gcwJ7aVc/Dm3CZKrWe9zPsTn8hslLxR1yUeAzRGKG7A+0uW7NYPMk/OiVgl
T5iYMRbVgfImpAWkN16/AQ5t+BDHiyvbit2ZtNxPAob0FuVtYF4fEWWYWunsE2Kk
OWbvlwEP+xzjQ5djM5Alipt5xWLij+gHBZ4fqh2UfvNIPhhYVmSKbBFx98Ng+bo7
JuZrUZdusSHi22WOvLl4NDP2h7zlEAqG43mG+DlXxqU53eBMIkOANjwDmCU9gqjD
pKywQqo0Oc3GbJcKb57bNUX7TCfi0OWVVJA/cZqg7QG84D2o+4utW6VMJPwo0jqw
Wj586VgQGX0SXl22R0npS2xeKK7IZnwFsMod/6rrHUJkV46vouiVgb2Wr5W4g4TA
3lsqKoh5w2vj5Xgx1Ayc
=bN30
-----END PGP SIGNATURE-----