Re: [Zope] Does anyone care whether we deprecate ZClasses?
-l for deprecation ...until we build a replacement anyway... Dennis Allison wrote: +1 for deprecation. On Fri, 1 Apr 2005, Jim Fulton wrote: ZClasses are a feature that support through-the-web development. Many people have found them useful in the past, but they have some significant deficiencies, including: - They can't be managed with file-system tools, especially revision control systems like CVS and subversion. - They don't work well with Python development tools, like profilers and debugger. - They aren't being actively maintained. Most serious Zope developers stopped using them a long time ago and are frustrated that we still expend resources keeping them around. For example, the release of Zope 2.8 has been delayed by the requirement of getting ZClasses working with Zope 2.8. We could choose to deprecate ZClasses. If we deprecated them in Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but their support would be removed in Zope 2.10. Would anyone be upset if this happened? Jim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] high loads, more threads, spinning wheels
Which, BTW, is one of the coolest things ever! Still trying to figure out what it all means but it has really helped us to find things that were slowing us down. THANKS THANKS THANKS to Florent!! Allen Florent Guillaume wrote: Tim Middleton wrote: I'm wondering if someone who knows the internals more might have some idea what's going on here. Or any tips on how to debug what zope is doing when it gets into this state. You can use DeadlockDebugger. Florent ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Z SQL test in the ZMI aborts on key error
This bounced around on the list recently. It is supposed to be fixed now but the solution is modifying the source and changing how the batching is done. It works if less than 20 records returned...blows up if more. You can test this by forcing your query to only return a few records. Can't remember the exact location of the code now. Will see what I can find it. Allen Dennis Allison wrote: I've never had any problem with parameterless queries. (-: No, this is a simple case of a parameter somehow being lost in the ZMI interface. On Tue, 7 Jun 2005, Joe Bezier wrote: Hi there, By any chance are you trying to test a ZSQL method that doesn't (shouldn't) need any query parameters? For some reason (and I'm not the guy who can tell you why...) these types of tests always break - try adding '?query=' to the end of the URL. and see if that helps. Cheers, Joe. On 7 Jun 2005, at 11:41, Dennis Allison wrote: Zope 2.7.6 Python 2.3.5 MySQLDA-1.2.1c3 ZMYSQLDA-2.09b3 Site Error An error was encountered while publishing this resource. Error Type: KeyError Error Value: 'query' Troubleshooting Suggestions * This resource may be trying to reference a nonexistent object or variable 'query'. * 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. -- Error log: 2005/06/07 03:33:03.344 GMT-7 User Name (User Id) allison (allison) Request URL http://group1.agilemind.com/Scratch/simpleq/manage_test Exception Type KeyError Exception Value 'query' Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.ZRDB.DA, line 337, in manage_test * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_In, line 602, in renderwb * Module DocumentTemplate.DT_Var, line 219, in render KeyError: 'query' There does not seem to be a bug like this in the collectors. Any help/pointers appreciated. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Z SQL test in the ZMI aborts on key error (query keyerror Solution)
Found it. Edit lib/python/Shared/DC/dtml/customDefaultReport.dtml Replace what is there with the code below (or compare and change) This is from our 2.7.5 install. (Previous results) %(else no_table)[ %(heading)s %(else)] %(row)s %(else no_table)[%(else)] (Next results) There was no data matching this &dtml-title_or_id; query. Allen Dennis Allison wrote: I've never had any problem with parameterless queries. (-: No, this is a simple case of a parameter somehow being lost in the ZMI interface. On Tue, 7 Jun 2005, Joe Bezier wrote: Hi there, By any chance are you trying to test a ZSQL method that doesn't (shouldn't) need any query parameters? For some reason (and I'm not the guy who can tell you why...) these types of tests always break - try adding '?query=' to the end of the URL. and see if that helps. Cheers, Joe. On 7 Jun 2005, at 11:41, Dennis Allison wrote: Zope 2.7.6 Python 2.3.5 MySQLDA-1.2.1c3 ZMYSQLDA-2.09b3 Site Error An error was encountered while publishing this resource. Error Type: KeyError Error Value: 'query' Troubleshooting Suggestions * This resource may be trying to reference a nonexistent object or variable 'query'. * 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. -- Error log: 2005/06/07 03:33:03.344 GMT-7 User Name (User Id) allison (allison) Request URL http://group1.agilemind.com/Scratch/simpleq/manage_test Exception Type KeyError Exception Value 'query' Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.ZRDB.DA, line 337, in manage_test * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_In, line 602, in renderwb * Module DocumentTemplate.DT_Var, line 219, in render KeyError: 'query' There does not seem to be a bug like this in the collectors. Any help/pointers appreciated. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Z SQL test in the ZMI aborts on key error (query keyerror Solution)
Tres Seaver wrote: Allen, your verstion "drops the query on the floor", i.e., it fixes the KeyError, but then makes it impossible to pass the querystring through to the next batch. Well, this corrected the problem and it does handle the next batch. Works for us. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] New External Editor release 0.9
Same here. Chris?? Peter Bengtsson wrote: Chris, I had problems with the .exe on a windows machine. When I downloaded it everything got downloaded of the 1.7Mb (or whatever it was exactly) but when I tried doubleclicking it it complained about being corrupt. Has anybody else had similar problems? On 6/21/05, Chris McDonough <[EMAIL PROTECTED]> wrote: Since Casey Duncan, the original author of Zope External Editor is happily hacking away on other things at a new job, I figure I might as well pick up maintenance of this product. The new location for External Editor releases will be: http://plope.com/software/ExternalEditor/ A new release (0.9) is available at that location and the changes for the release are visible at http://plope.com/software/ExternalEditor/CHANGES-0.9.txt . Most changes in this release are aimed at improving zopeedit behavior under Windows. Have fun! - C ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Character set problems
What timing. I am going through something similar. Had a zope 2.7.0 instance on RH9..not sure of the python. Had a bunch customer sites in it using VHM. Nothing in front of the zope. (I know) Moved to a new server, RHE4, Zope 2.7.5 on Python 2.3.5 Just moved the Data.fs and moved products and restarted. Perfect. Now one customer says they are seeing question marks in places where bullets and apostrophes, etc. should be. Looking at the encoding the browser picks up and it always goes to UTF-8. If I manually switch it to Western ISO the page looks fine. Where does this get set? In Linux? In Python? In Zope? ...and if so, where exactly and how to change it? Any help appreciated. Allen Peter Bengtsson wrote: Set the locale on the Zope installation in zope.conf If you're unsure about your code, try this $ set | grep LANG On 9/8/05, Niklas Saers <[EMAIL PROTECTED]> wrote: Hey guys, I've installed Zope on a FreeBSD server. My problem domain is very small: display a list of when people are unavailable, and let people update the list. This is all in Danish, and here are come my problems. Danish has three extra letters not in the ASCII alfabet, three upper-case and three lower-case. When getting the data from a where I've written "æ ø å Æ Ø Å", I get: æ ø Ã¥ Æ Ø Ã… What is the standard way of ensuring that I get the correct data? I tried writing a little converter, but the string tekst = tekst.replace("\xc3\xa6", "ae"); gives me the error UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128) Do you have any suggestion on how to overcome these problems? Cheers Nik ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Character set problems
I will let you know...but it was slightly off in the specs I gave. It was a 2.7.0 on RH9 and new install is 2.7.7 on RHE4. If I take the offending text, cut and paste, and put on a different install of 2.7.5 on RHE4 then the encoding works fine and the characters show fine. Mainly bullets, apostrophes and quotes copied from a Word doc and pasted in as text to a dtml document. I changed the LANG encoding for the zope user that zope runs as. But did not change the root LANG encoding. If zope runs as zope does it START as zope or as root? (Linux novice here if you could not tell already) This did not seem to make a difference. Only thing I can see at this point is the difference in zope version. Nik - I will let you know if I do find out anything. Allen Niklas Saers wrote: Hi Allen, I'm trying out the zope.conf solution proposed. Will you let me know if you make progress here? Cheers Nik On 9/8/05, Allen Schmidt <[EMAIL PROTECTED]> wrote: What timing. I am going through something similar. Had a zope 2.7.0 instance on RH9..not sure of the python. Had a bunch customer sites in it using VHM. Nothing in front of the zope. (I know) Moved to a new server, RHE4, Zope 2.7.5 on Python 2.3.5 Just moved the Data.fs and moved products and restarted. Perfect. Now one customer says they are seeing question marks in places where bullets and apostrophes, etc. should be. Looking at the encoding the browser picks up and it always goes to UTF-8. If I manually switch it to Western ISO the page looks fine. Where does this get set? In Linux? In Python? In Zope? ...and if so, where exactly and how to change it? Any help appreciated. Allen Peter Bengtsson wrote: Set the locale on the Zope installation in zope.conf If you're unsure about your code, try this $ set | grep LANG On 9/8/05, Niklas Saers <[EMAIL PROTECTED]> wrote: Hey guys, I've installed Zope on a FreeBSD server. My problem domain is very small: display a list of when people are unavailable, and let people update the list. This is all in Danish, and here are come my problems. Danish has three extra letters not in the ASCII alfabet, three upper-case and three lower-case. When getting the data from a where I've written "æ ø å Æ Ø Å", I get: æ ø Ã¥ Æ Ø Ã… What is the standard way of ensuring that I get the correct data? I tried writing a little converter, but the string tekst = tekst.replace("\xc3\xa6", "ae"); gives me the error UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128) Do you have any suggestion on how to overcome these problems? Cheers Nik ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Character set problems
Firefox, Netscape and IE all show the same UTF-8 encoding not matter what I do. But if I choose Western manually the characters show fine. Copy the same text out of the document and paste into a page on 2.7.5 and the encoding is Western. Thanks -Allen Peter Bengtsson wrote: I assume you use Firefox. Go to the two pages; the one that works and the one that doesn't. Right-click and select "Vew Page Info". Look at what it says on "Encoding" On 9/9/05, Allen Schmidt <[EMAIL PROTECTED]> wrote: I will let you know...but it was slightly off in the specs I gave. It was a 2.7.0 on RH9 and new install is 2.7.7 on RHE4. If I take the offending text, cut and paste, and put on a different install of 2.7.5 on RHE4 then the encoding works fine and the characters show fine. Mainly bullets, apostrophes and quotes copied from a Word doc and pasted in as text to a dtml document. I changed the LANG encoding for the zope user that zope runs as. But did not change the root LANG encoding. If zope runs as zope does it START as zope or as root? (Linux novice here if you could not tell already) This did not seem to make a difference. Only thing I can see at this point is the difference in zope version. Nik - I will let you know if I do find out anything. Allen On 9/8/05, Allen Schmidt <[EMAIL PROTECTED]> wrote: What timing. I am going through something similar. Had a zope 2.7.0 instance on RH9..not sure of the python. Had a bunch customer sites in it using VHM. Nothing in front of the zope. (I know) Moved to a new server, RHE4, Zope 2.7.5 on Python 2.3.5 Just moved the Data.fs and moved products and restarted. Perfect. Now one customer says they are seeing question marks in places where bullets and apostrophes, etc. should be. Looking at the encoding the browser picks up and it always goes to UTF-8. If I manually switch it to Western ISO the page looks fine. Where does this get set? In Linux? In Python? In Zope? ...and if so, where exactly and how to change it? Any help appreciated. Allen Peter Bengtsson wrote: Set the locale on the Zope installation in zope.conf If you're unsure about your code, try this $ set | grep LANG ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Character set problems
We figured this out. Apache had "AddDefaultCharset UTF-8" set. Changed it to "AddDefaultCharset ISO-8859-1". Although Zope renders the page, it still has to pass through Apache on its way down to the client. Thanks for the help! Allen Niklas Saers wrote: Hi Dragos, Note: If your Zope runs over an Apache you must check also the Apache settings (to serve pages utf-8 encoded) Thank you very much for all your suggestions. Just a question to this one, what Apache directive should I set here? I was under the impression that Apache serves the pages as-is with the following directives: ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ProxyHTMLURLMap http://localhost:8080 http://www.mysite.com SetOutputFilter proxy-html Cheers Nik ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Vservers and ZOPE
This same hosting thread went on a short time ago but I will throw another big plug for Zettai.net. George and his team have been incredibly helpful and supportive. Lots of great information upon signing up and help is ALWAYS there through a wide variety of communication channels. hth -Allen Philip Kilner wrote: Hi Benmania, Benmania Guin wrote: I have some experience with Zope on my desktop pc with an WIN XP operating system. Now I want to order my own virtual server but I am unsure about the features I will need and I do not know how to install ZOPE on such a system at all. Can you give me any advice what features I will certainly need, e.g. SSH(?), Root access(?)? Can you tell me where I can find more infos about this issue (installing ZOPE on different VServers with different OSs)? I've just ordered the "Zope Virtual Server" from Zettai, which seemed to mysteriously morph from a Zope instance to a virtual server part way through the sign up process - which I am very happy about. I wouldn't have chosen a virtual server initially, because all my experience is Win32 and I don't have time to learn for this project. However, it feels like the best of both worlds - I didn't have to set Zope up at all, it was all in place for me (Zope 2.8.1, Plone 2.1 + the "classic" products I'd have expected to install), and I get SSH and Root access more or less as a bonus. The only thing I have had to get my head around is the file system - but that hasn't been hard at all. You might consider a Zettai account, or you might want to see how they do it, 'cos they seem to have got it right from my PoV. Put it this way - I bought a second identical account less than a week later for a personal project. I hope my inquiries were not too trivial to be answered. Not at all - this is important! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] COREBlog 1.2.1 on Zope 2.7.5 year_created problem
New COREBlog 1.2.1 install on Zope 2.7.5 on RHE3 Linux. I can add an instance of a blog and create categories and change settings. Adding an entry gives a name error: Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module App.special_dtml, line 62, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 137, in __call__ URL: http:///blog/entry_html/manage_main Physical Path:/blog/entry_html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 137, in __call__ URL: http://xx/blog/entry_body/manage_main Physical Path:/blog/entry_body * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Util, line 198, in eval __traceback_info__: month_created * Module , line 0, in ? NameError: name 'year_created' is not defined Just curious if anyone else has seen this? Thanks Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Managed Server
+1 for Zettai. Have had great success with them. If you need a place to stick a server then I highly recommend bayMountain. Amazing service and support. A great team of open source and Zope experts there. Allen David wrote: J Cameron Cooper wrote: Dan Gaibel wrote: Hello Folks, I'm interested in finding a company that will do monthly managed zope hosting. We're looking for a dedicated machine. I know that Zope Corp does this and it is quite expensive. I wonder if anyone has had any experiences with such a service. Any advice is highly appreciated, and I apologize if this list is an inappropriate venue to pose such a question. There are a number of these companies around. iMeme and Zettai come to mind. I'm sure there are more nowadays. --jcc Dan, I use Zettai. Can't complain at all. Even though I use virtual host plan (I share a server with about 8(?) others) the performance is better than I feared might be the case. The best of all worlds is to at least co-host your server. But thats more over-head for the developer. Zettai support is excellent. (although they do get cranky if you lean too much on them). I just checked out the iMeme site - and they may be pretty good ( jcc wouldn't recommend them otherwise) but their presentation is gawd-awful and not confidence inspiring. David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Parameter generating an exception? (also recataloging issue)
I will bounce this out since I tried this recently while testing an upgrade. We are on 2.7.5 and our 200K+ news articles are all ZClass objects and are cataloged. We setup a 2.8.6 instance and made sure all Products, Extension, etc. were the same. Copied our Data.fs and brought up the instance. I could browse around the site fine until I did anything that utilized the catalog to look up the news articles. Did not find anything. I could navigate directly to an article and it displayed fine. I then tried to clear the catalog and find objects of the zclass typeit found nothing. This has been a rather large stumbling block to us upgrading. Any ideas? No rush...no emergency ... but would like to upgrade sometime soon hopefully. thanks Allen Jonathan wrote: - Original Message - From: "Tit-Liviu Leontin" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 16, 2006 10:42 AM Subject: Re: [Zope] Parameter generating an exception? Thanks for the quick reply, Andreas. Please don't laugh now -- but how do I recatalog everything? :) I told you it's Chinese to me. Many thanks again, Easy to do via the ZMI: click on the Catalog, then use the Advanced tab to clear the catalog (remove all existing entries) and then use the "Find Objects" tab to 'recatalog' everything. Warning: make a backup first!!! Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Parameter generating an exception? (also recataloging issue)
Sorry. That is what I meant I did by trying to find the objects after clearing. The Find tab found none of those zclass objects. I am getting that test instance set back up again with our current Data.fs again and am going to try the manage_convertIndexes that Jonathan mentioned to see if that works. Thanks Allen Dieter Maurer wrote: Allen Schmidt Sr. wrote at 2006-8-16 11:07 -0400: ... I then tried to clear the catalog and find objects of the zclass typeit found nothing. When you clear the catalog, then it is cleared (i.e. empty). You won't find anything thereafter. You have to recatalog all objects that you want to be found by your catalog. I simple cases, you can do this via the catalog's "Find" tab. In more difficult cases, you need to write a script that uses "catalog_object" (maybe "index_object") for/on the objects to be catalogued. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-in sorting bug (collector #1884)
r.__cmp__(x,y) requires y to be a 'r', not a 'ImplicitAcquirerWrapper' http://www.zope.org/Collectors/Zope/1884 I see this is a pending case but does anyone have any idea if it will be fixed in future releases? Finally got a 2.8.8 instance running with our Data (from 2.7.5) and was able to run the catalog index fixer with help from Chris Withers (THANKS!!) and all was looking good. The pages that looked up news stories from the catalog are looking good. Then I went to a page that displayed Houses (from ZSQL methods) and does a sort on the results as is the case in MANY pages we have. The top line is the result on the error page. Seems its a well know bug but does not look like its an issue to most but it is to us. Any ideas?? Thanks Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] insert_id with MySQL an Z SQL Method
I have been using this successfully for a while. Don't remember where I found out about it though: insert stuff... select alert_id from entertainment_alerts where alert_id = @@identity Allen Cliff Ford wrote: Search the mailing list archives for July - there were several contributions to this question. Roughly: insert ... select LAST_INSERT_ID() as table_id_seq Cliff Ferhat Ayaz wrote: Hi, I have a Z SQL Method with an insert expression. To the inserted row will be assigned an auto_increment id. How can I get the last inserted id? I tryed the following both commands in one Z SQL method. Unfortunatly this produces an error. insert into categories (parent_id,logo,active) values ( , , , ); SELECT currval('table_id_seq'); Thanks for your helps Greets, Ferhat __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading Zope
If you are using any zClass objects and have them cataloged, then you need to run a script against them to do the reindexing, as I found out that changed at 2.8. Also if you are using DTML and using any sorting within dtml-in segments, you will need to patch a file. Pages that use sorting on dtml-in throw a weird error. The patch works fine but since it sounds like no one who maintains core Zope uses DTML, that bug probably won't get really fixed. There is an outstanding ticket open on it. Those are the things I have found so far. We are on 2.7.5 and now that those issues are worked out we are working on our upgrade strategy. Allen Nightflyer wrote: Hi All, I've been asked to migrate an ancient Zope server from 2.1.x to the latest 2.x or 3.x version. This server only have a couple of applications, both using Z SQL Methods, DHTML methods and documents, some products and some external methods. They don't use ZPT or Script (python) at all. I'd like to know if you think that such migration is feasible or if I'll encounter some problems. Do you think it is better to migrate to the latest version of the 2.x or 3.x branch? If you have any link on this subject is really appreciated. Bye, Andrew. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zeo Client hanging
I see references to asyncore.py near the end of the thread listing when using DeadLockDebugger and seeing a stuck thread process. The tread eventually clears out but sometimes an impatient user reloads, reloads, reloads...and then all 4 threads are stuck on exact same thing. Then you can see the same URL jump to the other Zope/ZEO client and same thing happens there. Another few reloads and one user has effectively crashed the siteuntil the threads clear themselves out. Usually is a catalog search for a news article or something spanning our 6 years of online news articles searching on the word 'bob' or something like that. +1 for DeadlockDebugger... love it. Allen Paul Winkler wrote: On Wed, Oct 18, 2006 at 07:32:38AM +0200, Maciej Wisniowski wrote: zope 2.8.5 + zeo python 2.3.4 (red hat distribution) Red Hat RHEL 4 Plone 2.1.2 Our zeo clients hang intermittently. We have no way of reproducing the problem, but it occurs daily. The client hangs and a restart seems to fix the problem. Install DeadlockDebugger and you'll be able to see what is the state of your threads when Zope becomes unresponsive. In the event log with tracing on we get Trace zeo.zrpc.Connection(C) wait(16697) {server:8100} pending, async=0 There are hundreds to thousands of these until the server is restarted. In the zeo log we get Error caught in asyncore asyncore.py error:(110,'Connection timed out') I'm not sure what these errors are. Maybe firewall between zeo server and zeo client closes the connections or something like that? That was my guess too. See this thread: http://aspn.activestate.com/ASPN/Mail/Message/zope-list/2916870 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pool_size
Used to use the debug a lot but then when we found DeadLockDebugger (DLD), I was hooked...mainly because there is no 'baggage' to loading the page. Debug actually uses one of the threads to show you that page. The content of the thread sorta looks like the whole REQUEST object, which is helpful sometimes too. DLD is fast (normally) and sometimes rather addictive to watch...to see what your servers are doing. We use ZEO and 2 public clients fronted by squid and a third we use as an internal admin client that is not served by squid. I just use a set of bookmarked tabs in FireFox and open a tab for each server. Then I just hit 'reload all' and see what they are all doing. Just my 2 cents. Allen Brian Sullivan wrote: On 1/17/07, Doyon, Jean-Francois <[EMAIL PROTECTED]> wrote: This information is also available in the Control Panel's debug section. You can see which thread is busy doing what ... Depending on exactly how "locked up" it is, you can try going there, see what the current requests are pending, and in which thread. That panel also shows you cache information, how many objects are loaded and so on. This could help you determine if you're leaking references to certain objects for instance? When it is locked up I can't access the control panel. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml Z SQL doubt
Just use REPLACE instead of INSERT. If REPLACE statement is able to determine a unique value for a row and sees that that unique value exists for a row, the valued will be updated. If it does not exist, a new row will be inserted. This is what I use with MySQL. Allen Tino Wildenhain wrote: Remil Mathew schrieb: Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Well thats not business of ZSQL methods but rather stuff you do with the instruments of your database. Say SQL (or whatever SQL like mysql has there) IIRC, mysql has some kind of UPSERT which should handle it. If not, stored procedure or trigger etc could do it. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SiteErrorLog
or ZSQL methods and where they barf in the call. Sounds cool Peter! Thanks Allen Jonathan wrote: - Original Message - From: "Peter Bengtsson" <[EMAIL PROTECTED]> To: "zope user list" Sent: Wednesday, July 11, 2007 11:16 AM Subject: [Zope] SiteErrorLog I've been playing with a new monkey patch product for zope 2.8 (at least) and I confidentally call it 'BetterSiteErrorLog'. The only two features I've added so far is to make the error log searchable and that it shows the date of errors older than one day. What other products are there out there already that I should look at? What other features have you guys been desiring in the error_log but never had the time to do something about? Wish list item: inclusion of line number where error occurs in a dtml method (or code that caused the error) Many many thanks if you can make this happen! Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: compile time optimizations for python
So would this also apply to older zopes? Like 2.7.5?? Exactly where is that changed and in what increments are safe to increase it by? Thanks Allen Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh V. wrote: Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - Tune the ZEO disk cache size (the warning sign is seen lots of "ZEO cache flip" entries in the event log). Can you explain this some more? 1. Do we increase the cache size when we see these ZEO cache flips? Yes In general, keep increasing it until they are no longer "noticeable". 2. What is a "good" rate for these cache flips? I don't have a firm sense, but no oftener than every hour, say: when the cache flips, you lose half the working set (the "oldest" half). Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHkfTy+gerLs4ltQ4RAsrnAKCpQBnp/eARWtDLbLaVqxU6acd+NwCghkpP oKdWmCIhDs8dUW8uNtHXk3I= =DhiR -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] 2.10 and ZClasses
We are still running 2.7.5 but really want to upgrade. Changes.txt in 2.10.5 state ZClasses are deprecated. CAN they still be used?? Not at all or just not recommended and why? What is the highest version we can safely upgrade to then? Thanks Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] 2.10 and ZClasses
Is there anyone out there still using ZClasses on later versions of Zope?? Care to share any experiences? Off-list responses are fine. Thanks! Allen Andreas Jung wrote: --On 26. Februar 2008 07:30:04 -0500 "Allen Schmidt Sr." <[EMAIL PROTECTED]> wrote: We are still running 2.7.5 but really want to upgrade. Changes.txt in 2.10.5 state ZClasses are deprecated. Deprecated means: they are still working (or at least they should). - aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: 2.10 and ZClasses
I understand and appreciate your responses. Finally got some things straightened out and after changing DA settings to point to real database servers (instead of localhost), and commenting things out that were calling unneeded parts, I am able to get our site up (on some pages) with yesterdays news stored in the Data.fs. I am able to view an actual news ZClass objects with our site header and footer wrapped around it. Not bad. That shows they do work. Long way to go but it's a start But, on the page that does the catalog lookup of the day's news stories, it is a blank page. No errors in the error_log. But if I go to the ArchiveCatalog (our name for our Catalog) and click on the Catalog tab in the ZMI, I get this error: Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Shared.DC.Scripts.Bindings, line 313, in __call__ Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec Module App.special_dtml, line 178, in _exec Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_In, line 584, in renderwb Module Products.ZCatalog.Lazy, line 144, in __getitem__ IndexError: list index out of range All the other tabs work. Allen Andreas Jung wrote: --On 26. Februar 2008 12:31:49 -0500 "Allen Schmidt Sr." <[EMAIL PROTECTED]> wrote: I think he just meant that others should keep their responses to me on the list...as I offered the option to respond off-list, with the intention of keeping the noise down to the couple guys who may benefit and still use ZClasses. Although I don#t care much about ZClasses I would like to hear if there are any issues with them. Public noise is not a problem. If known issues are discussed in public than other people might find them later in the archive. That's just the whole point why I would like to avoid private discussions about things of public interest. Andre as ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8
That sounds so easy. We have one ZClass but it is the basis of almost our entire newspaper website. The news ZClass was built in 2000 and put into production when we went live on Zope in Feb 2001 (just before the guys at Zope Corp said that ZClasss were bad). Over 7 full years of daily news as ZClass objects. We are in the same boat as we want to move from 2.7.5 to a later version. We could switch to SQL articles but then we would have to make sure all the old URLs still functioned as our content is all over the search engines...and convert everywhere there are tools to manage story creation, importing, editing, etc. Yuck. We could just make the cutover one day and just keep an instance running for the old stuff and all new stuff runs from SQL. Has anyone every built tools to inspect a ZClass and produce a python product on the other end? That would be slick...but probably not worth the effort if only a few still use them. Allen Jens Vagelpohl wrote: On Mar 26, 2008, at 11:19 , Yuri wrote: Hi! I've got a trouble importing a ZClass app to 2.9.8 from 2.6.1. IMHO you're not investing your time wisely trying to make a ZClas application work on a later Zope version. They're unsupported and dead. I would keep the old setup running and spend time on recreating the ZClass product functionality as a real Zope product, and then create a script to migrate the old ZClass instances over. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8
No idea even where to start. I played with creating a 'boring' object a while back but I am pretty sure ours is a tad more complicated. All the parts of our site I work on are in SQL and was never involved in the ZClass News stuff. It just works...and continues to work...but is limiting us from upgrading. So, where to start. Once we get some guidance, we could probably do it ourselves. Anyone willing to a$$$ist? We don't have a budget for it but could scrape something together to get started. Even just to log in and look at what we have and say, "Ah, you need to do this and this and this, then it will work." I know not that simple, but that is what I am trying to find out. Thanks Allen Jens Vagelpohl wrote: On Mar 26, 2008, at 12:59 , Allen Schmidt Sr. wrote: That sounds so easy. We have one ZClass but it is the basis of almost our entire newspaper website. The news ZClass was built in 2000 and put into production when we went live on Zope in Feb 2001 (just before the guys at Zope Corp said that ZClasss were bad). Over 7 full years of daily news as ZClass objects. We are in the same boat as we want to move from 2.7.5 to a later version. We could switch to SQL articles but then we would have to make sure all the old URLs still functioned as our content is all over the search engines...and convert everywhere there are tools to manage story creation, importing, editing, etc. Yuck. We could just make the cutover one day and just keep an instance running for the old stuff and all new stuff runs from SQL. When you build a "real" Zope product to replace the ZClasses it is no problem to make it behave like the old instances and put them in the same place as the old instance so the URL remains the same. Switching away from ZClasses does not mean you must change instance URLs etc. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8
Thanks for the info. Our Data.fs hovers in the 7-8 gig range and we have been running with Zope for 8 years. And the news parts are just a fraction of our content and a newspaper website with many different vertical products and sections. I would say that makes us married to Zope2! ;) I appreciate the responses and info. I have been contacted offlist by someone who is offering assistance. We'll see where that goes. Thanks again. Allen Andreas Jung wrote: --On 26. März 2008 09:48:11 -0400 "Allen Schmidt Sr." <[EMAIL PROTECTED]> wrote: No idea even where to start. I played with creating a 'boring' object a while back but I am pretty sure ours is a tad more complicated. All the parts of our site I work on are in SQL and was never involved in the ZClass News stuff. It just works...and continues to work...but is limiting us from upgrading. So, where to start. Once we get some guidance, we could probably do it ourselves. Anyone willing to a$$$ist? We don't have a budget for it but could scrape something together to get started. Even just to log in and look at what we have and say, "Ah, you need to do this and this and this, then it will work." I know not that simple, but that is what I am trying to find out. We know basically nothing about your application and needs..so we can basically give only highlevel advices. If you can: go with Grok if you can divorce from the Zope 2 world. Representing your entities like news items using a simple schema based implementation is not a big deal. Group news items and other content objects in containers is also straight forward...but no idea but further business logic and further requirements. So if you aren't married with Zope 2 and when you have the chance making a cut, go with Grok...but it might require a close analysis of your current system. Andre as ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] ZServer uncaptured python exception
Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- 2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56590 at 0xb26898ac channel#: 890 requests:> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
That makes sense...but I think they are still related, sort of. The thread you offered says the error comes from clients disconnecting...hitting the stop button or loading a different page...effectively doing the same thing. But they are hitting the stop button BECAUSE the site is slow and spinning. I have Deadlockdebugger and that shows a variety of things. Mostly that all 4 threads are always full. I will keep looking. Allen Jonathan wrote: - Original Message - From: "Allen Schmidt Sr." <[EMAIL PROTECTED]> To: "Zope Users" Sent: Tuesday, April 01, 2008 10:11 AM Subject: [Zope] ZServer uncaptured python exception Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- 2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56590 at 0xb26898ac channel#: 890 requests:> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) I am not sure that the error messages you are seeing are related to your high cpu utilization. There is a discussion thread on your error here: http://aspn.activestate.com/ASPN/Mail/Message/zope-list/3492748 If you google 'debug spinning zope' you will find links on how to track down cpu consumption. HTH Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
Thanks Chris. Seeing tons of squid messages about the new msnbotand it is not following our robots.txt directive. In fact, I have even disallowed it completely and it still goes where it wants. And the updated version was supposed to have been released end of last weekabout the time our zeo clients started pegging 99%. Chris Withers wrote: Allen Schmidt Sr. wrote: Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') This exception is annoying in that it's pretty meaningless. Clients disconnecting midway through may be quite a normal thing and it's annoying there's no way to catch this exception if you want to. In your case, I'd guess that your load has recently gone way up (maybe a search engine spider, some other spider of people with M$ Office installed hammering your site for webdav requests) but I wouldn't worry about these... cheers, Chris ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] anyone heard of Zamasing?
A reason to upgrade our 2.7.5!!! I have been on this list for over 7 years and have never heard of this company. I wonder how many other cool Zope2 things are being done quietly in the shadows. Bring your cool stuff into the light for others to enjoy...and pay for if needed. I for one have no problem buying useful tools or products for Zope. Thanks for the tip Chris. Allen Tom Von Lahndorff wrote: Thats pretty awesome. It's "zamazing" to me that Zope 2 is not a de facto platform for "Web 2.0" projects. I think it has some major benefits over Rails and maybe even Django but there seems to be no interest in it from that community. This is a great start. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Bug in ZSQL test?
I know, I know...too old to worry about... Zope 2.8.9.1 on RedHat and MySQL5 In the Test tab of a ZSQL method, where the query has parameters, when we enter parameters that generate a result of more than 20 rows, we get the link for next 20 results. However, the parameters are not getting passed in and the next page shows all the rows as if no parameters passed. Anyone else seen this? Thanks Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Question about Roles
Zope 2.8.9.1 I have a user in the root acl_users but no Roles set. Then I go into the folder I want the user to have access in and using Local Roles, I assign Manager. Then on the page I use: show the update and delete form buttons For me, with Manager assigned in the root, I can see the buttons. But for this user, the buttons are not there. When I dtml-var the above getRoles() she only shows as 'Authenticated' but not 'Manager' and I show both. Just wondering why?? Thanks Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Question about Roles
That worked perfectly. Thanks Matt! Allen Behrens Matt - Grand Rapids wrote: You need to check to see if said user has that role on the object in question. getRoles is only going to show you roles assigned in the User Folder, not local roles. This code is doing a similar thing on my site, with a different role: ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Was Problem using nested dtml-in with zsql
+1 We love zope on our site and continue to build new things almost daily and all with DTML and ZSQL. Not a single line of ZPT anywhere within our 7gb Data.fs that has been making us all money and employing many folks for almost 8 years now as a newspaper website. AND in the birthplace of Zope www.Fredericksburg.com/Virginia/ 8^) Cheers! -Allen Tim Nash wrote: +1 Well spoken. It is painful to see all the cheers for django templates when dtml has been around longer and is just as good, maybe better. ZPT may also be fantastic but I haven't needed them yet. They seem to be designed to solve web editing problems circa 2002. -Tim On Sat, Nov 8, 2008 at 11:47 AM, Kees de Brabander <[EMAIL PROTECTED]> wrote: +1 cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Namens Garry Saddington Verzonden: zaterdag 8 november 2008 12:54 Aan: zope@zope.org Onderwerp: Re: [Zope] Was Problem using nested dtml-in with zsql On Saturday 08 November 2008 06:21, Andreas Jung wrote: > Any particular reason for using DTML instead of ZPT? DTML is dead. Firstly let me say that I do not wish to relight the ZPT vs DTML argument, only to make a few points. I find this an extraordinary attitude coming from someone so important to this community. I am sure there are many developments out there relying on DTML and I am also sure that the developers are earning a living from those developments. Will employers be happy that the technology used for their sites is "dead" ? Will they continue to pay these developers? Can you give one reason why DTML is bad that is not based on personal preference, presentation tools or the cognitive ability of developers to understand where variables are coming from? Does it not work if used properly? If someone comes to Zope and prefers to use DTML then let him, don't criticise instead of help him. Zope is a fantastic piece of software, however it is used, and its use should be encouraged. I prefer DTML and always have done and always will, no matter what this list says and I am sure there are many more like me. DTML is available and is used, let's support it properly on this list. While I was learning Zope I had many questions, but I had to work most of them out myself, not wanting to get lambasted again on this list for using DTML. If help was more forthcoming I'm sure that I would have learned more quickly rather than in relative isolation. Is the ZMI going to be re-written using ZPT? Regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1775 - Release Date: 8-11-2008 9:56 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Was Problem using nested dtml-in with zsql
Of course!! That goes without saying, but I guess it does not get said often enough. Thanks to all you hard working contributors who keep DTML alive!!! -Allen Tim Nash wrote: BTW, Andreas, It is probably extra work to maintain both ZPT and DTML in each Zope release. We want you to know that we appreciate the extra work and your skills. :) On Sat, Nov 8, 2008 at 4:01 PM, Allen Schmidt Sr. <[EMAIL PROTECTED]> wrote: +1 We love zope on our site and continue to build new things almost daily and all with DTML and ZSQL. Not a single line of ZPT anywhere within our 7gb Data.fs that has been making us all money and employing many folks for almost 8 years now as a newspaper website. AND in the birthplace of Zope www.Fredericksburg.com/Virginia/ 8^) Cheers! -Allen Tim Nash wrote: +1 Well spoken. It is painful to see all the cheers for django templates when dtml has been around longer and is just as good, maybe better. ZPT may also be fantastic but I haven't needed them yet. They seem to be designed to solve web editing problems circa 2002. -Tim On Sat, Nov 8, 2008 at 11:47 AM, Kees de Brabander <[EMAIL PROTECTED]> wrote: +1 cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Namens Garry Saddington Verzonden: zaterdag 8 november 2008 12:54 Aan: zope@zope.org Onderwerp: Re: [Zope] Was Problem using nested dtml-in with zsql On Saturday 08 November 2008 06:21, Andreas Jung wrote: > Any particular reason for using DTML instead of ZPT? DTML is dead. Firstly let me say that I do not wish to relight the ZPT vs DTML argument, only to make a few points. I find this an extraordinary attitude coming from someone so important to this community. I am sure there are many developments out there relying on DTML and I am also sure that the developers are earning a living from those developments. Will employers be happy that the technology used for their sites is "dead" ? Will they continue to pay these developers? Can you give one reason why DTML is bad that is not based on personal preference, presentation tools or the cognitive ability of developers to understand where variables are coming from? Does it not work if used properly? If someone comes to Zope and prefers to use DTML then let him, don't criticise instead of help him. Zope is a fantastic piece of software, however it is used, and its use should be encouraged. I prefer DTML and always have done and always will, no matter what this list says and I am sure there are many more like me. DTML is available and is used, let's support it properly on this list. While I was learning Zope I had many questions, but I had to work most of them out myself, not wanting to get lambasted again on this list for using DTML. If help was more forthcoming I'm sure that I would have learned more quickly rather than in relative isolation. Is the ZMI going to be re-written using ZPT? Regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1775 - Release Date: 8-11-2008 9:56 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] POSKeyError
Is is ok to just run this anytime as a preventive measure? We had a POSkeyerror that would show up now and again but we could never nail it down. Are there any drawbacks to running this on a production server? Thanks -Allen Dieter Maurer wrote: Rupesh P Raj wrote at 2008-12-2 13:46 +0530: I am getting the following POSKeyError. Can anyone please tell me, what is the reason for this error, and how can I rectify it: 2008-12-02T03:16:11 ERROR ZODB.Connection Couldn't load state for 0x18fb01 Traceback (most recent call last): File "/opt/Zope-2.8.8/lib/python/ZODB/Connection.py", line 704, in setstate self._setstate(obj) File "/opt/Zope-2.8.8/lib/python/ZODB/Connection.py", line 740, in _setstate p, serial = self._storage.load(obj._p_oid, self._version) File "/opt/Zope-2.8.8/lib/python/ZEO/ClientStorage.py", line 746, in load return self.loadEx(oid, version)[:2] File "/opt/Zope-2.8.8/lib/python/ZEO/ClientStorage.py", line 769, in loadEx data, tid, ver = self._server.loadEx(oid, version) File "/opt/Zope-2.8.8/lib/python/ZEO/ServerStub.py", line 192, in loadEx return self.rpc.call("loadEx", oid, version) File "/opt/Zope-2.8.8/lib/python/ZEO/zrpc/connection.py", line 536, in call raise inst # error raised by server POSKeyError: 0x18fb01 Your ZODB contains an object referencing another object with object id "0x18fb01" but this object is missing (not in the ZODB). I.e., you have a dangling (persistent) reference. You can use the "fsrefs" utility to check for such dangling references. It will tell you about the referencing object and its broken references. You can fetch the referencing object and try to fix it (there is a HowTo somewhere how you can approach this). ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Question about URL lookups
Sorry if this is too generic a question but thought I would throw it out. Interested in doing a page that does a ZSQL lookup based URL parts but not like a normal db lookup. I want another way to do: domain.com/LocalSearchFolder/lookup?category=27&state=va&city=Fredericksburg More like this: domain.com/LocalSearchFolder/L-Fredericksburg/S-VA/C-Plumbing And that page (u...DTML preferably) would display the lookup results for Plumbing contractors in Fredericksburg, VA. Any pointers to ideas?? Thanks! -Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Reconnection session_data to own Session.fs storage
Somehow, and not sure how, our session_data objects got deleted. No one admits doing it so no idea what happened. I recreated the objects with the same IDs and even setup the ZODB mount point to point to the right parts. But our SESSION calls won't write the the separate Session.fs storage and it writes every SESION usage to our main Data.fs as an anon transaction. We are on 2.8.10 running ZEO on one server and 5 zope clients on two other servers. The Session.fs file sits along with the Data.fs file but never gets used. Any idea how to reconnect the parts again? Thanks Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Reconnection session_data to own Session.fs storage
I ran the debug to verify the mount point and got this: >>> folder.__dict__['session_data'] >>> And in the session_folder object in the root, the session_data objects shows as a TransientObjectContainer and not a ZODB Mount Point. Dieter Maurer wrote: > Allen Schmidt Sr. wrote at 2009-3-5 10:34 -0500: >> Somehow, and not sure how, our session_data objects got deleted. No one >> admits doing it so no idea what happened. >> I recreated the objects with the same IDs and even setup the ZODB mount >> point to point to the right parts. But our SESSION calls won't write the >> the separate Session.fs storage and it writes every SESION usage to our >> main Data.fs as an anon transaction. >> >> We are on 2.8.10 running ZEO on one server and 5 zope clients on two >> other servers. The Session.fs file sits along with the Data.fs file but >> never gets used. >> >> Any idea how to reconnect the parts again? > > The so called "session_data_manager" tells Zope where the > "session_data" is located. > > Apparently, your "session_data_manager" does not look at > the place of your mount point or your mount point does not work/is not > active. > > First verify the "session_data_manager" configuration (this easy -- look > in the ZMI). > If this is correct, verify the mount point. > That is not so easy. The best way is to start an interactive > Python interpreter ("bin/zopectl debug" on *nix). > Then use > > folder = app.unrestrictedTraverse('path_to_folder_containing_the_mount') > folder._p_activate() # load the folder > folder.__dict__['Id_of_your_mount_point'] > > You should see an "ZODBMountPoint" (or something along this lines). > > If you really see a mount point, verify its configuration > (that's easy again -- thus, you can do that before the more > difficult step): is the mount point really in the storage you want? > > > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Compare String to Integer
SELECTED /> That should do it. -Allen Bobby wrote: > Hi, > > I can't compare a string (pid) to an integer (brand_id); what's is wrong with > my code below? pid is being passed in the URL as &pid= , brand_id is an > integer from a database table. Could someone help me with this so that I > could make the if statement comparison work? Thanks. > > >SELECTED > /> > > > > > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Cheap Zope hosting
Now that HighSpeedRails is closing down at midnight tonight, does anyone have any low-cost suggestions for hosting a handful of low-traffic domains in a single Zope?? Thanks -Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Reconnection session_data to own Session.fs storage
Dieter Maurer wrote: > Allen Schmidt Sr. wrote at 2009-3-5 10:34 -0500: > >> Somehow, and not sure how, our session_data objects got deleted. No one >> admits doing it so no idea what happened. >> I recreated the objects with the same IDs and even setup the ZODB mount >> point to point to the right parts. But our SESSION calls won't write the >> the separate Session.fs storage and it writes every SESION usage to our >> main Data.fs as an anon transaction. >> >> We are on 2.8.10 running ZEO on one server and 5 zope clients on two >> other servers. The Session.fs file sits along with the Data.fs file but >> never gets used. >> >> Any idea how to reconnect the parts again? >> > > The so called "session_data_manager" tells Zope where the > "session_data" is located. > > Apparently, your "session_data_manager" does not look at > the place of your mount point or your mount point does not work/is not > active. > > First verify the "session_data_manager" configuration (this easy -- look > in the ZMI). > If this is correct, verify the mount point. > That is not so easy. The best way is to start an interactive > Python interpreter ("bin/zopectl debug" on *nix). > Then use > > folder = app.unrestrictedTraverse('path_to_folder_containing_the_mount') > folder._p_activate() # load the folder > folder.__dict__['Id_of_your_mount_point'] > > You should see an "ZODBMountPoint" (or something along this lines). > > If you really see a mount point, verify its configuration > (that's easy again -- thus, you can do that before the more > difficult step): is the mount point really in the storage you want? I completely missed this response. Still having this issue so going back over this again. Can you identify which things and where for the items above? path_to_folder_containing_the_mount and ID_of_your_mount_point This is in the zope.conf: mount-point /session_folder server blahblah.com: storage session name session client session var $INSTANCE/var This is in the zeo.conf: path $INSTANCE/var/Session.fs In the ZMI, there are: /session_folder/ ( a regular folder ) session_data ( Transient Object Container ) /session_data_manager ( Session Data Manager ) All the parts seem right but its not workingsession writes wind up as anonymous transactions in the main ZODB. Any ideas? Thanks! -Allen ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Reconnection session_data to own Session.fs storage
Dieter Maurer wrote: Allen Schmidt Sr. wrote at 2009-8-4 13:45 -0400: ... In the ZMI, there are: /session_folder/ ( a regular folder ) session_data ( Transient Object Container ) /session_data_manager ( Session Data Manager ) All the parts seem right but its not workingsession writes wind up as anonymous transactions in the main ZODB. Any ideas? Verify that "session_folder" is a mount point and not a regular folder. This is not trivial as a mount point, once mounted, tries hard to become the mounted object (this happens in its "__of__" method). You must avoid acquisition to check that it is indeed a mount point. One way is to use "app._p_activate(); app.__dict__['session_folder']". This must return a mount point, not a folder. I verified using your process that it is indeed just a folder. So I deleted the session_folder in the root and then tried to add a ZODB mount point in the root and it showed the session_folder was ready to be created. I made sure that option was checked and clicked Ok. It reloaded the root folder and the new session_folder was there, but it still seems like it is just a regular folder and does not identify itself as a mount point. I also added the session_data object into that folder as a Transient Object Container as it was before. Does the session_data_manager that points to that session_data folder also have to be removed in this process? Could be holding it up somehow? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [Zope-Annce] ZClasses resurrected
So...we are on 2.8.10 and our biggest app on our site is a ZClass based news object. How close will this provide functionality to just drop our data.fs into 2.12 and have those zclasses work? This is huge news! Thanks Dieter -Allen Dieter Maurer wrote: > The Zope developers have ripped out the ZClasses functionality from > the Zope core in version 2.12. > > As promised, I have collected the former code in a new package > ("dm.zopepatches.zclasses" on PyPI). When imported, this package > uses monkey patching to restore the ZClasses functionality. > New tests verify the functionality as formerly described in the > Zope book (2.7 edition). > > To make "ZClasses" available again, > the ZODB root database requires "dm.zopepatches.zclasses.ClassFactory" > as "class-factory" option in the Zope configuration file. > When this option is processed, the package is imported > and the monkey patching takes place. > > > The current version does not yet restore the "distribution" functionality > (of Zope products). Let me know when you need this functionality. > > ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] persistent sessions with ZEO not working
What we did was create a Session.fs and added to the zope and zeo conf files. Then after restarting the zopes and zeo, in the ZMI, create a ZODB mount point and it should see the Session.fs and build the parts in the root of the ZMI that you need. Been a long time but I think those are the steps. That way the session data is its own data.fs file and is persistent across zopes and restarts, etc. The problem is that it IS a data.fs file and therefore an undoing storage. You will have to pack it the same as your main data file. Not a big deal for us as its not used much. Just pack back a couple days so you don't whip any session data that could be going on at that moment. Anyone please chime in if I am missing something. Just taking a shot at an answer based on our set up. Your mileage may vary. Allen Marko Kruijer wrote: > I'm maintaining a ZEO cluster setup that currently consists of 2 Zope > clients and 1 ZEO server (Zope version is 2.10.5.) > > I'm using sessions on the hosted site and am having trouble sharing them > across the 2 servers. > > I've done a config as described here: > http://www.zopelabs.com/cookbook/1061234337 > > Everything runs fine, except my sessions 'change' randomly. For example > if I output my SESSION data I notice that the sessions ID is not > persistent over i.e. 10 page loads. > The contents of the sessions also change, of course. > > Am I missing something here? The central storage of the sessions should > fix this if i'm correct, but it doesn't. > Is this impossible to do, or is another issue causing this stange behaviour? > > best regards, > Marko > > > ___ > Zope maillist - Zope@zope.org > https://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > https://mail.zope.org/mailman/listinfo/zope-announce > https://mail.zope.org/mailman/listinfo/zope-dev ) > > > ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] persistent sessions with ZEO not working
Do you have the ZODB mount point set up and pointing to your session_folder? Marko Kruijer wrote: > That's not my problem, the session is in it's own .fs file, and it is > persistent. > The problem is that the two zope clients use different sessions id's > for the same user, that's not supposed to happen imo. > > Allen Schmidt Sr. wrote: >> What we did was create a Session.fs and added to the zope and zeo >> conf files. Then after restarting the zopes and zeo, in the ZMI, >> create a ZODB mount point and it should see the Session.fs and build >> the parts in the root of the ZMI that you need. Been a long time but >> I think those are the steps. That way the session data is its own >> data.fs file and is persistent across zopes and restarts, etc. The >> problem is that it IS a data.fs file and therefore an undoing >> storage. You will have to pack it the same as your main data file. >> Not a big deal for us as its not used much. Just pack back a couple >> days so you don't whip any session data that could be going on at >> that moment. >> >> Anyone please chime in if I am missing something. Just taking a shot >> at an answer based on our set up. >> Your mileage may vary. >> >> Allen >> >> >> Marko Kruijer wrote: >>> I'm maintaining a ZEO cluster setup that currently consists of 2 >>> Zope clients and 1 ZEO server (Zope version is 2.10.5.) >>> >>> I'm using sessions on the hosted site and am having trouble sharing >>> them across the 2 servers. >>> >>> I've done a config as described here: >>> http://www.zopelabs.com/cookbook/1061234337 >>> >>> Everything runs fine, except my sessions 'change' randomly. For >>> example if I output my SESSION data I notice that the sessions ID is >>> not persistent over i.e. 10 page loads. >>> The contents of the sessions also change, of course. >>> >>> Am I missing something here? The central storage of the sessions >>> should fix this if i'm correct, but it doesn't. >>> Is this impossible to do, or is another issue causing this stange >>> behaviour? >>> >>> best regards, >>> Marko >>> >>> >>> ___ >>> Zope maillist - Zope@zope.org >>> https://mail.zope.org/mailman/listinfo/zope >>> ** No cross posts or HTML encoding! ** >>> (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce >>> https://mail.zope.org/mailman/listinfo/zope-dev ) >>> >>> >>> > > ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope changes : dtml-var
...but why wouldn't the dtml version also work as he has it below? I have hundreds of form uses just like thatand we have never used the entity syntax. -Allen On 2/15/2010 5:17 PM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin Krallinger wrote: > >> Hi, >> >> it seems that there some of the options in zope had been changed. I have >> been looking >> in the documentation but did not find any explanation on what I am >> trying to do, which >> results in a formatting error message in new zope version, but worked >> fine in the older one. >> >> I have an input form, to which I provided a dtml-var as value,something >> like: >> >> >> >> >> >> >> How can I provide as value now the variable ? It >> seems that >> there are substantial changes here. I >> > You want to use the "entity" syntax for attributes: > > > > Note that 'person_name' must be available to the template, either in the > request or as an attribute of the "context" of the template. > > > Tres. > ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope changes : dtml-var
Ha. Yup, I missed that. Makes sense now. Just did not look at the whole thing, just the dtml-var part. On 2/16/2010 2:10 AM, Jaroslav Lukesh wrote: > I think that problenm is in the name of formfield - it begins with an "_" > > - Original Message ----- > From: "Allen Schmidt Sr." > To: > Sent: Monday, February 15, 2010 11:44 PM > Subject: Re: [Zope] zope changes : dtml-var > > > >> ...but why wouldn't the dtml version also work as he has it below? I >> have hundreds of form uses just like thatand we have never used the >> entity syntax. >> >> > >>>> >>>> >>>> >>>> > ___ > Zope maillist - Zope@zope.org > https://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > https://mail.zope.org/mailman/listinfo/zope-announce > https://mail.zope.org/mailman/listinfo/zope-dev ) > > > ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Session question
Zope 2.8.9.1 on Linux with ZEO One admin client on box1 One search client on box1 Three public clients on box2 ZEO server and storage on box3 We have sessioning set up as own storage FS in ZEO. Often, when referencing a session object, we get a key error that the session object does not exist. Most of the time, just a refresh or two will fix it but not the ideal case. When I pack the session fs, even if I go to zero days, it only shrinks down to about 220meg when it used to be about 32K (if I remember correctly) after a zero days pack. Like a clean slate. The session.zec file stays about 20meg. Just curious how this all works and trying to pinpoint the problem. Have tried deleting the zec files from all clients, packing the session.fs file and flushing the cache and restarting all 5 clients only to have it back to 220meg and the same 20meg zec file. Not sure where to look next. Thanks -Allen On 10/4/2010 3:57 PM, larrymcdonn...@att.net wrote: > Hi, > > I need the old timers to help with a zope dtml-try/dtml-except conditions. I > am using Zope 2.6.1. My problem is as follows: > > > fluency -** > > > > > > > > > > > > > > > Invalid Number entered > > Click here to go back > > > >student_full_name)"> > > > > > > > > > > > > > > I will see an error if I enter a letter and not a number - > > Exception Type ValueError > Exception Value invalid literal for int(): a > > I have trapped for errors like this before using this method but no luck this > time. > > Thanks in advance, > > Larry McDonnell > > ___ > Zope maillist - Zope@zope.org > https://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > https://mail.zope.org/mailman/listinfo/zope-announce > https://mail.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Removing Zope and Python version info from request header
I know I have seen this in the past but can't find any references as to how to do this. Anyone have a quick pointer? ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )