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

Niels Dettenbach <[email protected]> Thu, 17 Nov 2011 16:54:17 +0100
Newsgroups gmane.comp.cms.zms.devel
Organization Syndicat IT&Internet
Message-ID <5134018.8jL5C8lKzI@gongo>
...just in addition:


with the current ZMS version 2.13.4.1733 (Build #134c) the aq_parent problem in getHref seems solved so far.

But if i try to access getHref from the templates onto the same blob i can render all non blob fields and even getFilename() but getHref() gives out a 

	Error Value: key

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 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/alpinres/standard_html_header used for /apool/alpinres/content>
   - URL: http://work.alpinres.org/standard_html_header/manage_main
   - Physical Path: /apool/alpinres/standard_html_header
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module OFS.DTMLMethod, line 141, in __call__
   - <DTMLMethod at /apool/alpinres/background_img used for /apool/alpinres/content>
   - URL: http://work.alpinres.org/background_img/manage_main
   - Physical Path: /apool/alpinres/background_img
  Module DocumentTemplate.DT_String, line 477, in __call__
  Module DocumentTemplate.DT_Let, line 77, in render
  Module DocumentTemplate.DT_Let, line 77, in render
  Module DocumentTemplate.DT_Let, line 77, in render
  Module DocumentTemplate.DT_In, line 707, in renderwob
  Module DocumentTemplate.DT_Let, line 77, in render
  Module DocumentTemplate.DT_Util, line 202, in eval
   - __traceback_info__: REQUEST
  Module <string>, line 1, in <module>
  Module Products.zms._blobfields, line 737, in getHref
AttributeError: key


It seems       

	key = self.key 

could not get rendered properly there (so it seems there still is a small bug somewhere).


may be that helps

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)

iQIcBAABCAAGBQJOxS4pAAoJEM78prARigUnpKEP/ROJG/eeh26M9BarSdYKREJy
KCqWydc+47a/E014xA4mRGXTGHMuE75CtdC4JSDp6w0MIJzEXamm4jzivHE5O0Vu
5Vof0dtUtcee0KFw3Sc/2Y9WFny0sExUteyXAgB4SVoshUcOJG7YGla9deNvi1Dj
RwYQPROV/Ko/LIepXGoe4Bnu/J87Uo6rUXCukqm2D9eJdTwjk//UGOtZIccIMqp3
c9tvQfnBEoHSJj7U7dtpDzUCLgYA7DEv3uZcRblRPEq8qObl1GuWOb5zooIn+E+b
OnA0dgcZh+aS/Af0A1OXiBkm6lYpr5DXc7Fvj80Bbcs5UGtRhAysgj3U4IEzFCiM
+wAl3ihSBrs4C0357ZhmoheCVNP16vM4HJnK6HrCBUIFH5Z/uWT4LUsJ1yB4RZeO
iJhQ9wy3rJh3tpuhO/AW6tX9tPrapBEYwmsJ/kG7iXOTN+1AQ2tXDE9hQvtxUd13
+AIWX/XNZa5GoztnNx3eOH9lctrObS+nw9DO297fd6rEJV0Bl4ETeH3X+FT5fyOJ
szz6hJ2gGexqdVv1T6kj/xvpSIFydH8RUXD65OpQFTcFnVmGnqc3CiK2JkbS96Nc
qxz9VAl5N7y7+NpeUU5pXwKX9fPsN1BhdaY8QabUcwQcrkEGFMVu5Lb2uJ5zyeoU
PaJEjahAd+xEY4hmNGuh
=Cqa/
-----END PGP SIGNATURE-----