[Zope-dev] Help! Can't unsubscribe!
Help! I'm trying to unsubscribe from this list because it's filling up my mailbox too fast. However, when I try to use the web interface or the e-mail interface to unsubscribe, it gives me an odd error message. It says something to the effect of, "There's something wrong with your account. Please contact the postmaster." Yet I keep getting zope-dev messages. Could somebody tell me how to get off this list? Thanks, T.J. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] FW: Mailman results for Zope-Dev
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 2:31 PM To: [EMAIL PROTECTED] Subject: Mailman results for Zope-Dev unsubscribe 23007790 An unknown Mailman error occured. Please forward on your request to [EMAIL PROTECTED] MMBadUserError None traceback object at 8179830 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Z SQL Method Patch
Casey, I just wanted to thank you very, very, VERY much for that tip! I've spent far too many hours debugging very long, complex Z SQL methods. This will be an enormous help! By the way, it works like a charm on ZMySQLDA. Thanks! - T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Casey Duncan Sent: Thursday, September 07, 2000 4:26 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] Z SQL Method Patch In debugging some Z SQL methods I found it quite hard to diagnose certain errors returned by the database backend because Zope doesn't return the SQL sent to the server, instead it returns "Could not render the query template!" which is not really true for this case. In looking at the source code of DA.py (lib/python/Shared/DC/ZRDB), and I think I found a simple solution: in manage_test insert the following indented after line 343 (except:) try: src=self(REQUEST, src__=1) except: pass This re-renders the query template if possible without sending it to the backend and returns the SQL in src. The result is your backend error message followed by the SQL generated. This should really save time debugging any dynamic Z SQL methods. It was moderately tested on Zope 2.2.1/PostgreSQL 7 via PyGreSQLDA. It should not be database dependant though. Enjoy. -Casey Duncan ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope] Underscore Caracter
Hmm.. Shouldn't that be: _.string.join(_.string.split('asd asd'), ' '), '_') Or, alternatively (and more intuitively), _.string.replace('asd asd', ' ', '_') _.string.replace('asd_asd', '_', ' ') - T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris McDonough Sent: Monday, September 04, 2000 5:56 PM To: Marcus Mendes Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Underscore Caracter Hi Marcus, This is untested. Turn "asd asd" into "asd_asd" and output: dtml-var "_.string.join(_.string.split('asd asd'), '_')" Turn "asd_asd" into "asd asd" and output: dtml-var "_.string.join(_.string.split('asd_asd', '_'))" On Sun, 3 Sep 2000, Marcus Mendes wrote: Hello, I need replace 0x20 (space caracter ) to Undescore Caracter. I need also a function that UNDO this operation. How can I to do this in DTML sintaxe? Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org ___ 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 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 )
RE: [Zope] dtml-comment doesn't? Please fix... ;-)
Andrew, Did you see my solution to this? !--#comment this is all commented stuff. dtml-in "invalid_dtml_syntax"@#$#@%^ dtml-do wreak_havoc /dtml-unless --/dtml-comment I also posted a patch that would allow you to use syntax like this: !--#c dtml-with bad_code This neither renders nor preprocesses. /dtml-in -- Same effect, but a bit cleaner. If you'd like a copy of that patch, send me an e-mail. Take care, T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew Kenneth Milton Sent: Monday, September 04, 2000 5:11 PM To: Kip Rugger Cc: [EMAIL PROTECTED] Subject: Re: [Zope] dtml-comment doesn't? Please fix... ;-) Won't work, the container will still be parsed for correctness at 'save' time. The problem isn't getting nested comments per se, we already have that. The problem is to completely ignore the contents of the comment tag whilst still allowing nested comments. ___ 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 )
RE: [Zope] Underscore Caracter
Yep, it's there, but it's not documented. Basically, anything in the python "string" module should be accessible from Zope DTML. Now, who do I have to beat up to get the 're' module added to the namespace variable??? :) - T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris McDonough Sent: Tuesday, September 05, 2000 7:54 PM To: T.J. Mannos Cc: Marcus Mendes; [EMAIL PROTECTED] Subject: RE: [Zope] Underscore Caracter On Tue, 5 Sep 2000, T.J. Mannos wrote: Hmm.. Shouldn't that be: _.string.join(_.string.split('asd asd'), ' '), '_') The second argument is implicit on string.split (it defaults to a single space). But your way works too. Or, alternatively (and more intuitively), _.string.replace('asd asd', ' ', '_') _.string.replace('asd_asd', '_', ' ') It should be noted that _.string.replace() is not mentioned in the DTML reference guide. If it exists, it should be used. Sigh. I can't wait for the Zope Book to come out, I'm going to be the first buyer. ;-) Hi Marcus, This is untested. Turn "asd asd" into "asd_asd" and output: dtml-var "_.string.join(_.string.split('asd asd'), '_')" Turn "asd_asd" into "asd asd" and output: dtml-var "_.string.join(_.string.split('asd_asd', '_'))" On Sun, 3 Sep 2000, Marcus Mendes wrote: Hello, I need replace 0x20 (space caracter ) to Undescore Caracter. I need also a function that UNDO this operation. How can I to do this in DTML sintaxe? Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org ___ 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 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: [Zope-dev] Fighting with ZServer
Dieter, Yes, I have, and I spent hours tearing apart my site thinking I'd seriously screwed-up when suddenly all my images refused to load. But that was just on my Solaris 2.6 server. PCs and even Macs render my pages beautifully. It's just Netscape Communicator for Solaris that causes a problem. I don't have a clue. But, I can tell you why your logs wouldn't be showing up. Netscape caches images so that it doesn't have to keep reloading them from the server. If it's reading a cached image, you won't see an entry in the server log. Hope this helps, T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dieter Maurer Sent: Monday, August 21, 2000 2:36 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] Fighting with ZServer Since this afternoon, I am fighting with ZServer. Currently, it seems Zserver is winning I do not understand, what I see... At work: Zope 2.1.6, Sparc Solaris 2.7, Linux Netscape 4.51 Sometimes, images are not shown by Netscape (broken image). No "simple" reload is able to change this, however a "forced" reload lets Netscape show the image correctly. From then on, the image is always shown correctly: by "simple" reload, "forced" reload or directly (served from cache). The strange thing, inside "Image.index_html" the failing "simple" reload and the succeeding "forced" reload look completely identical. At home: Zope 2.1.6, Intel Linux 2, Linux Netscape 4.5 All images are always shown correctly. However, there is no log entry in "var/Z2.log" for about 50 % of the requests that are answered by a 304 response. It is non-deterministic whether a log entry is written or not. Did you ever see something like this? Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ 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 )
RE: [Zope] Pages Half Rendering :(
Chris, You know, I've seen that problem before on sites like Microsoft and E-Trade. The page will be really slow to load, and I will only get part of the HTML source. But it affects images, too, so my guess is it's a web server problem rather than an application server problem. Anyone else have any ideas? - T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Withers Sent: Saturday, August 19, 2000 9:04 AM To: [EMAIL PROTECTED] Subject: [Zope] Pages Half Rendering :( Hi, I experienced the same weird intermittent problem yesterday that I have had on odd ocassions over the last eight months. Basically, Zope 2.1.6 returns only half a page. By that I mean if I view source, the HTML just stops at some point through the page. The point depends on the actual time, it varies... clicking reload means you get more or less of the page than last time. All very odd... what makes it worse is that it happens intermittently under certain cirumstances that I can't pin down. Yesterday was on a page that performed a ZCatalog search and returned a table of the results. It worked fine from here at NIP, but when I tried at home over dialup I got the problem. That said, I've had the same thing happen a few times in the past here at NIP, mainly where pages were raising exceptions and the error wasn't getting displayed, just some half-rendered HTML... all very confusing :S Also, totally bizarely, one of our clients had problems on the same page. Searching works fine here from NIP and at home over DSL for some NIP employees. I was trying over dialup from home but had the problem I already metnioned. However, whatever the client searched for, he got no results. The page rendered fine but it was the paeg saying 'no results could be found matching youur query'. If anyone else has experienced anything liek either of these problems, or has any idea as to what may be going on, I'd love to hear it :S cheers, Chris ___ 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 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] Zope.org search bug -- can't search for book
I'm getting a System Unavailable message when I do a Zope.org search for the keyword "book". However, a search for anything else, i.e. "bookworm", works fine. Any ideas? SiteIndex ! System Unavailable This site is currently experiencing technical difficulties. Please contact the site administrator for more information. For additional technical information, please refer to the HTML source for this page. Thank you for your patience. Error type: KeyError Error value: 3711 - T.J. ___ 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 )
RE: [Zope] standard_error_message
Rodrigo, Two ways I can think of, just off the top of my head: 1. If you want just certain directories to have a different standard_error_message, create a standard_error_message method in those directories. (I've heard people complain of problems with this method, though). 2. Encapsulate your document or method with dtml-try / dtml-except tags, as such: dtml-try ... your DTML method here ... dtml-except dtml-var not_so_standard_error_message /dtml-try Then let me know if it works, becuase I might try the same thing. :) - T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Diego Rodrigo Neufert Sent: Thursday, August 03, 2000 8:40 AM To: [EMAIL PROTECTED] Subject: [Zope] standard_error_message Hi. Anyone know how to specify other error msg file? I want the standard_error_message to still be my default error msg file but for some dtml's I want to change it... Thanks -- --- Diego Rodrigo Neufert -webmaster --- (Magic Web Design) (email) ([EMAIL PROTECTED]) (curitiba) (pr) ___ 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 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 )
RE: [Zope] Cache concerns (was zope/proxy_pass configuration problem)
Ragnar, Caching is a subject I'm not all that familiar with but one I need to learn really fast. My site is about to go live, and I have a monster of a query that will bring my system to its knees if 100 students run it at a time. So I'm sending this off to the Zope mailing list wondering if anyone can give us some caching/performance tips. - T.J. -Original Message- From: Ragnar Beer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 02, 2000 12:48 PM To: T.J. Mannos Subject: RE: [Zope] zope/proxy_pass configuration problem Very good idea! I tried it and it works like a charm :) Thanks a lot! One problem is left over: apache doesn't cache the documents although I have dtml-call "RESPONSE.setHeader('Expires', _.DateTime(_.DateTime().timeTime() + 3600).toZone('GMT').rfc822())" in my standard_html_header. ab -n 100 -c 1 http://www.dummy.com/index_html shows 100 queries in Z2.log where there should be only one. What could I be doing wrong? Ragnar Ragnar, If you're referring to my ZServer+Apache+SSL HOWTO, this would be a problem. Going in through https will only give you access to the 'ssl' directory. The quick dirty solution (while retaining the ability to distinguish between http and https) is to reverse the setup, i.e. place the https SiteRoot in the main folder and create a separate folder called, say, 'http', which holds the http SiteRoot. This solution will kill two birds with one stone: it will grant access to the entire site via https while restricting http users to an empty subdirectory. Hope this helps, T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ragnar Beer Sent: Wednesday, August 02, 2000 1:30 AM To: [EMAIL PROTECTED] Subject: [Zope] zope/proxy_pass configuration problem Hi Zope-Configuristas! I would finally like to say goodbye to pcgi but one thing keeps me hooked. I tried and tried but the solution just won't appear. Here is the problem: I have a site that is supposed to be reachable via http as well as via https. That's not a problem per se. Configuration of zope with proxy_pass is easy as can be. The problem is that management shall be possible via https _only_ (for obvious reasons). But as soon as I use site access to define the http-branch this branch is not managable/accessable via https any more. Is there a solution? Ragnar ___ 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 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 )
RE: [Zope] zope/proxy_pass configuration problem
Ragnar, If you're referring to my ZServer+Apache+SSL HOWTO, this would be a problem. Going in through https will only give you access to the 'ssl' directory. The quick dirty solution (while retaining the ability to distinguish between http and https) is to reverse the setup, i.e. place the https SiteRoot in the main folder and create a separate folder called, say, 'http', which holds the http SiteRoot. This solution will kill two birds with one stone: it will grant access to the entire site via https while restricting http users to an empty subdirectory. Hope this helps, T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ragnar Beer Sent: Wednesday, August 02, 2000 1:30 AM To: [EMAIL PROTECTED] Subject: [Zope] zope/proxy_pass configuration problem Hi Zope-Configuristas! I would finally like to say goodbye to pcgi but one thing keeps me hooked. I tried and tried but the solution just won't appear. Here is the problem: I have a site that is supposed to be reachable via http as well as via https. That's not a problem per se. Configuration of zope with proxy_pass is easy as can be. The problem is that management shall be possible via https _only_ (for obvious reasons). But as soon as I use site access to define the http-branch this branch is not managable/accessable via https any more. Is there a solution? Ragnar ___ 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 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] Evaluating a string of DTML code?
Hi, I have an ExternalMethod that processes an HTML file, extracts the contents of the BODY tag, and wraps my site template around it. (In other words, it takes a plain vanilla HTML file and adds standard_html_header and standard_html_footer). [See http://www.zope.org/Members/unfo/howto_wrapper/index_html for more background] The problem is this: I can't have arbitrary DTML code in the HTML file. Zope completely ignores it. I tried fmt=structured-text, but that doesn't work, either. Since the file is essentially read in as a string, is there any way to evaluate an arbitrary string of DTML code? Thanks a ton! - T.J. ___ 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 )
RE: [Zope] How can I proxy from apache to zope and keep source host info?
Marcin and Phil, I also found info on a patch that would pass this information in the HTTP_Via header. I incorporated it into my Apache+ZServer+SSL HOWTO: http://www.zope.org/Members/unfo/apache_zserver_ssl Good luck, T.J. -Original Message- From: Marcin Kasperski [EMAIL PROTECTED] Sent: Monday, July 31, 2000 4:03 AM To: "[EMAIL PROTECTED]" Subject: Re: [Zope] How can I proxy from apache to zope and keep source host info? Phil Harris wrote: There is a patch to Apache that you could apply that passes the client IP along in a different HTTP header, if that helps. It's at http://modules.apache.org/search?id=124. Does anyone has this module compiled for apache 1.3 handy (I mean mod_add_proxy.so file)? I use binary Debian apache distribution and it will take some time to download and rebuild apache from sources... www.mk.maxi.pl | Teams do not make linear progress through analysis. Marcin.Kasperski | They don't start with requirement 1 and analyze it, @softax.com.pl | then move to requirement 2 and analyze it. (...) @bigfoot.com | Analysis tends to be revolutionary. (Martin) ___ 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/zopeannounce http://lists.zope.org/mailman/listinfo/zopedev ) ___ 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] Zope 2.2.0b4: Congrats on a job well done + Tips for upgrading
want to take my chances. Thanks, Zope developers, for an excellent product! - T.J. Mannos - Salt Lake Community College ___ 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: howto_wrapper: probs with PUT and manage_main - IDs are already in use
Marcus, REF: http://www.zope.org/Members/unfo/howto_wrapper I may have left out a step. If you try to add the methods to the Control Panel / Products / HTMLDocument folder, it will fail. You have to go one more level down, into the HTMLDocument ZClass (It will say "Z Class at /Control_Panel / Products / HTMLDocument / HTMLDocument"). Sorry about that. I'll update my instructions. If you have any more problems, send me an e-mail. By the way, I've enhanced my processHTMLFile method slightly to allow access to namespace variables via the dtml-; syntax. If you're interested, drop me a line. I eventually want to allow any arbitrary DTML tag to execute, but I don't have a clue how to do that right now... :) - T.J. - Original Message - From: Marcus Schopen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 11, 2000 11:44 AM Subject: howto_wrapper: probs with PUT and manage_main - IDs are already in use Hei there, I tried to install your great wrapper-tools, but can't create: "PUT" External Method AND the "manage_main" DTML Method. Zope tells me that these IDs are already in use. I am using Zope Zope-2.1.6 on a linux box (latest Hotfix installed). What could I do? I would realy like to use your wrapper. It´s the tool I habe been looking for and it would be the solution for a lot of problems here (using external WYSIWYG editors + Zope ...). Thank you very much Bye Marcus University of Bielefeld, Germany ___ 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] URL parsing error in 2.2.0b2
I used to be able to use URLs like this in Zope 2.1.6: http://mysite.com/somepage?url=http://somewhere.com In Zope 2.2.0b2, I get a "404 File Not Found" error. Do I need to URL-quote the address now? ___ 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-dev] Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...
That did it! But... :) I ended up having to re-create all my ZSQL methods, which was funny because they all worked in the beta 1 but not in beta 2. I kept getting len() of unsized object errors. Anyway, re-creating them all from scratch (ugh..) solved that problem. BUT, the BIG problem I'm having is still with the external method in courseList.py. I'll attach the file here. It returns a list that can be traversed with the dtml-in tag. I'm still getting Unauthorized errors when trying to access properties of the objects this function returns. For instance, when I run this function on a query sorted by 'term', the first object in the list contains a property called 'open-term'. When I try to access this property within a dtml-in tag, even as Superuser, it gives me an Unauthorized error. I tried everything, even giving anonymous users all privileges to that external method. Nothing worked. Here's my traceback: Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: page=id) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: groupby="['term','type','category']" query="db.listCourses(type=type,term=term,keyword=keyword,category=category, inactive=inactive,show_new=PARENTS[0].id=='admin')") File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: extern.courseList(_, groupby=groupby, query=query)) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/SecurityManager .py, line 139, in validate File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/ZopeSecurityPol icy.py, line 158, in validate Unauthorized: open_term Any ideas? Now, it could just be my programming. With the new 2.2 version I may need to add security information to each object (which I don't know how to do). Right now I'm just starting with a blank class and adding a few properties to it. Zope may be looking at it and thinking, "What the heck is this thing?" The idea was to trick Zope into thinking it was a Z SQL query; perhaps 2.2 isn't so easily fooled...? At any rate, we're getting closer... :) - T.J. - Original Message - From: Brian Lloyd [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Brian Lloyd [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 21, 2000 9:25 AM Subject: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix... Hi all, Several folks have reported problems in beta 1 with SQLMethods having authentication problems when trying to call other SQL Methods. I'd like a few intrepid volunteers to try something for me to see if it fixes the problem. I'd like to make a 2.2 beta 2 release tomorrow but I want to make sure this issue is resolved first. Make a backup of the file: lib/python/Shared/DC/ZRDB/DA.py in your current (beta 1) installation and replace it with the DA.py attached to this email, restart and let me know if the problem goes away. Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com courseList.py
[Zope-dev] SiteAccess in 2.0.0b2?
I'm having trouble getting SiteAccess 2.0.0b2 to work with Zope 2.2.0b2. The first odd thing that happens is when I create a new SiteRoot, it says that this object already has a SiteRoot (which it doesn't), but creates it anyway. The second is: it doesn't seem to work at all! The value of URL1 still has the :9080 port and the wrong virtual server. Any ideas? - T.J. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.2.0b2 FTP server -- Cannot list directory?
I'm having a problem with the Zope FTP server in 2.2.0b2. If I try to get a directory listing, it gives an error saying it can't list the directory. If I try to change directories (even 'cd /'), it tells me it can't find the directory. However, if I know the exact name of the file I want to transfer, it will let me do it. Any ideas? - T.J. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Zope 2.2 beta 2 released
Monty, I can't find 1.2.0. I run a search for MySQL and all that comes up is MikeP's version 1.1.3. Come to think of it, I have no idea where I found 2.0.0, either. I think it was on a Zope news announcement for a while then disappeared. Anyway, could you send me the URL to 1.2.0? Thanks, T.J. - Original Message - From: Monty Taylor [EMAIL PROTECTED] To: T.J. Mannos [EMAIL PROTECTED] Cc: IPM Return requested Receipt notification requested [EMAIL PROTECTED] Sent: Friday, June 23, 2000 1:53 AM Subject: Re: [Zope] Zope 2.2 beta 2 released Well, I'm not sure why you would need to change versions as I haven't done any testing of ZMySQLDA on the 2.2 Beta release, but I would suggest downloading and installing ZMySQLDA 1.2.0. Andy's version, 2.0.0, isn't published because he doesn't really want to provide support right now. He does have some things in there that I want to migrate into the current line, and I've already included his changes to use the new backend module. So I can help you out a bit more if you use 1.2.0. But that's your call. I'll see what I can find out in any case, just as soon as I install a 2.2 server somewhere. ___ 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 )
Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...
That did it! But... :) I ended up having to re-create all my ZSQL methods, which was funny because they all worked in the beta 1 but not in beta 2. I kept getting len() of unsized object errors. Anyway, re-creating them all from scratch (ugh..) solved that problem. BUT, the BIG problem I'm having is still with the external method in courseList.py. I'll attach the file here. It returns a list that can be traversed with the dtml-in tag. I'm still getting Unauthorized errors when trying to access properties of the objects this function returns. For instance, when I run this function on a query sorted by 'term', the first object in the list contains a property called 'open-term'. When I try to access this property within a dtml-in tag, even as Superuser, it gives me an Unauthorized error. I tried everything, even giving anonymous users all privileges to that external method. Nothing worked. Here's my traceback: Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: page=id) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: groupby="['term','type','category']" query="db.listCourses(type=type,term=term,keyword=keyword,category=category, inactive=inactive,show_new=PARENTS[0].id=='admin')") File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: extern.courseList(_, groupby=groupby, query=query)) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/SecurityManager .py, line 139, in validate File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/ZopeSecurityPol icy.py, line 158, in validate Unauthorized: open_term Any ideas? Now, it could just be my programming. With the new 2.2 version I may need to add security information to each object (which I don't know how to do). Right now I'm just starting with a blank class and adding a few properties to it. Zope may be looking at it and thinking, "What the heck is this thing?" The idea was to trick Zope into thinking it was a Z SQL query; perhaps 2.2 isn't so easily fooled...? At any rate, we're getting closer... :) - T.J. - Original Message - From: Brian Lloyd [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Brian Lloyd [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 21, 2000 9:25 AM Subject: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix... Hi all, Several folks have reported problems in beta 1 with SQLMethods having authentication problems when trying to call other SQL Methods. I'd like a few intrepid volunteers to try something for me to see if it fixes the problem. I'd like to make a 2.2 beta 2 release tomorrow but I want to make sure this issue is resolved first. Make a backup of the file: lib/python/Shared/DC/ZRDB/DA.py in your current (beta 1) installation and replace it with the DA.py attached to this email, restart and let me know if the problem goes away. Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com courseList.py
[Zope] SiteAccess in 2.0.0b2?
I'm having trouble getting SiteAccess 2.0.0b2 to work with Zope 2.2.0b2. The first odd thing that happens is when I create a new SiteRoot, it says that this object already has a SiteRoot (which it doesn't), but creates it anyway. The second is: it doesn't seem to work at all! The value of URL1 still has the :9080 port and the wrong virtual server. Any ideas? - T.J. ___ 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 )
Re: [Zope] ZServer+SiteAccess+Apache+SSL
Wayne, I just wrote a HOWTO documenting how to do exactly that. One thing that I didn't mention (that I probably should have) is that communication between Apache and ZServer is not necessarily secure, so you'll definitely want them both on the same machine! http://www.zope.com/Members/unfo/apche_zserver_ssl/index_html Good luck, T.J. - Original Message - From: Wayne Izatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 20, 2000 1:11 AM Subject: [Zope] ZServer+SiteAccess+Apache+SSL I've just managed to get ZServer running behind Apache with SiteAccess (thanks for the how-to, anser!) Now, has anyone managed to configure SSL into a mix like this? Seems to me I should be able to go through the standard SSL setup for Apache, and not worry too much more abou the ZServer component of the architecture. thanks Wayne ___ 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 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 )
Re: [Zope] Zope 2.2 beta 2 released
Umm, help? 2000-06-23T01:49:23 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\000\003z' Traceback (innermost last): File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZODB/Connection.py, line 441, in setstate TypeError: ('len() of unsized object', class Shared.DC.ZRDB.DA.SQL at 641960, None) Do I need to update my ZMySQLDA? I'm using version 2.0.0 currently. - T.J. - Original Message - From: Brian Lloyd [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 22, 2000 3:19 PM Subject: [Zope] Zope 2.2 beta 2 released Hi all, Zope 2.2.0 beta 2 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.0b2/ This release resolves the outstanding issues from beta 1 as well as the integrated fix for the recent security issue and further refinements of the help system. For more information, see the CHANGES.txt file for the release: http://www.zope.org/Products/Zope/2.2.0b2/CHANGES.txt If you are still using a 2.1.x version of Zope, be sure to see the document "Upgrading to Zope 2.2" for information on the recent changes to the Zope security model and other upgrade information. http://www.zope.org/Products/Zope/2.2.0b2/upgrading_to_220 Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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 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 )
RE: [Zope] ZServer+SiteAccess+Apache+SSL
I got Apache+mod_ssl+OpenSSL working, and I just threw it into the mix. I have two virtual hosts, one HTTP on port 80 and one SSL on port 443. Both do nothing but ProxyPass to the same http:// address on port 9080. I don't know if I like that solution, though. This solution "looks" secure, but I'm not so sure. It's a secure connection between the client and the server, and, since Zope and Apache are on the same machine, there's no insecure communication over our LAN. However, if I happen to have a hacker running a packet sniffer on my server, I'm screwed. Any comments on this? I may just have to go the hard way and do Apache+fastcgi...? --- In [EMAIL PROTECTED], Wayne Izatt [EMAIL PROTECTED] wrote: I've just managed to get ZServer running behind Apache with SiteAccess (thanks for the how-to, anser!) Now, has anyone managed to configure SSL into a mix like this? Seems to me I should be able to go through the standard SSL setup for Apache, and not worry too much more abou the ZServer component of the architecture. thanks Wayne ___ 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 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 )
Re: [Zope] Beta Zope Error
Brian, Try a ZMySQLDA connection. All ZSQL methods were implicitly owned by the user "wmannotj". They all had the same permission settings. Perhaps I could try explicit ownership? - T.J. - Original Message - From: Brian Lloyd [EMAIL PROTECTED] To: 'T.J. Mannos' [EMAIL PROTECTED]; CURTIS David [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, June 19, 2000 1:04 PM Subject: RE: [Zope] Beta Zope Error I get the same problem. A SQL method of mine is apparrently accessible from within a DTML method but not from within another SQL method. (I do this to determine if a record exists before overwriting it). I also have an external method that augments query objects with special grouping records. Here's one of my tracebacks (hey, I get a different one every time I click REFRESH): traceback snipped I've been trying to reproduce this with a Gadfly connection and I haven't been able to make this happen - have you checked to make sure that all of the sql methods in question have the same ownership and permission settings? Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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 )
Re: [Zope] Beta Zope Error
I get the same problem. A SQL method of mine is apparrently accessible from within a DTML method but not from within another SQL method. (I do this to determine if a record exists before overwriting it). I also have an external method that augments query objects with special grouping records. Here's one of my tracebacks (hey, I get a different one every time I click REFRESH): Traceback (innermost last): File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 189, in publish File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 156, in __call__ (Object: standard_html_header) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: standard_html_header) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 333, in eval (Object: REQUEST.set('login',validateUser(_.None, _))) (Info: REQUEST) File string, line 0, in ? File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 156, in __call__ (Object: validateUser) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: validateUser) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: PARENTS[0].sessions) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 156, in __call__ (Object: getLogin) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: getLogin) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 333, in eval (Object: SESSION.has_key('login')) (Info: SESSION) File string, line 0, in ? File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 140, in careful_getattr File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 180, in validate (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/Zope-2.2.0a1-src/lib/python/AccessControl/ZopeSecurityPolicy.py, line 160, in validate Unauthorized: has_key - Original Message - From: CURTIS David [EMAIL PROTECTED] To: IPM Return requested (Receipt notification requested) [EMAIL PROTECTED] Sent: Tuesday, June 13, 2000 4:51 PM Subject: [Zope] Beta Zope Error Greetings, I keep getting the Zope pop up password box in many menus. I also keep getting a access denied error when quering database records. What is wrong here? I am able to query records using the test menus but not within the Zope SQL methods. David A. Curtis Oregon State Marine Board Information Systems Manager [EMAIL PROTECTED] ___ 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] Zope-Edu?
What ever became of Zope-Edu? Have they disbanded? - T.J. ___ 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 )
RE: [Zope-dev] 2.2.0a1 won't work with query objects
I think this is actually Zope's bug - if I'm not mistaken, the TinyTables product uses the Results class provided in lib/python/Shared/DC/ZRDB/Results.py, which would make it subject to breaking in the same way that SQLMethod results broke in the 2.2 alpha. I've included a copy of the note I sent to the folks reporting problems with SQLMethods that includes the patch you can use to verify that it fixes the problem for TinyTables as well: That got me further, but it's still not all the way there: Traceback (innermost last): File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 189, in publish File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 156, in __call__ (Object: standard_html_header) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: standard_html_header) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 333, in eval (Object: REQUEST.set('login',validateUser(_.None, _))) (Info: REQUEST) File string, line 0, in ? File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 156, in __call__ (Object: validateUser) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: validateUser) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: PARENTS[0].sessions) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 156, in __call__ (Object: getLogin) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: getLogin) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 333, in eval (Object: SESSION.has_key('login')) (Info: SESSION) File string, line 0, in ? File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 140, in careful_getattr File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 180, in validate (Object: index.html) File /usr/Zope-2.2.0a1-src/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/Zope-2.2.0a1-src/lib/python/AccessControl/ZopeSecurityPolicy.py, line 160, in validate Unauthorized: has_key So close! Many of my queries work, but a few break when trying to access a simple property or value (such as has_key). Some even break inconsistently, such as my getInstructorInfo query, which works fine inside a DTML document but doesn't work at all inside a Z SQL method. Here's its traceback: You are not authorized to access getInstructorInfo. Traceback (innermost last): File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 189, in publish File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: edit_instructors) File /usr/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: edit_instructors) File /usr/Zope-2.2.0a1-src/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: edit_instructors) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: edit_instructors) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: REQUEST) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 333, in eval (Object: db.updateInstructorInfo(login=login, name=name, email=email, phone=phone, office=office, homepage=homepage, password=password)) (Info: phone) File string, line 0, in ? File /usr/Zope-2.2.0a1-src/lib/python/Shared/DC/ZRDB/DA.py, line 432, in __call__ (Object: updateInstructorInfo) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: string) File /usr/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 327, in eval (Object: getInstructorInfo(login=login)) (Info: getInstructorInfo) Unauthorized: (see above) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -