Re: [Zope] Getting Properties of Objects in Folders Within
Max, In response to your post here: http://mail.zope.org/pipermail/zope/2005-February/156369.html I am having some difficulty getting this to work. ### # everything works fine from here object = [] results = [] subbrain = [] query = 'somekeyword' for brain in context.Catalog(meta_type='Folder', bobobase_modification_time={'query':DateTime()-14, 'range':'min'}, PrincipiaSearchSource=query) : # results.append(object) path = brain.getPath() print path print '' print '' + brain.title + '' print ' + str(path) + '' print '' + brain.description + '' # ... through here # however, what I'd like to do is get the path to every ExtFile contained in these Folders # this should get you every catalogued object in the folder for subbrain in context.Catalog(path=path): print subbrain.Title print subbrain.Description return printed print '' + str(brain.date) + '' print '' return printed Any additional help you could offer is appreciated. John T. ___ 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: Zope 2.75 tgz distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Hi Tres. Try gunzipping and untarring the tarball at the path I > sent. Not sure what the problem is, but I've had two people complain > that significant files are missing from the tarball, and that was my > take as well, upon opening this file. One was using Winzip and the > other turbozip to decompress. > > http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz > > Hope I'm wrong about this. Here is what I did to test: 8< $ wget http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz - --21:50:42-- http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz => `Zope-2.7.6-final.tgz' Resolving www.zope.org... 63.240.213.171 Connecting to www.zope.org[63.240.213.171]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2,895,957 [application/x-gzip] 100%[>] 2,895,957504.14K/s ETA 00:00 21:50:47 (594.54 KB/s) - `Zope-2.7.6-final.tgz' saved [2,895,957/2,895,957] [/tmp] $ tar xzf Zope-2.7.6-final.tgz [/tmp] $ cd Zope-2.7.6-final [/tmp/Zope-2.7.6-final] $ ./configure --with-python="~/projects/Zope-CVS/bin/python" Using Python interpreter at ~/projects/Zope-CVS/bin/python Next, run make. [/tmp/Zope-2.7.6-final] $ make inplace test "/home/tseaver/projects/Zope-CVS/bin/python" "/tmp/Zope-2.7.6-final/setup.py" \ build - --build-base="/tmp/Zope-2.7.6-final/build-base/python-2.3" - --build-lib="/tmp/Zope-2.7.6-final/build-base/python-2.3/build-lib" - --build-scripts="/tmp/Zope-2.7.6-final/build-base/python-2.3/build-scripts" - --build-temp="/tmp/Zope-2.7.6-final/build-base/python-2.3/build-temp" - -- Ran 2468 tests in 150.258s OK 8< I would guess that your client picked up a borked download; can you try with another browser? Or retry the download? Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCeCyVGqWXf00rNCgRAt+nAKCPLqoxLLtqvN9B5atf7oJILaRd0gCcC7Va ZZQIUJb7T1UvaeM55JgCvb0= =6tEq -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 )
Re: [Zope] Re: Zope 2.75 tgz distribution
I've built a working 2.7.6 which, while not fully tested, seems to be fine. What symptoms have you encountered. On Tue, 3 May 2005, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > [EMAIL PROTECTED] wrote: > > Er... is something missing from the Zope 2.7.6 tgz on zope.org? > > > > http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz > > > > Can someone else confirm that there might be a wee problem? > > Looks fine from here (Firefox 1.0.2 on Ubuntu Hoary handing off to > File-Roller). Also, I just built a sandbox today from the download, > using wget. > > Tres. > - -- > === > Tres Seaver[EMAIL PROTECTED] > Zope Corporation "Zope Dealers" http://www.zope.com > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.2.5 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFCeCNhGqWXf00rNCgRAksUAJ0cbLArHKgogBkcrAVVioelSmaAtQCfSgPB > ooPRN/qXIJ+zW+13kzavjjs= > =leq1 > -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 ) > -- Dennis Allison * Computer Systems Laboratory * Gates 227 * Stanford University * Stanford CA 94305 * (650) 723-9213 * (650) 723-0033 fax * [EMAIL PROTECTED] * [EMAIL PROTECTED] ___ 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: Zope 2.75 tgz distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Er... is something missing from the Zope 2.7.6 tgz on zope.org? > > http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz > > Can someone else confirm that there might be a wee problem? Looks fine from here (Firefox 1.0.2 on Ubuntu Hoary handing off to File-Roller). Also, I just built a sandbox today from the download, using wget. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCeCNhGqWXf00rNCgRAksUAJ0cbLArHKgogBkcrAVVioelSmaAtQCfSgPB ooPRN/qXIJ+zW+13kzavjjs= =leq1 -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] Zope 2.75 tgz distribution
Er... is something missing from the Zope 2.7.6 tgz on zope.org? http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz Can someone else confirm that there might be a wee problem? Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 ___ 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: ZEO and session variables.
Hi Paul, Thank you. And, yes, I saw Chris' posting, but I don't think that's the right solution for us. A fast shared session variable store seems to me to be a better way to go and a whole lot more fail safe. On Tue, 3 May 2005, Paul Winkler wrote: > On Tue, May 03, 2005 at 05:14:56PM -0400, Tres Seaver wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Dennis Allison wrote: > > > I am just setting up a multi-headed distributed system with several Zope > > > heads all communications with a ZEO backend. The zopes can be on the same > > > machine or on different machines connected through a high speed backbone. > > > > > > In our system, all zopes are frontended with pound. > > > > > > zope1 > > > | > > > zope2- ZEO-zope3 > > > | > > > zope4 > > > > > > We make heavy use of session variables. Normally, with a single Zope > > > session variables are stored in a temporary folder, but, as such, they are > > > are not shared between the zope heads. In the multiheaded system, the > > > session variables need to be shared and therefore must be managed by > > > ZEO. What is the recommended best practice for this? > > > > Richard Jones recently released a SQL-based sessioning implementation: > > > > http://www.zope.org/Members/richard/ZSQLSessionDataManager > > Or you could look through today's messages to this list, where > I recall Chris McDonough mentioned using pound to force sessions > to stick to a ZEO client. That's appealingly simple; the obvious > drawback is that the session would be lost if the ZEO client restarts. > Presumably details can be found in the pound docs. > > -- Dennis Allison * Computer Systems Laboratory * Gates 227 * Stanford University * Stanford CA 94305 * (650) 723-9213 * (650) 723-0033 fax * [EMAIL PROTECTED] * [EMAIL PROTECTED] ___ 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] Sending mail with attachments via Python
Kirk Strauser wrote: On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: Look at the Python 'email' package: http://python.org/doc/lib/module-email.html You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts. That's what I was afraid of. I love Zope and Python (and am getting ready to write a magazine article about the two) but jumping through Pythonic hoops to do stuff that would be easy in DTML drives me nuts. Thanks for the pointer, though. I'd stumbled across that earlier, but had kept looking in search of something easier. Kirk, Here is some to send email + attachement. I used it to send PDFs. Use it as a guide if you choose the external python method option. I think MimeWriter makes it easier. Best luck, David import sys, smtplib, MimeWriter, base64, StringIO, os, string, time message = StringIO.StringIO() writer = MimeWriter.MimeWriter(message) writer.addheader('MIME-Version', '1.0') writer.addheader('Subject', 'Purchase Approved') # writer.addheader('To', '[EMAIL PROTECTED]' ) # get ready to send attachment writer.startmultipartbody('mixed') # start off with a text/plain part part = writer.nextpart() body = part.startbody('text/plain') body.write('Services Inc.\n') body.write('Office Transaction notice\n') body.write('\n') body.write('Order: ' + itemNumber + '\n') body.write(' Authorized by: ' + userID + ' ' + datetime + '\n') body.write(' Amount: ' + amount + '\n') body.write('\nSee attached') # # add PDF attachment # part = writer.nextpart() part.addheader('Content-Transfer-Encoding', 'base64') body = part.startbody('application/pdf; name=%s' % attachment) # pdf file body.write(base64.encodestring( pdf )) # finish off writer.lastpart() # .. # send the mail # . if user supplied userid/password then deal w/it # .. smtp = smtplib.SMTP(self.MailHost.smtp_host) if self.MailHost.smtp_userid: smtp.ehlo() smtp_userid64 = base64.encodestring(self.MailHost.smtp_userid) smtp.docmd("auth", "login " + smtp_userid64[:-1]) if self.MailHost.smtp_pass: smtp_pass64 = base64.encodestring( self.MailHost.smtp_pass) smtp.docmd(smtp_pass64[:-1]) #smtp.sendmail( from address, to address, message body) smtp.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', message.getvalue()) smtp.quit() Good luck, 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 )
Re: [Zope] Re: ZEO and session variables.
On Tue, May 03, 2005 at 05:14:56PM -0400, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dennis Allison wrote: > > I am just setting up a multi-headed distributed system with several Zope > > heads all communications with a ZEO backend. The zopes can be on the same > > machine or on different machines connected through a high speed backbone. > > In our system, all zopes are frontended with pound. > > > > zope1 > > | > > zope2- ZEO-zope3 > > | > > zope4 > > > > We make heavy use of session variables. Normally, with a single Zope > > session variables are stored in a temporary folder, but, as such, they are > > are not shared between the zope heads. In the multiheaded system, the > > session variables need to be shared and therefore must be managed by > > ZEO. What is the recommended best practice for this? > > Richard Jones recently released a SQL-based sessioning implementation: > > http://www.zope.org/Members/richard/ZSQLSessionDataManager Or you could look through today's messages to this list, where I recall Chris McDonough mentioned using pound to force sessions to stick to a ZEO client. That's appealingly simple; the obvious drawback is that the session would be lost if the ZEO client restarts. Presumably details can be found in the pound docs. -- Paul Winkler http://www.slinkp.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] Re: Sending mail with attachments via Python
Kirk Strauser wrote: Please don't misunderstand me. I'm not complaining, and if that's what I've got to do then so be it. I'm just a little surprised - that's all. Sending emails correctly is a very tricky, and the RFC 822 standard is a beast. You cannot really blame either Python, nor dtml or Zope for that. Python has a very nice email module, but even that can be difficult to use. Especially when using attachments and non-ascii encodings. Dtmls mail handling is limited to a specific set of problems. If you want to go outside those, you need to roll your own. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science ___ 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] Sending mail with attachments via Python
Kirk Strauser wrote: > On Tuesday 03 May 2005 16:09, J Cameron Cooper wrote: > >> So you have it in DTML and want to re-write in Python but you don't want >> to do it in Python? What's wrong with External Methods? It takes all of about 5 seconds more than a TTW Python script. They're a necessary security precaution, but not all that burdensome. (You don't want your users having access to exec(), do you?) > No. I have it in DTML and want to re-write it in Python without involving External Methods or other hackery. > >> Then why change it? It works, right? > > > For certain values of "works", sure. The problem I'm trying to solve > is that the body of the email needs to become more complex than I'm > willing to handle with DTML. You don't have to write the body in DTML. Create a method that does the body however you like and include it in the message by calling it with a dtml-var. You could use a Python script or ZPT or whatever. > The natural next step for me was to look into rewriting the whole > mail-sending object in Python, but I didn't expect that I'd have to > reimplement the functionality of DTML to do it. How did you want it to work? There's DTML and there's Python libs. I can't imagine another way, but maybe I'm in too deep. --jcc -- http://plonebook.packtpub.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] Re: ZEO and session variables.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: > I am just setting up a multi-headed distributed system with several Zope > heads all communications with a ZEO backend. The zopes can be on the same > machine or on different machines connected through a high speed backbone. > In our system, all zopes are frontended with pound. > > zope1 > | > zope2- ZEO-zope3 > | > zope4 > > We make heavy use of session variables. Normally, with a single Zope > session variables are stored in a temporary folder, but, as such, they are > are not shared between the zope heads. In the multiheaded system, the > session variables need to be shared and therefore must be managed by > ZEO. What is the recommended best practice for this? Richard Jones recently released a SQL-based sessioning implementation: http://www.zope.org/Members/richard/ZSQLSessionDataManager Tres - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCd+nQGqWXf00rNCgRAhRNAJ9uJjs3yUCnmiZzhoei4LxWXJjNRACgmdor DfSToYnCZ7oi/71S9w949XM= =GJlb -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 )
Re: [Zope] Sending mail with attachments via Python
On Tuesday 03 May 2005 16:09, J Cameron Cooper wrote: > So you have it in DTML and want to re-write in Python but you don't want > to do it in Python? No. I have it in DTML and want to re-write it in Python without involving External Methods or other hackery. > Then why change it? It works, right? For certain values of "works", sure. The problem I'm trying to solve is that the body of the email needs to become more complex than I'm willing to handle with DTML. The natural next step for me was to look into rewriting the whole mail-sending object in Python, but I didn't expect that I'd have to reimplement the functionality of DTML to do it. Please don't misunderstand me. I'm not complaining, and if that's what I've got to do then so be it. I'm just a little surprised - that's all. -- Kirk Strauser The Day Companies ___ 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] Sending mail with attachments via Python
Kirk Strauser wrote: On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: Look at the Python 'email' package: http://python.org/doc/lib/module-email.html You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts. That's what I was afraid of. I love Zope and Python (and am getting ready to write a magazine article about the two) but jumping through Pythonic hoops to do stuff that would be easy in DTML drives me nuts. Thanks for the pointer, though. I'd stumbled across that earlier, but had kept looking in search of something easier. So you have it in DTML and want to re-write in Python but you don't want to do it in Python? Then why change it? It works, right? --jcc -- http://plonebook.packtpub.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] ZEO and session variables.
I am just setting up a multi-headed distributed system with several Zope heads all communications with a ZEO backend. The zopes can be on the same machine or on different machines connected through a high speed backbone. In our system, all zopes are frontended with pound. zope1 | zope2- ZEO-zope3 | zope4 We make heavy use of session variables. Normally, with a single Zope session variables are stored in a temporary folder, but, as such, they are are not shared between the zope heads. In the multiheaded system, the session variables need to be shared and therefore must be managed by ZEO. What is the recommended best practice for this? -- Dennis Allison * Computer Systems Laboratory * Gates 227 * Stanford University * Stanford CA 94305 * (650) 723-9213 * (650) 723-0033 fax * [EMAIL PROTECTED] * [EMAIL PROTECTED] ___ 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] Sending mail with attachments via Python
On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: > Look at the Python 'email' package: > http://python.org/doc/lib/module-email.html > > You'll need to use External Methods to use this module, or allow access > to it so that you can use Python Scripts. That's what I was afraid of. I love Zope and Python (and am getting ready to write a magazine article about the two) but jumping through Pythonic hoops to do stuff that would be easy in DTML drives me nuts. Thanks for the pointer, though. I'd stumbled across that earlier, but had kept looking in search of something easier. -- Kirk Strauser The Day Companies ___ 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] Sending mail with attachments via Python
Kirk Strauser wrote: I'm currently trying to replace a bit of DTML with a Python script. Here's what I currently have: To: From: Subject: Attention : This file was sent to you from the Foo Company web site. The sender included this message: Basically, it fetches a file from a public download directory, encodes it as a MIME attachment, and sends the works to the specified recipient. Now, the documentation on sending a normal text email is easy enough to find, but from Googling around for more advanced docs it seems like I'm the only person to ever want to do this. Are there any examples for this sort of thing lying around that I somehow managed not to find? The Zope online help will provide the API for using the MailHost to send messages. So your problem is composing a message in Python? Look at the Python 'email' package: http://python.org/doc/lib/module-email.html Specificially the "Generating MIME documents" section. It's probably more useful than DTML. You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts. --jcc -- http://plonebook.packtpub.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] Sending mail with attachments via Python
I'm currently trying to replace a bit of DTML with a Python script. Here's what I currently have: To: From: Subject: Attention : This file was sent to you from the Foo Company web site. The sender included this message: Basically, it fetches a file from a public download directory, encodes it as a MIME attachment, and sends the works to the specified recipient. Now, the documentation on sending a normal text email is easy enough to find, but from Googling around for more advanced docs it seems like I'm the only person to ever want to do this. Are there any examples for this sort of thing lying around that I somehow managed not to find? Many thanks, -- Kirk Strauser The Day Companies ___ 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] ZODB.POSException.ReadConflictError
On Tue, 2005-05-03 at 09:18 -0700, [EMAIL PROTECTED] wrote: I cc'ed Tim Peters on this, perhaps to his chagrin, but he seemed to be interested in this. ;-) > Thank you for that reference (I have an older dead trees version). Now > I understand that these errors happen, but what I don't understand is > why my users see them ("The requests which experience conflict errors > will be retried automatically by Zope, and the end user should *never* > see one." emphasis in original). Yes. Although that's an intent and not a promise. > Is it simply a matter of too much traffic for the server? This is a > dual 2.3 GHz box, 2G of RAM, 10,000 RPM SCSI drives (two, mirrored as 1 > logical RAID 1 drive), serving 8,000 members (now about 1,000 new > members a month, hence the urgency), 80,000 visits per month, 400,000 > page views per month. Is it time to dip my toe into ZEO? ZEO may help. But may not help here, especially if you put your session data in it. The main reason for read conflict errors are that a particular transaction is "slow" and that other simultaneous transactions come along and modify the data which the slow transaction is trying to read. When the slow transaction figures this out, it bails out. ZEO actually just makes it slower because the data involved in a transaction typically needs to be encoded and decoded for travel across a network. That said, if you have multiple appservers, and you keep your session configuration as the default, each appserver will have its own (non-ZEO)_ session database, and thus will presumably be less prone to conflict due to the disbursement of sessions across multiple machines. But you'll need to keep "session affinity" (every subsequent request from a user with a particular browser id needs to go to the same appserver). I use pound for this. You should try to determine a pattern to the errors your users are seeing (many simultaneous requests to a specific resource). This may be better solved by changing application code to do fewer session accesses or might be solveable via changing sessioning configuration. See http://www.plope.com/Members/dunny/conflicts/view for an idea about what sort of conflict rates to expect under torture situations. Apparently your configuration has managed to torture sessions more than our torture tests, however, because I've personally not managed to have Zope try more than three times to complete a request that encounters a sessioning conflict during this type of testing in the "default" configuration. - 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 )
Re: [Zope] ZODB.POSException.ReadConflictError
I have recently upgraded the server (see previous message about my current box) and that definitely has had a positive effect. I've also been tweaking the caches, to get the most out of what I have. The instances of these errors rearing their ugly heads are definitely down, but 10% error rate on 1,000 registrations per month still means a lot of me registering members manually. I'll explore the member registration process on the Plone list. Thanks for all your help here. Marshall On May 3, 2005, at 9:17 AM, Tim Peters wrote: ... [Tim Peters] Conflict errors are certainly normal, but IIUC the OP is seeing site errors, not just log msgs ... [Chris McDonough] This is true. I misunderstood the OP inasmuch as I thought he was seeing the error message in his event log, which would be normal It is certainly the intent that end users should never see this error message in a browser, but it's not a promise as it depends how the developer's code is written. Zope will retry a request three times due to conflict errors before it gives up and presents the conflict-caused error to the user. So maybe it's really a Plone question (as in, is Plone doing something here for member registration that makes read conflicts unusually likely?); or maybe the OP's box is overburdened, so that transactions take much longer than "normal" (e.g., too little RAM, whatever); or ... It would at least be interesting to know how often conflict errors are just _logged_ (as opposed to surviving long enough to show up to the end user). ___ 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] ZODB.POSException.ReadConflictError
Chris, Thank you for that reference (I have an older dead trees version). Now I understand that these errors happen, but what I don't understand is why my users see them ("The requests which experience conflict errors will be retried automatically by Zope, and the end user should *never* see one." emphasis in original). Is it simply a matter of too much traffic for the server? This is a dual 2.3 GHz box, 2G of RAM, 10,000 RPM SCSI drives (two, mirrored as 1 logical RAID 1 drive), serving 8,000 members (now about 1,000 new members a month, hence the urgency), 80,000 visits per month, 400,000 page views per month. Is it time to dip my toe into ZEO? Marshall P.S. To keep up-to-date, be sure to subscribe to the LiveModern News at http://www.livemodern.com/prefs_mynewsletters_form . LiveModern - Making Modernism Affordable n: Marshall Mayer e: [EMAIL PROTECTED] w: http://www.livemodern.com p: 415.462.0561 LiveModern.com - http://www.livemodern.com On May 3, 2005, at 8:14 AM, Chris McDonough wrote: This is actually normal. See the end of http://www.plope.com/Books/2_7Edition/Sessions.stx ("Conflict Errors") for a short explanation. On Tue, 2005-05-03 at 08:00 -0700, [EMAIL PROTECTED] wrote: I'm getting a ZODB.POSException.ReadConflictError on my Plone 2.0.5 site (Zope 2.7.3, Python 2.3.4 on Mac OS X Server 10.3.9). It happens most frequently when members try to register on my site (about 10% of the time), but occasionally happens when other pages are accessed (no pattern). Alternatively, a blank page is returned. No messages appear in the Zope or Plone error log. I've reproduced the error messages below, all of which resulted from a member registration. I received 7 error reports were from the past two days, with two types of errors. Of the two types of errors, the "oid 0x07e8, class BTrees.IOBTree.IOBucket" error was seen 5 times and the "oid 0x08, class Products.Transience.Transience.Length2" error was seen twice. Is there something wrong with my installation or is there something wrong with my data.fs file? How do I correct either? Marshall -- TYPE 1 ERROR Site Error An error was encountered while publishing this resource. ZODB.POSException.ReadConflictError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 139, in publish * Module Zope.App.startup, line 163, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFFormController.ControllerPageTemplate, line 80, in __call__ * Module Products.CMFFormController.BaseControllerPageTemplate, line 39, in _call * Module Products.CMFFormController.ControllerBase, line 243, in getNext * Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__ * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFFormController.FSControllerPythonScript, line 102, in __call__ * Module Products.CMFFormController.FormController, line 354, in validate * Module ZPublisher.BaseRequest, line 156, in items * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 94, in getSessionData * Module Products.Sessions.SessionDataManager, line 181, in _getSessionDataObject * Module Products.Transience.Transience, line 840, in new_or_existing * Module Products.Transience.Transience, line 487, in get * Module Products.Transience.Transience, line 293, in _move_item * Module ZODB.Connection, line 599, in setstate * Module ZODB.Connection, line 628, in _is_invalidated ReadConflictError: database read conflict error (oid 0x0f81, class BTrees.IOBTree.IOBucket) -- TYPE 2 ERROR Site Error An error was encountered while publishing this resource. ZODB.POSException.ReadConflictError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Pr
Re: [Zope] ZODB.POSException.ReadConflictError
... [Tim Peters] >> Conflict errors are certainly normal, but IIUC the OP is seeing site >> errors, not just log msgs ... [Chris McDonough] > This is true. I misunderstood the OP inasmuch as I thought he was > seeing the error message in his event log, which would be normal It is > certainly the intent that end users should never see this error message > in a browser, but it's not a promise as it depends how the developer's > code is written. Zope will retry a request three times due to conflict > errors before it gives up and presents the conflict-caused error to the > user. So maybe it's really a Plone question (as in, is Plone doing something here for member registration that makes read conflicts unusually likely?); or maybe the OP's box is overburdened, so that transactions take much longer than "normal" (e.g., too little RAM, whatever); or ... It would at least be interesting to know how often conflict errors are just _logged_ (as opposed to surviving long enough to show up to the end user). ___ 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] ZODB.POSException.ReadConflictError
On Tue, 2005-05-03 at 11:58 -0400, Tim Peters wrote: > [Chris McDonough] > > This is actually normal. See the end of > > http://www.plope.com/Books/2_7Edition/Sessions.stx ("Conflict Errors") > > for a short explanation. > > Conflict errors are certainly normal, but IIUC the OP is seeing site > errors, not just log msgs. The text referenced also says: > > The requests which experience conflict errors will be retried > automatically by Zope, and the end user should never see one. > > I'm not clear on why it says that, since Zope gives up after a few > tries (i.e., "never" seems an awfully strong promise, right?). This is true. I misunderstood the OP inasmuch as I thought he was seeing the error message in his event log, which would be normal It is certainly the intent that end users should never see this error message in a browser, but it's not a promise as it depends how the developer's code is written. Zope will retry a request three times due to conflict errors before it gives up and presents the conflict-caused error to the user. - 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 )
Re: [Zope] ZODB.POSException.ReadConflictError
[Chris McDonough] > This is actually normal. See the end of > http://www.plope.com/Books/2_7Edition/Sessions.stx ("Conflict Errors") > for a short explanation. Conflict errors are certainly normal, but IIUC the OP is seeing site errors, not just log msgs. The text referenced also says: The requests which experience conflict errors will be retried automatically by Zope, and the end user should never see one. I'm not clear on why it says that, since Zope gives up after a few tries (i.e., "never" seems an awfully strong promise, right?). ___ 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 with AdManager
How are calling the ads, as I don't think you need these two calls in a normal ad display. URL: /advert_chooser/manage_main URL: /site/advertisements/show_banner/manage_main Also: Try turning off "count views" and maybe "count clicks" and see if it does the same thing. It might be that Zope can't write to the ZODB that fast, although I run AdManager on about 10 sites in one Zope install that gets 20,000+ views (page) a day with no problems. Jake -- http://www.ZopeZone.com David said: > Hi > > Setup is: Zope 2.7.5, Python 2.3.5 (UNIX/gcc 2.95) (No ZEO, no CMF, no > Plone!) > > We are trying to use the AdManager ZClass, a great product doing > exactly what we needed. > > Testing this on the developer's machine, we had no problems. But having > now done a "small scale" stress testing (requesting about 20 pages per > second) on the server, some pages suddenly throw errors of the > following kind (see traceback below). The errors are not all 100% like > this one, but similar enough, I guess. The errors occur on a ratio of > about 1:4 (so 4 successful pages, then one error). [I know this is not > really scientific or would stand in a statistical analysis, but just to > give you an idea.] We could also not find any connection between the > errors and any of the 5 banners we're using for testing. (The product > rotates which banner is displayed.) > > -- from the traceback -- > ZODB.POSException.ReadConflictError > > Sorry, a site error occurred. > Traceback (innermost last): > > Module ZPublisher.Publish, line 175, in publish_module_standard > Module ZPublisher.Publish, line 149, in publish > Module ZPublisher.Publish, line 149, in publish > Module ZPublisher.Publish, line 149, in publish > Module ZPublisher.Publish, line 139, in publish > Module Zope.App.startup, line 163, in zpublisher_exception_hook > Module ZPublisher.Publish, line 101, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 39, in call_object > Module OFS.DTMLMethod, line 144, in __call__ > Module DocumentTemplate.DT_String, line 474, in __call__ > Module DocumentTemplate.DT_Var, line 214, in render > Module OFS.DTMLMethod, line 137, in __call__ > Module DocumentTemplate.DT_String, line 474, in __call__ > Module DocumentTemplate.DT_Var, line 214, in render > Module OFS.DTMLMethod, line 137, in __call__ > > URL: /advert_chooser/manage_main > Physical Path:/advert_chooser > Module DocumentTemplate.DT_String, line 474, in __call__ > Module DocumentTemplate.DT_With, line 76, in render > Module OFS.DTMLMethod, line 137, in __call__ > > URL: /site/advertisements/show_banner/manage_main > Physical Path:/site/advertisements/show_banner > Module DocumentTemplate.DT_String, line 474, in __call__ > Module DocumentTemplate.DT_With, line 76, in render > Module DocumentTemplate.DT_In, line 703, in renderwob > Module DocumentTemplate.DT_Util, line 192, in eval > __traceback_info__: date_end > Module ZODB.Connection, line 599, in setstate > Module ZODB.Connection, line 628, in _is_invalidated > ReadConflictError: database read conflict error (oid 0x3244, class > *ilYYN6piu7CmJucspzx0gA==.AdBanner) > > -- end traceback -- > > Any idea what is happening here?? This is beyond my understanding of > Zope/ZODB and as it only happens occasionally, it does not seem to be a > straight bug. > Any suggestions on what I could try would be very welcomed. > (If you are using a Banner Ad Manager that is a proper product, not a > ZClass, that runs on a plain Zope, let me know.) > > Thanks in advance, > > DR > > ___ > 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] ZODB.POSException.ReadConflictError
This is actually normal. See the end of http://www.plope.com/Books/2_7Edition/Sessions.stx ("Conflict Errors") for a short explanation. On Tue, 2005-05-03 at 08:00 -0700, [EMAIL PROTECTED] wrote: > I'm getting a ZODB.POSException.ReadConflictError on my Plone 2.0.5 > site (Zope 2.7.3, Python 2.3.4 on Mac OS X Server 10.3.9). It happens > most frequently when members try to register on my site (about 10% of > the time), but occasionally happens when other pages are accessed (no > pattern). Alternatively, a blank page is returned. No messages appear > in the Zope or Plone error log. > > I've reproduced the error messages below, all of which resulted from a > member registration. I received 7 error reports were from the past two > days, with two types of errors. Of the two types of errors, the "oid > 0x07e8, class BTrees.IOBTree.IOBucket" error was seen 5 times and the > "oid 0x08, class Products.Transience.Transience.Length2" error was seen > twice. > > Is there something wrong with my installation or is there something > wrong with my data.fs file? How do I correct either? > > Marshall > > -- > > TYPE 1 ERROR > > Site Error > > An error was encountered while publishing this resource. > > ZODB.POSException.ReadConflictError > Sorry, a site error occurred. > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 175, in publish_module_standard > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 149, in publish > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 149, in publish > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 149, in publish > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 139, in publish > * Module Zope.App.startup, line 163, in zpublisher_exception_hook > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Products.CMFFormController.ControllerPageTemplate, line > 80, in __call__ > * Module Products.CMFFormController.BaseControllerPageTemplate, > line 39, in _call > * Module Products.CMFFormController.ControllerBase, line 243, in > getNext > * Module Products.CMFFormController.Actions.TraverseTo, line 36, in > __call__ > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Products.CMFFormController.FSControllerPythonScript, line > 102, in __call__ > * Module Products.CMFFormController.FormController, line 354, in > validate > * Module ZPublisher.BaseRequest, line 156, in items > * Module ZPublisher.HTTPRequest, line 1178, in get > * Module Products.Sessions.SessionDataManager, line 94, in > getSessionData > * Module Products.Sessions.SessionDataManager, line 181, in > _getSessionDataObject > * Module Products.Transience.Transience, line 840, in > new_or_existing > * Module Products.Transience.Transience, line 487, in get > * Module Products.Transience.Transience, line 293, in _move_item > * Module ZODB.Connection, line 599, in setstate > * Module ZODB.Connection, line 628, in _is_invalidated > > ReadConflictError: database read conflict error (oid 0x0f81, class > BTrees.IOBTree.IOBucket) > > -- > > TYPE 2 ERROR > > Site Error > > An error was encountered while publishing this resource. > > ZODB.POSException.ReadConflictError > Sorry, a site error occurred. > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 175, in publish_module_standard > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 149, in publish > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 149, in publish > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 149, in publish > * Module Products.PlacelessTranslationService.PatchStringIO, line > 51, in new_publish > * Module ZPublisher.Publish, line 139, in publish > * Module Zope.App.startup, line 163, in zpublisher_exception_hook > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Products.CMFFormController.ControllerPageTemplate, line > 80, in __call__ > * Module Products.CMFFormController.BaseControllerPageTemplate, > line 39, in _call > * Module Products.CMFFormController.Control
[Zope] ZODB.POSException.ReadConflictError
I'm getting a ZODB.POSException.ReadConflictError on my Plone 2.0.5 site (Zope 2.7.3, Python 2.3.4 on Mac OS X Server 10.3.9). It happens most frequently when members try to register on my site (about 10% of the time), but occasionally happens when other pages are accessed (no pattern). Alternatively, a blank page is returned. No messages appear in the Zope or Plone error log. I've reproduced the error messages below, all of which resulted from a member registration. I received 7 error reports were from the past two days, with two types of errors. Of the two types of errors, the "oid 0x07e8, class BTrees.IOBTree.IOBucket" error was seen 5 times and the "oid 0x08, class Products.Transience.Transience.Length2" error was seen twice. Is there something wrong with my installation or is there something wrong with my data.fs file? How do I correct either? Marshall -- TYPE 1 ERROR Site Error An error was encountered while publishing this resource. ZODB.POSException.ReadConflictError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 139, in publish * Module Zope.App.startup, line 163, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFFormController.ControllerPageTemplate, line 80, in __call__ * Module Products.CMFFormController.BaseControllerPageTemplate, line 39, in _call * Module Products.CMFFormController.ControllerBase, line 243, in getNext * Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__ * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFFormController.FSControllerPythonScript, line 102, in __call__ * Module Products.CMFFormController.FormController, line 354, in validate * Module ZPublisher.BaseRequest, line 156, in items * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 94, in getSessionData * Module Products.Sessions.SessionDataManager, line 181, in _getSessionDataObject * Module Products.Transience.Transience, line 840, in new_or_existing * Module Products.Transience.Transience, line 487, in get * Module Products.Transience.Transience, line 293, in _move_item * Module ZODB.Connection, line 599, in setstate * Module ZODB.Connection, line 628, in _is_invalidated ReadConflictError: database read conflict error (oid 0x0f81, class BTrees.IOBTree.IOBucket) -- TYPE 2 ERROR Site Error An error was encountered while publishing this resource. ZODB.POSException.ReadConflictError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 149, in publish * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 139, in publish * Module Zope.App.startup, line 163, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFFormController.ControllerPageTemplate, line 80, in __call__ * Module Products.CMFFormController.BaseControllerPageTemplate, line 39, in _call * Module Products.CMFFormController.ControllerBase, line 243, in getNext * Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__ * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFFormController.FSControllerPythonScript, line 102, in __call__ * Module Products.CMFFormController.FormController, line 354, in validate * Module ZPublisher.BaseRequest, line 156, in items * Module ZPublisher.HTTPRequest, lin
[Zope] Problem with AdManager
Hi Setup is: Zope 2.7.5, Python 2.3.5 (UNIX/gcc 2.95) (No ZEO, no CMF, no Plone!) We are trying to use the AdManager ZClass, a great product doing exactly what we needed. Testing this on the developer's machine, we had no problems. But having now done a "small scale" stress testing (requesting about 20 pages per second) on the server, some pages suddenly throw errors of the following kind (see traceback below). The errors are not all 100% like this one, but similar enough, I guess. The errors occur on a ratio of about 1:4 (so 4 successful pages, then one error). [I know this is not really scientific or would stand in a statistical analysis, but just to give you an idea.] We could also not find any connection between the errors and any of the 5 banners we're using for testing. (The product rotates which banner is displayed.) -- from the traceback -- ZODB.POSException.ReadConflictError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 175, in publish_module_standard Module ZPublisher.Publish, line 149, in publish Module ZPublisher.Publish, line 149, in publish Module ZPublisher.Publish, line 149, in publish Module ZPublisher.Publish, line 139, in publish Module Zope.App.startup, line 163, in zpublisher_exception_hook Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 144, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Var, line 214, in render Module OFS.DTMLMethod, line 137, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Var, line 214, in render Module OFS.DTMLMethod, line 137, in __call__ URL: /advert_chooser/manage_main Physical Path:/advert_chooser Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module OFS.DTMLMethod, line 137, in __call__ URL: /site/advertisements/show_banner/manage_main Physical Path:/site/advertisements/show_banner Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_In, line 703, in renderwob Module DocumentTemplate.DT_Util, line 192, in eval __traceback_info__: date_end Module ZODB.Connection, line 599, in setstate Module ZODB.Connection, line 628, in _is_invalidated ReadConflictError: database read conflict error (oid 0x3244, class *ilYYN6piu7CmJucspzx0gA==.AdBanner) -- end traceback -- Any idea what is happening here?? This is beyond my understanding of Zope/ZODB and as it only happens occasionally, it does not seem to be a straight bug. Any suggestions on what I could try would be very welcomed. (If you are using a Banner Ad Manager that is a proper product, not a ZClass, that runs on a plain Zope, let me know.) Thanks in advance, DR ___ 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] applicable standards in zope
Hi, I'm making an study about different Python Web Framework and I need to know if there are any applicable standards in zope. If yes, which ones? Thanks a lot. Natalia. PD: I found this in http://mail.python.org/pipermail/xml-sig/1999-October/001537.html "Anyway, as for Zope (since I'm one of the product manager)" ... "I personally don't believe there are applicable standards for anything we're doing, and we follow where we can." ___ 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] [ANN] TextIndexNG 3.0 beta 1 released
I am pleased to announce the release of TextIndexNG V 3 beta 1. TextIndexNG V 3 is a complete new implementation based on Zope 3 technologies and can be used both in Zope 2.8 or 2.7 (with Five) or in Zope 3. What's new? - multi-field indexing and query support - multi-lingual support - configurable converters (through ZCML) - new indexing API (allowing you to hook your custom content types with TextIndexNG through Zope 3 adapters). Requirements: - Zope 2.8 or Zope 2.7 (+ Five) or Zope 3 (Zope 3 has nothing like catalogs yet) TextIndexNG V3 will *not* run with bare Zope 2.7 installations without Five (and this will not be changed in the future). Download: http://sf.net/projects/textindexng For installation issues refer to doc/README.txt from the archive. It's basically the same procedure as with former versions except you *need* to recompile the extension modules. TextIndexNG V 3 is published under the GPL. Andreas Jung --- - Andreas JungZOPYX Software Development and Consulting - - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com - --- pgpm4QLck4XNI.pgp Description: 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 )
Re: [Zope] Menus (was no subject)
Am Dienstag, den 03.05.2005, 10:06 +0200 schrieb Jaroslav Lukesh: > Dne středa, 23. února 2005 16:40 "Jonathan Hobbs" <[EMAIL PROTECTED]> > napsal(a): > > - Original Message - > > From: "cla" <[EMAIL PROTECTED]> > > > > > Hi would like to know how to put > > > multiple dynamic drop down boxes > > > in zope using dtml or python scripts(if possible) > > > > > > scheme: > > > > > > box1:> box2 --> box3 --> ... > > > call database and fillcall database and fill > > > > You need a comination of dtml and javascript to do this. The > > drop-down/across menu structure is built/controlled by the js code while > > the menu content is provided by dtml. I would suggest that you start by > > googling for js menu scripts, get static menus working 1st, then add in the > > dtml to provide menu content. > > Did you googling that? Try google for: lukesh zope menu > > Sorry for late response... Btw. you dont need no Javascript if you dont have to support old browser like IE and friends. It is possible in pure CSS. Google for CSS menu. alistapart.com is a good resource too. -- Tino Wildenhain <[EMAIL PROTECTED]> ___ 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] Menus (was no subject)
Dne středa, 23. února 2005 16:40 "Jonathan Hobbs" <[EMAIL PROTECTED]> napsal(a): > - Original Message - > From: "cla" <[EMAIL PROTECTED]> > > > Hi would like to know how to put > > multiple dynamic drop down boxes > > in zope using dtml or python scripts(if possible) > > > > scheme: > > > > box1:> box2 --> box3 --> ... > > call database and fillcall database and fill > > You need a comination of dtml and javascript to do this. The > drop-down/across menu structure is built/controlled by the js code while > the menu content is provided by dtml. I would suggest that you start by > googling for js menu scripts, get static menus working 1st, then add in the > dtml to provide menu content. Did you googling that? Try google for: lukesh zope menu Sorry for late response... -- Jaroslav Lukesh --- This e-mail can not contain any viruses because I use Linux ___ 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 )