Re: Plone & ZMI -Properties: Unicode, UTF-8, Encoding-Wirrwarr

Andreas Gabriel <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization Hochschulrechenzentrum Philipps-Universitaet Marburg
Message-ID <[email protected]>
Andreas Gabriel schrieb:
>   from Products.PageTemplates.PageTemplateFile import PageTemplateFile
> 
> in OFS/PropertyManager.py nicht.
> 
> Unterliege ich einem Henne/Ei-Problem und wie löse ich das?

Es liegt tatsächlich an einem "circular import". Hmm!

In  Products/PageTemplates/PageTemplateFile/__init__.py

wird

[snip]
# import ZTUtils in order to make i importable through
# ZopeGuards.load_module() where an importable modules must be
# available in sys.modules
import ZTUtils
[snip]

aufgerufen, das zu genanntem Fehler führt.
Würde es nicht reichen ZTUtils innerhalb von initialize aufzurufen?

z.B.

[snip]

def initialize(context):
    import ZTUtils
    # Import lazily, and defer initialization to the module
    import ZopePageTemplate
    ZopePageTemplate.initialize(context)

[snip]

Danke & Gruß
Andreas




-- 
Dr. Andreas Gabriel, Hochschulrechenzentrum, http://www.uni-marburg.de/hrz
Hans-Meerwein-Str., 35032 Marburg,  fon +49 (0)6421 28-23560  fax 28-26994
-------------------- Philipps-Universitaet Marburg -----------------------



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.