[Zope] permission settings do not work like expected
Hi, I use zope 2.2.0 and I've got a problem with permission settings. When I try to limit the permissions for user to add only on type of objects to a folder then I get always two types back: - the one, which I like - and "Z Gadfly Database Connection" I used a local rule and discarded all "Acquire permission settings". The local rule has only one "ADD"-type, but like I said, I got gadfly to. Any idea? Jens ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] permissions and ODBC
I use zope 2.2.0 and ZODBC-3.1.0b2. I get a strange behavior with ODBC access and permissions. To keep it simple, I have an ODBC-Connection and a SQL-Method. When I execute the SQL-Method everything works fine. When I call the same method from within an DTML-document I get asked for a password and whatever I try (even the super user), nothing works. I configured proxies, no success. What is wrong, maybe zope version and the ZODBC version do not like each other? Anyone an idea? Jens ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Looking for different style
I need a better way to render a DTMLDocument and store the result in variable than but I do not like the style, it looks clumsy. Is there an another way? I would think something like documentname(...), but the acquisition does not work. Thanks Jens ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Re: permissions and ODBC
Hi Michel, I solved this, but I am not completely sure why. It has something to do with the new 2.2.0 feature of Trojan horses preventing I think (which I learned after hours of searching around). The final problem was the owner-settings. Lets assume you have the following structure root root_acl_users"rootmanager" subfolder "newrole" subfolder_acl_users"subfoldermanager" subsubfolder When you define a user "rootmanager" under root_acl_users and you define a new role "newrole" under subfolder, than you can not give the rootmanager the "newrole" because it is not defined on that level, you can not see it. That was my problem. The subsubfolder was owned by rootmanager. And the right to access the subsubfolder and it's objects was limited to "newrole" and "manager"-role. Everything looks fine, but it does not work. You have to define a new "subfoldermanager" in your subfolder_acl_users and give him the "manager" role. Than you have to set the Ownership of all your objects to "subfoldermanager". May be I missed something, but now everything works. I hope you know what I mean, otherwise let me know. Jens ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] __call__ error message - I gave up
What I like to do is pretty simple, but I don't get it. The following code snippet is simple and what I want to is straightforward: All DTML Documents in a Folder should be put together in one document. It works fine, if there is no reference to another object. But when I put something like in one of this DTML Document I get the appended error message. Any Idea Jens Error Type: AttributeError Error Value: __call__ Traceback (innermost last): File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File E:\Programme\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File E:\Programme\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File E:\Programme\WebSite\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: index_html) File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: index_html) File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: objectItems('DTML Document')) File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 167, in __call__ (Object: subdocument) File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: subdocument) AttributeError: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] I think, it is a bug in acquisition
Maybe I have found a situation, where images are not working or rather acquisition. For example, you create 2 documents and one image doc1 (DTML Document) contents: "document 1 doc2 (DTML Document) contents: "document 2 image (Image) contents: image When you put everything in one folder and try to render doc1, everything works fine. You get your image at the end. But if you put doc1 in a folder below like doc2 image subfolder doc1 you get the appended error. When you remove the image call from doc2 everything works again. I checked this with JPicture - the same. Beside, today I posted another mail with "[Zope] __call__ error message - I gave up". In this situation I thought my coding was wrong because I wanted to list all documents with Any Help? Jens Error Type: AttributeError Error Value: __call__ Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File E:\Programme\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File E:\Programme\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: doc1) File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: doc1) File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 171, in __call__ (Object: doc1) File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: doc1) File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 167, in __call__ (Object: doc2) File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: doc2) AttributeError: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] A strange difference between DTMLDocument versus DTMLMethod Zope 2.2.2
The following few lines have a different result, when I execute it within an DTMLDocument or DTMLMethod. The DTMLMethod result looks like it should be, but within a DTMLDocument the result is empty. When I modify the tag slightly, then it works to I does not seem to me consistent. Is it a new feature or bug. Beside, when I call the DTMLMethod from another Document, the result is empty to. Thanks Jens ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )