Re: [Zope] confusing access error
Dieter, I think you must be right. I tried it under 2.2.0 on Linux and NT, and got the error, but after receiving your message I tried it on a 2.2.2 Linux installation I have running and the problem went away. Thank you very much. I have a strong bias against assuming that things are other people's bugs, so it might have been quite a while before I figured it out. Time to do a couple of upgrades... Thanks again, Matt -Original Message- From:Dieter Maurer [EMAIL PROTECTED] Sent:Mon, 4 Dec 2000 21:19:00 +0100 (CET) To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Zope] confusing access error Matthew Wilbert writes: > I am getting an access error I don't understand at all, > > > > > Zope Error > Zope has encountered an error while publishing this resource. > Unauthorized< > > You are not authorized to access title_or_id. What Zope version do you use. You need at least Zope 2.2.2 as there was a bug in earlier Zope versions. This bug may present itself exactly as you described. Dieter ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ 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] confusing access error
I am getting an access error I don't understand at all, which makes me think I have some basic conceptual problem which I hope you can help me get past. I have never used ZopeFind before, so that may be part of it. I have a DTML method that looks like this: I actually want to put something in the , and add some additional parameters to the find, but just trying to execute the method as written I get the following Zope error. Zope Error Zope has encountered an error while publishing this resource. Unauthorized< You are not authorized to access title_or_id. Traceback (innermost last): File C:\PROGRA~1\test\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\test\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\test\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\test\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: testit) File C:\PROGRA~1\test\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: testit) File C:\PROGRA~1\test\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: testit) File C:\PROGRA~1\test\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: testit) File C:\PROGRA~1\test\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: ZopeFind(this())) File C:\PROGRA~1\test\lib\python\DocumentTemplate\DT_With.py, line 132, in render (Object: sequence-item) File C:\PROGRA~1\test\lib\python\OFS\DTMLMethod.py, line 163, in __call__ (Object: addEventToResource) File C:\PROGRA~1\test\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: addEventToResource) File C:\PROGRA~1\test\lib\python\OFS\DTMLMethod.py, line 163, in __call__ (Object: standard_html_header) File C:\PROGRA~1\test\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: standard_html_header) File C:\PROGRA~1\test\lib\python\OFS\DTMLMethod.py, line 189, in validate (Object: testit) File C:\PROGRA~1\test\lib\python\AccessControl\SecurityManager.py, line 139, in validate File C:\PROGRA~1\test\lib\python\AccessControl\ZopeSecurityPolicy.py, line 209, in validate Unauthorized: (see above) If I replace the with or , I get no error, and if I display them I see the right thing. There is only the root acl_users folder around, and it has only one user set up with manage priv's for pretty much everything. That user can do anything I have tried except run this DTML method. When I try to run the method, I get prompted several times for a username/password--clearly it doesn't want to accept that user's authorization. If anyone could explain why this is happening, and how I can make it stop, that would be very helpful. Thanks very much, Matt Wilbert [EMAIL PROTECTED] ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ 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] using a dictionary returned from an external method
I have some DTML that needs to call an external method that returns a dictionary. I don't have any problem referencing the resulting dictionary by doing something like . . . However, I need to do this for several keys, and I don't want to call externalMethod several times. Is there a way to assign the method result to another variable, or is it possible that DTML is smart enough not to do the call multiple times? Or is there some other approach that I am not even thinking of? Any suggestions will be greatly appreciated. Thanks, Matt Wilbert [EMAIL PROTECTED] ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ 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] How can you get Zope console messages running as NT service?
This must be in the archives someplace, but searching didn't turn it up. I'm running ZServer as an NT service, and I'd like to be able to see the usual console debug messages that I would get if I were running it from a command window, but I don't know how. I tried setting the -D flag in the service startup parameters, but if that works, I don't know where the output is going. If anyone knows how to do this, or that it is impossible, I'd like to know too. Thanks, Matt Wilbert ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ 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 )