<DIV>unsubscribe<BR><BR><B><I>zope-request@zope.org</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Send Zope mailing list submissions to<BR>zope@zope.org<BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>http://mail.zope.org/mailman/listinfo/zope<BR>or, via email, send a message with subject or body 'help' to<BR>zope-request@zope.org<BR><BR>You can reach the person managing the list at<BR>zope-owner@zope.org<BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of Zope digest..."<BR><BR><BR>Today's Topics:<BR><BR>1. Re: Module security assertions fail (Dieter Maurer)<BR>2. Re: Module security assertions fail (Josef Albert Meile)<BR>3. Adding zope object-references to content on file system?<BR>(Alan Ezust)<BR>4. Re: Adding zope object-references to content on file system?<BR>(Paul Winkler)<BR>5. Symantec AVF detected a repairable/quarantined virus in a<BR>message you sent (Marty Bauer)<BR>6. Re: Module security assertions
 fail (Matt Hamilton)<BR>7. Z MySQL database adapter (Aaron)<BR>8. Re: Z MySQL database adapter (robert rottermann)<BR>9. VIRUS IN YOUR MAIL (postmaster@rproxy2.ccu.edu.tw)<BR>10. Re: Module security assertions fail (Josef Meile)<BR>11. Re: Module security assertions fail (Stefan H. Holek)<BR>12. Re: Module security assertions fail (Josef Meile)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Sat, 1 May 2004 20:46:27 +0200<BR>From: Dieter Maurer <DIETER@HANDSHAKE.DE><BR>Subject: Re: [Zope] Module security assertions fail<BR>To: "Josef Albert Meile" <JMEILE@HOTMAIL.COM><BR>Cc: zope@zope.org<BR>Message-ID: &lt;16531.61571.935309.346645@gargle.gargle.HOWL&gt;<BR>Content-Type: text/plain; charset=us-ascii<BR><BR>Josef Albert Meile wrote at 2004-5-1 17:31 +0200:<BR>&gt; ...<BR>&gt;I have two packages "TranslationUtils" and "JMZPTMacros", which I want to <BR>&gt;use from a zope product. I have implemented the module and class
 security <BR>&gt;assertions as indicated on the Zope Developer's Gide, but I got always an <BR>&gt;Unauthorized error (see the traceback attached at the bottom of this <BR>&gt;message).<BR>&gt; ....<BR>&gt;-----&gt;Begin of MyInstanceHome/Products/JMUtils/TranslationUtils.py<BR>&gt;<BR>&gt;from AccessControl import ModuleSecurityInfo<BR>&gt;security=ModuleSecurityInfo()<BR>&gt;<BR>&gt;security.declarePublic('checkTranslationService')<BR>&gt; ...<BR>&gt; Module Products.PageTemplates.Expressions, line 340, in restrictedTraverse<BR>&gt; - __traceback_info__: {'path': ['Products', 'JMUtils', <BR>&gt;'TranslationUtils'], 'TraversalRequestNameStack': []}<BR>&gt;Unauthorized: You are not allowed to access 'TranslationUtils' in this <BR>&gt;context<BR><BR>"ModuleSecurityInfo" is really convoluted and difficult to grasp.<BR><BR>Try to
 replace:<BR><BR>security=ModuleSecurityInfo()<BR>security.declarePublic('checkTranslationService')<BR><BR>by:<BR><BR>security=ModuleSecurityInfo('Products.JMUtils.TranslationUtils')<BR>security.declarePublic('checkTranslationService')<BR><BR>If necessary, also add <BR><BR>ModuleSecurityInfo('Products').declarePublic('JMUtils')<BR>ModuleSecurityInfo('Products.JMUtils').declarePublic('TranslationUtils')<BR><BR><BR>Ensure that "TranslationUtils" is imported by your "__init__".<BR>Otherwise, security declaration defined inside "TranslationUtils.py"<BR>are not executed and therefore do not take effect.<BR><BR>-- <BR>Dieter<BR><BR><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Sat, 01 May 2004 22:09:01 +0200<BR>From: "Josef Albert Meile" <JMEILE@HOTMAIL.COM><BR>Subject: Re: [Zope] Module security assertions fail<BR>To: dieter@handshake.de<BR>Cc: zope@zope.org<BR>Message-ID: <BAY13-F89S5CRTYBK1C000017AA@HOTMAIL.COM><BR>Content-Type: text/plain;
 format=flowed<BR><BR>&gt;"ModuleSecurityInfo" is really convoluted and difficult to grasp.<BR>&gt;<BR>&gt;Try to replace:<BR>&gt;<BR>&gt; security=ModuleSecurityInfo()<BR>&gt; security.declarePublic('checkTranslationService')<BR>&gt;<BR>&gt;by:<BR>&gt;<BR>&gt; security=ModuleSecurityInfo('Products.JMUtils.TranslationUtils')<BR>&gt; security.declarePublic('checkTranslationService')<BR>&gt;<BR>&gt;If necessary, also add<BR>&gt;<BR>&gt; ModuleSecurityInfo('Products').declarePublic('JMUtils')<BR>&gt; <BR>&gt;ModuleSecurityInfo('Products.JMUtils').declarePublic('TranslationUtils')<BR>&gt;<BR>&gt;<BR>&gt;Ensure that "TranslationUtils" is imported by your "__init__".<BR>&gt;Otherwise, security declaration defined inside "TranslationUtils.py"<BR>&gt;are not executed and therefore do not take effect.<BR>Hi Dieter,<BR><BR>Thanks for your reply. Finally I got working. I did everything what you <BR>said, but it didn't work either. So, I just replace:<BR><BR><SPAN tal:define="TranslationUtils
 <br>modules/Products/JMUtils/TranslationUtils;"><BR>Something comes here<BR></SPAN><BR><BR>by its python equivalent:<BR><BR><SPAN tal:define="TranslationUtils <br>python:modules['Products.JMUtils.TranslationUtils'];"><BR>Something comes here<BR></SPAN><BR><BR>and guess what, it worked. I find this behaviour wird because according to <BR>the Zope book both statements should do the same. I will try to do a small <BR>test file and submit it again here, so, we can see either it's my error or a <BR>bug on zope.<BR><BR>Regards,<BR>Josef<BR><BR>_________________________________________________________________<BR>STOP MORE SPAM with the new MSN 8 and get 2 months FREE* <BR>http://join.msn.com/?page=features/junkmail<BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Sat, 1 May 2004 18:21:01 -0400<BR>From: Alan Ezust <ZOPE@ODDIOFILE.COM><BR>Subject: [Zope] Adding zope object-references to content on file<BR>system?<BR>To: zope@zope.org<BR>Message-ID:
 &lt;200405011821.01092.zope@oddiofile.com&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Hello everyone - I'm a zope newbie, teaching myself python at the same time.<BR><BR>I have a batch of docbook files and I generate a couple of hundred HTML files <BR>(processed a couple of steps through XSL transformations). It's 400+ pages, <BR>so importing/exporting will probably take quite a long time. I thought it <BR>would make sense to continue transforming the doc on the local file system <BR>and add a link to the file location from the Zope control center.<BR><BR>If I import the files, then I will have to remove and re-import the files each <BR>time I rebuild the document, which seems excessive... And I would need a <BR>command-line interface to do that anyway, because it makes no sense to add <BR>each file individually.<BR><BR>Is it possible to give zope server knowledge of trees of HTML on the local <BR>file system? How do I do that? Or is there a better way?<BR><BR>What
 other approaches are there to integrating large docbook documents inside <BR>Zope applications? I suspect it's not a good idea to store the XML source and <BR>dynamically generate docbook for each page, but I haven't tried that yet. <BR><BR>-- <BR>Alan Ezust <BR>ottawa, canada<BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 4<BR>Date: Sat, 1 May 2004 18:58:39 -0400<BR>From: Paul Winkler <PW_LISTS@SLINKP.COM><BR>Subject: Re: [Zope] Adding zope object-references to content on file<BR>system?<BR>To: zope@zope.org<BR>Message-ID: &lt;20040501225839.GA4567@slinkp.com&gt;<BR>Content-Type: text/plain; charset=us-ascii<BR><BR>On Sat, May 01, 2004 at 06:21:01PM -0400, Alan Ezust wrote:<BR>&gt; Is it possible to give zope server knowledge of trees of HTML on the local <BR>&gt; file system? How do I do that? Or is there a better way?<BR><BR>There are a couple ways.<BR>Filesystem Directory View ships with CMF but can be used independently.<BR>It gives a read-only view in
 Zope.<BR>LocalFS gives read-write access. Best version I know of can<BR>be found here http://www.easyleading.org/Downloads/<BR>If that gives you access denied (due to Andreas' blocking of<BR>several very large ISPs due to spam relaying), <BR>you can try the tarball here:<BR>http://cvs.easyleading.org/browse/LocalFS/<BR><BR>-- <BR><BR>Paul Winkler<BR>http://www.slinkp.com<BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 5<BR>Date: Sat, 1 May 2004 23:37:03 -0700 <BR>From: Marty Bauer <MBAUER@GRIC.COM><BR>Subject: [Zope] Symantec AVF detected a repairable/quarantined virus<BR>in a message you sent<BR>To: zope@zope.org<BR>Message-ID: &lt;025a01c4300f$e1802190$1f0014ac@ent.gric.com&gt;<BR>Content-Type: text/plain; charset="utf-8"<BR><BR>Subject of the message: RE: Protected message<BR>Recipient of the message: virii<BR><BR><BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 6<BR>Date: Sun, 02 May 2004 12:12:36 +0100<BR>From: Matt Hamilton
 <MATTH@NETSIGHT.CO.UK><BR>Subject: Re: [Zope] Module security assertions fail<BR>To: zope@zope.org<BR>Message-ID: &lt;4094D7A4.5030102@netsight.co.uk&gt;<BR>Content-Type: text/plain; charset=us-ascii; format=flowed<BR><BR>Josef Albert Meile wrote:<BR><BR>&gt; Thanks for your reply. Finally I got working. I did everything what you <BR>&gt; said, but it didn't work either. So, I just replace:<BR>&gt; <BR>&gt; <SPAN tal:define="TranslationUtils <br>> modules/Products/JMUtils/TranslationUtils;"><BR>&gt; Something comes here<BR>&gt; </SPAN><BR>&gt; <BR>&gt; by its python equivalent:<BR>&gt; <BR>&gt; <SPAN tal:define="TranslationUtils <br>> python:modules['Products.JMUtils.TranslationUtils'];"><BR>&gt; Something comes here<BR>&gt; </SPAN><BR>&gt; <BR>&gt; and guess what, it worked. I find this behaviour wird because according <BR>&gt; to the Zope book both statements should do the same. I will try to do a <BR><BR>Josef,<BR>I think the first case (TALES syntax) actually tries to *call* the
 <BR>modules TranslationUtils, whereas the latter (python syntax) doesn't -- <BR>it just references it. I think if you add a 'nocall' statement to the <BR>first case it will do what you want e.g.:<BR><BR><SPAN tal:define="TranslationUtils<br>  nocall:modules/Products/JMUtils/TranslationUtils;"><BR>Something comes here<BR></SPAN><BR><BR><BR>Regards,<BR>Matt<BR><BR><BR><BR>-- <BR>Matt Hamilton matth@netsight.co.uk<BR>Netsight Internet Solutions, Ltd. Business Vision on the Internet<BR>http://www.netsight.co.uk +44 (0)117 9090901<BR>Web Design | Zope/Plone Development &amp; Consulting | Co-location | Hosting<BR><BR><BR><BR>------------------------------<BR><BR>Message: 7<BR>Date: Sun, 02 May 2004 14:16:08 -0400<BR>From: Aaron <AAMEHL@BEZEQINT.NET><BR>Subject: [Zope] Z MySQL database adapter<BR>To: zope@zope.org<BR>Message-ID: &lt;1083521768.3858.5.camel@theone&gt;<BR>Content-Type: text/plain<BR><BR>HI<BR>I am new to Zope and have been trying to set up a connection from Zope<BR>to my
 Mysql datatbase.<BR><BR>Z MySQL database adapter asks that I have the _mysql extension<BR>installed. But I can't seem to get it to happen for me.<BR><BR>I don't have root permissions on the webhost. Is there anyway for me to<BR>install _mysql?<BR><BR><BR>Thanks<BR>Aaron<BR><BR><BR><BR>------------------------------<BR><BR>Message: 8<BR>Date: Sun, 02 May 2004 13:30:24 +0200<BR>From: robert rottermann <ROBERT@REDCOR.CH><BR>Subject: Re: [Zope] Z MySQL database adapter<BR>To: Aaron <AAMEHL@BEZEQINT.NET><BR>Cc: zope@zope.org<BR>Message-ID: &lt;4094DBD0.1010600@redcor.ch&gt;<BR>Content-Type: text/plain; charset=us-ascii; format=flowed<BR><BR>Aaron wrote:<BR><BR>&gt;HI<BR>&gt; I am new to Zope and have been trying to set up a connection from Zope<BR>&gt;to my Mysql datatbase.<BR>&gt;<BR>&gt;Z MySQL database adapter asks that I have the _mysql extension<BR>&gt;installed. But I can't seem to get it to happen for me.<BR>&gt;<BR>&gt;I don't have root permissions on the webhost. Is there anyway
 for me to<BR>&gt;install _mysql?<BR>&gt;<BR>&gt;<BR>&gt;Thanks<BR>&gt;Aaron<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;Zope maillist - Zope@zope.org<BR>&gt;http://mail.zope.org/mailman/listinfo/zope<BR>&gt;** No cross posts or HTML encoding! **<BR>&gt;(Related lists - <BR>&gt; http://mail.zope.org/mailman/listinfo/zope-announce<BR>&gt; http://mail.zope.org/mailman/listinfo/zope-dev )<BR>&gt;<BR>&gt;<BR>&gt; <BR>&gt;<BR>MySQLdb must be installed into the same python that is ued by your zope.<BR>So if you have installed Zope yourselb you should be able to install <BR>MuSQLdb as well.<BR>Otherwise you must ask the admin to do so.<BR><BR>Robert<BR><BR><BR><BR>------------------------------<BR><BR>Message: 9<BR>Date: Sun, 2 May 2004 19:57:23 +0800 (CST)<BR>From: postmaster@rproxy2.ccu.edu.tw<BR>Subject: [Zope] VIRUS IN YOUR MAIL<BR>To: zope@zope.org<BR>Message-ID: &lt;200405021157.i42BvNrh034735@rproxy2.ccu.edu.tw&gt;<BR><BR>V I R U S A L E R T<BR><BR>Our
 viruschecker found the<BR><BR>W32/Netsky.p@MM<BR><BR>virus(es) in your email to the following recipient(s):<BR><BR>-&gt; u9142060@ccu.edu.tw<BR><BR>Please check your system for viruses, or ask your system administrator<BR>to do so.<BR><BR>For your reference, here are the headers from your email:<BR><BR>------------------------- BEGIN HEADERS -----------------------------<BR>Return-Path: <ZOPE@ZOPE.ORG><BR>Received: from ccu.edu.tw (adsl-220-228-66-180.NH.sparqnet.net [220.228.66.180] (may be forged))<BR>by rproxy2.ccu.edu.tw (8.12.11/8.12.11av) with ESMTP id i42Bv3xw034653<BR>for <U9142060@CCU.EDU.TW>; Sun, 2 May 2004 19:57:05 +0800 (CST)<BR>(envelope-from zope@zope.org)<BR>From: zope@zope.org<BR>Message-Id: &lt;200405021157.i42Bv3xw034653@rproxy2.ccu.edu.tw&gt;<BR>To: u9142060@ccu.edu.tw<BR>Subject: Mail Delivery (failure u9142060@ccu.edu.tw)<BR>Date: Sun, 2 May 2004 19:57:14 +0800<BR>MIME-Version: 1.0<BR>Content-Type:
 multipart/related;<BR>type="multipart/alternative";<BR>boundary="----=_NextPart_000_001B_01C0CA80.6B015D10"<BR>X-Priority: 3<BR>X-MSMail-Priority: Normal<BR>-------------------------- END HEADERS ------------------------------<BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 10<BR>Date: Sun, 02 May 2004 17:37:51 +0200<BR>From: Josef Meile <JMEILE@HOTMAIL.COM><BR>Subject: [Zope] Re: Module security assertions fail<BR>To: zope@zope.org<BR>Message-ID: &lt;409515CF.4030103@hotmail.com&gt;<BR>Content-Type: text/plain; charset=us-ascii; format=flowed<BR><BR>Hi Matt,<BR><BR>thanks for your reply. I think what you said sounds convincent, but:<BR><BR>&gt; I think the first case (TALES syntax) actually tries to *call* the<BR>&gt; modules TranslationUtils, whereas the latter (python syntax) doesn't<BR>-- <BR>&gt; it just references it. I think if you add a 'nocall' statement to the<BR>&gt; first case it will do what you want e.g.:<BR>&gt;<BR>&gt; <SPAN
 tal:define="TranslationUtils<br> >   nocall:modules/Products/JMUtils/TranslationUtils;"><BR>&gt; Something comes here<BR>&gt; </SPAN><BR>This must be said on the zope book as well. On section python modules:<BR>http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx<BR><BR>You see that they import the module string as mstring then use the join<BR>method. They don't use the nocall statement, so I think with an own<BR>module should be the same. However, I read a little bit before this <BR>section and saw what you mean. I tried to do it as well and it didn't <BR>work either. The same Unauthorized exception was raised.<BR><BR>Here is a small test case I did:<BR><BR>----&gt;$Home_Instance/Products/FooContainer/FooPackage.py:<BR><BR>from AccessControl import ModuleSecurityInfo<BR><BR>#This three lines where suggested by Dieder.<BR>#I tried different versions and I got the same
 results<BR>security=ModuleSecurityInfo('Products.FooContainer.FooPackage')<BR>ModuleSecurityInfo('Products').declarePublic('FooContainer')<BR>ModuleSecurityInfo('Products.FooContainer').declarePublic('FooPackage')<BR><BR>security.declarePublic('foo')<BR>def foo():<BR>"""This is only a test"""<BR>return "Just a test function"<BR><BR>security.apply(globals())<BR><BR><BR>----&gt;$Home_Instance/Products/FooContainer/__init__.py<BR><BR>__doc__='''FooPackage'''<BR>__version__='0.1'<BR><BR>#Here I'm importing the module, so that the security<BR>#declarations are excecuted (Suggested by Dieter)<BR>from Products.FooContainer import FooPackage<BR><BR><BR>----&gt;$Home_Instance/Products/FooProduct/FooProduct.py<BR><BR><BR>__doc__="""FooProduct module."""<BR>__version__='0.1'<BR><BR>from Globals import InitializeClass<BR>from Products.PageTemplates.PageTemplateFile import PageTemplateFile<BR>from AccessControl import ClassSecurityInfo<BR>from OFS.SimpleItem import
 SimpleItem<BR><BR>manage_addFooProductForm=PageTemplateFile('zpt/FooProduct_Add',globals())<BR>manage_addFooProductForm._owner=None<BR><BR>def manage_addFooProduct(self,id,title='',REQUEST=None,submit=None):<BR>"""Invoques the __init__ method of the FooProduct class"""<BR><BR>fooProductObj=FooProduct(id,title)<BR>self._setObject(id,fooProductObj)<BR>return 'Object created'<BR><BR>class FooProduct(SimpleItem):<BR>"""FooProduct class definition"""<BR><BR>security=ClassSecurityInfo()<BR>meta_type='FooProduct'<BR><BR>#manage_options=SimpleItem.manage_options<BR><BR>def __init__(self,id,title=''):<BR>"""Contructor method to initialize the class properties"""<BR>self.id=id<BR>self.title=title<BR><BR>InitializeClass(FooProduct)<BR><BR><BR>----&gt;$Home_Instance/Products/FooProduct/__init__.py<BR><BR><BR>__doc__="""FooProduct initialization module."""<BR>__version__='0.1'<BR><BR>from FooProduct import FooProduct, manage_addFooProductForm, <BR>manage_addFooProduct<BR>from
 Products.FooContainer import FooPackage<BR><BR>def initialize(context):<BR>try:<BR>context.registerClass(FooProduct,<BR>constructors=(<BR>manage_addFooProductForm,<BR>manage_addFooProduct,<BR>),<BR>icon='images/icon.gif',<BR>)<BR>except:<BR>from sys import exc_info, stderr<BR>from traceback import format_exception<BR>from string import join<BR><BR>type,val,tb=exc_info()<BR>stderr.write(join(format_exception(type, val, tb),''))<BR><BR>del type,val,tb<BR><BR><BR>----&gt;$Home_Instance/Products/FooProduct/zpt/FooProduct_Add.zpt<BR><BR>
