[ZCM] [ZC] 1753/ 2 Reject "Aquisition problem?"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Wed Apr 13 15:30:59 EDT 2005


Issue #1753 Update (Reject) "Aquisition problem?"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1753

==============================================================
= Reject - Entry #2 by tseaver on Apr 13, 2005 3:30 pm

 Status: Pending => Rejected

None of the Control_Panel's ZMI views are broken for me in a
Zope 2.8 head checkout without the PlacelessTranslationService
product;  in that case, without more detail, you need to refer
the issue to the PTS author.

That bit of code (peering at
http://svn.plone.org/collective/PlacelessTranslationService/tags/v1_0_1/PlacelessTranslationService.py
) looks tricky -- I can't tell at all what it is supposed
to be doing, so I can't suggest how to fix it.
________________________________________
= Request - Entry #1 by jdoyon on Apr 13, 2005 2:37 pm

Using Zope 2.8 Alpha 2 and PTS 1.0.1, I can't seem to look at the management interface in the control planel.

I get the following error:

An error was encountered while publishing this resource.

exceptions.AttributeError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 187, in publish_module_standard
    * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish
    * Module ZPublisher.Publish, line 144, in publish
    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.PlacelessTranslationService.PlacelessTranslationService, line 622, in manage_main
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 346, in _bindAndExec
    * Module Shared.DC.Scripts.Bindings, line 1, in ?
    * Module Shared.DC.Scripts.Bindings, line 265, in _getContext

AttributeError: aq_parent

-------

The offending line of code is:

    def manage_main(self, REQUEST, *a, **kw):
        """
        Wrap Folder's manage_main to render international characters
        """
        # ugh, API cruft
        if REQUEST is self and a:
            REQUEST = a[0]
            a = a[1:]
>>>>>>  r = Folder.manage_main(self, self, REQUEST, *a, **kw)
        if type(r) is UnicodeType:
            r = r.encode('utf-8')
        REQUEST.RESPONSE.setHeader('Content-type', 'text/html; charset=utf-8')
        return r

Sorry I can't be more helpful, but aquisition internals are something I stay away from :P

PTS 1.0.1 works just fine in Zope 2.7.4 (Not tried with 2.7.5 yet).

Nothing in the 2.8 CHANGELOG jumps out as being an obvious possible cause (to me).

The translation itself (with i18n: in ZPT's) works OK, so it looks like it's just the management interface as far as this product is concerned.
==============================================================



More information about the Zope-Collector-Monitor mailing list