<P tal:replace="structure here/manage_page_header">Default Header</P><BR>
<H4 tal:define="pageTitleScript <br>python:here.manage_form_title(here,request,<br>                                                 form_title='Add <br>FooProduct')" <br>tal:replace="structure pageTitleScript"&gt;Add myClass<BR></H4><BR>
<DIV tal:define="FooPackage <br>nocall:modules/Products/FooContainer/FooPackage;<br>                    fooVar python:FooPackage.foo()" <br>tal:replace="fooVar"&gt;Using FooPackage</DIV><BR><BR><BR>
<P class=form-help><BR>Optional fields are written in <B><I>italic</I></B><BR></P><BR>
<FORM action=someAction method=post encType=multipart/form-data <br>tal:define="formAction python:'manage_addFooProduct'"<BR>tal:attributes="action formAction"&gt;<BR>
<TABLE cellSpacing=0 cellPadding=2 border=0><BR>
<TBODY>
<TR><BR>
<TD vAlign=top align=left><BR>
<DIV class=form-label>Id</DIV><BR></TD><BR>
<TD vAlign=top align=left><BR><INPUT size=40 name=id><BR></TD><BR></TR><BR>
<TR><BR>
<TD vAlign=top align=left><BR>
<DIV class=form-optional>Title</DIV><BR></TD><BR>
<TD vAlign=top align=left><BR><INPUT size=40 name=title><BR></TD><BR></TR><BR>
<TR><BR>
<TD vAlign=top align=left></TD><BR>
<TD vAlign=top align=left><BR><INPUT class=form-element type=submit value="Submit Query" name=submit <br>value=" Add "&gt;<BR></TD><BR></TR><BR></TBODY></TABLE><BR></FORM><BR>
<P tal:replace="structure here/manage_page_footer">Default Footer</P><BR><BR><BR><BR>----&gt;End<BR><BR>If somebody gets it working with the tales sintax:<BR>
<DIV tal:define="FooPackage <br>nocall:modules/Products/FooContainer/FooPackage;<br>                    fooVar python:FooPackage.foo()" <br>tal:replace="fooVar"&gt;Using FooPackage</DIV><BR><BR>and not with the python one:<BR><BR>
<DIV tal:define="FooPackage <br>python:modules['Products.FooContainer.FooPackage'];<br>               fooVar python:FooPackage.foo()" <br>tal:replace="fooVar"&gt;Using FooPackage</DIV><BR><BR>Just let me know. Otherwise, I'd think it's a bug and will reported it <BR>to the collector. One thing to remmember: If you try it with the python<BR>sintax and revert the changes on the zpt template without restarting <BR>zope, it will work. So, you will have to restart zope for each test.<BR><BR>Regards,<BR>Josef Meile<BR><BR><BR><BR>------------------------------<BR><BR>Message: 11<BR>Date: Sun, 2 May 2004 15:51:48 +0200<BR>From: "Stefan H. Holek" <STEFAN@EPY.CO.AT><BR>Subject: Re: [Zope] Module security assertions fail<BR>To: "Josef Albert Meile" <JMEILE@HOTMAIL.COM><BR>Cc: zope@zope.org<BR>Message-ID: <DB3DF88F-9C3F-11D8-8B39-00039382A54A@EPY.CO.AT><BR>Content-Type: text/plain; charset=US-ASCII; format=flowed<BR><BR>These two statements are NOT the same. 'modules' is a dictionary and
 <BR>you want to access the key 'Products.JMUtils.TranslationUtils' of this <BR>dictionary.<BR><BR>The first statement has no way of figuring that out, I think.<BR><BR>Stefan<BR><BR><BR>On Samstag, Mai 1, 2004, at 22:09 Europe/Vienna, Josef Albert Meile <BR>wrote:<BR><BR>&gt; Thanks for your reply. Finally I got working. I did everything what <BR>&gt; you said, but it didn't work either. So, I just replace:<BR>&gt;<BR>&gt; <SPAN tal:define="TranslationUtils <br>> modules/Products/JMUtils/TranslationUtils;"><BR>&gt; Something comes here<BR>&gt; </SPAN><BR>&gt;<BR>&gt; by its python equivalent:<BR>&gt;<BR>&gt; <SPAN tal:define="TranslationUtils <br>> python:modules['Products.JMUtils.TranslationUtils'];"><BR>&gt; Something comes here<BR>&gt; </SPAN><BR>&gt;<BR>&gt; and guess what, it worked. I find this behaviour wird because <BR>&gt; according to the Zope book both statements should do the same. I will <BR>&gt; try to do a small test file and submit it again here, so, we can see
 <BR>&gt; either it's my error or a bug on zope.<BR>--<BR>The time has come to start talking about whether the emperor is as well<BR>dressed as we are supposed to think he is. /Pete McBreen/<BR><BR><BR><BR><BR>------------------------------<BR><BR>Message: 12<BR>Date: Sun, 2 May 2004 16:38:35 +0200<BR>From: "Josef Meile" <JOSEF.MEILE@IMES.MAVT.ETHZ.CH><BR>Subject: Re: [Zope] Module security assertions fail<BR>To: "Stefan H. Holek" <STEFAN@EPY.CO.AT><BR>Cc: zope@zope.org<BR>Message-ID: &lt;000401c43053$25f77650$da278481@sepp&gt;<BR><BR>=== message truncated ===</BLOCKQUOTE></DIV><p>
                <hr size=1><font face=arial size=-1>Do you Yahoo!?<br><a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/hotjobs_mail_signature_footer_textlink/evt=23983/*http://hotjobs.sweepstakes.yahoo.com/careermakeover">Win a $20,000 Career Makeover at Yahoo! HotJobs </a>