Re: [Zope] ConflictError with *one* ZEO client?
On Thursday 29 June 2006 06:13, Dieter Maurer wrote: > Richard Jones wrote at 2006-6-28 11:24 +1000: > >it crashes out with a ConflictError even if there are no other ZEO clients > >connected to the ZEO store. > > Usually, a "ConflictError" does not crash Zope... Sure, we requests are retried, but "zopectl run" doesn't do that. Since we upgraded to 2.8 we see a few ConflictErrors propogated up through to users each week. Richard ___ 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] attaching an image to an email
On 6/28/06, Kate Legere <[EMAIL PROTECTED]> wrote: I'm writing a form which allows the user to send an image attachment with their email... Attach: Send to: My email -- it's handled with sendPic --- To: art critic From: patron Subject: Art Hi, please take a look at my art and post it if you think it's good enough. Your image was sent. - but it only delivers --- Hi, please take a look at my art and post it if you think it's good enough. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="192.168.10.45.502.995.1151524502.277.30154" --192.168.10.45.502.995.1151524502.277.30154 Content-Type: image/jpeg; name="pic.jpg" Content-Transfer-Encoding: base64 PFpQdWJsaXNoZXIuSFRUUFJlcXVlc3QuRmlsZVVwbG9hZCBpbnN0YW5jZSBhdCAweDkzNjFmZDQ+ CiAg - What am I doing wrong? when you decode('base64') this string you get '\n ' which means, that you have to find out, which method or attribute of FileUpload gives you the actual data. (what you got is FileUpload.__repr__() or __str__()) --knitti ___ 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] attaching an image to an email
- Original Message - From: "Kate Legere" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 28, 2006 4:05 PM Subject: [Zope] attaching an image to an email I'm writing a form which allows the user to send an image attachment with their email... Attach: Send to: My email -- it's handled with sendPic --- To: art critic From: patron Subject: Art Hi, please take a look at my art and post it if you think it's good enough. Your image was sent. - but it only delivers --- Hi, please take a look at my art and post it if you think it's good enough. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="192.168.10.45.502.995.1151524502.277.30154" --192.168.10.45.502.995.1151524502.277.30154 Content-Type: image/jpeg; name="pic.jpg" Content-Transfer-Encoding: base64 PFpQdWJsaXNoZXIuSFRUUFJlcXVlc3QuRmlsZVVwbG9hZCBpbnN0YW5jZSBhdCAweDkzNjFmZDQ+ CiAg - What am I doing wrong? This how-to may help: http://www.zope.org/Members/visibleoffice/HowTo.2003-10-22.1455 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 )
Re: [Zope] storing blob data in SQLServer using ZSQL
- Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> To: "Satchidanand Haridas" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, June 28, 2006 4:10 PM Subject: Re: [Zope] storing blob data in SQLServer using ZSQL Satchidanand Haridas wrote at 2006-6-27 19:37 -0500: How can I save blob data in SQLServer using ZSQLs? I'm using mxODBC. I have a ZSQL that looks something like this: update table_name set blob_data = where conditions But I get the following error when I run the above ZSQL: ProgrammingError: ('07002', 0, '[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error', 6108) You cannot use "ZSQL" to put binary (blob) data into the database. You can have some chance when you use base64 encoding -- provided, your data is not too large. An easy work-around would be to store your blob in the zodb and then store the path/id of the zodb object in your SQL db. 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 )
Re: [Zope] Improved Zope Org Proposal
Andrew Sawyers wrote at 2006-6-27 22:03 -0400: > ... >Nearly everyone uses Google to find >anything they care about anyhow. I use Google because its search is faster than the one on "zope.org" *BUT* I restrict it with "site:zope.org". Otherwise, I get a few hundred thousand hits more. Sure, they probably contain what I am looking for -- but it takes me a while until I find it... That's one of my major interests to get a single site rather than one splintered across the world. -- Dieter ___ 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] storing blob data in SQLServer using ZSQL
Satchidanand Haridas wrote at 2006-6-27 19:37 -0500: >How can I save blob data in SQLServer using ZSQLs? I'm using mxODBC. I >have a ZSQL that looks something like this: > >> update >> table_name >> set >> blob_data = >> where >> conditions >But I get the following error when I run the above ZSQL: > >> ProgrammingError: ('07002', 0, '[Microsoft][ODBC SQL Server >> Driver]COUNT field incorrect or syntax error', 6108) You cannot use "ZSQL" to put binary (blob) data into the database. You can have some chance when you use base64 encoding -- provided, your data is not too large. -- Dieter ___ 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] ConflictError with *one* ZEO client?
Richard Jones wrote at 2006-6-28 11:24 +1000: >it crashes out with a ConflictError even if there are no other ZEO clients >connected to the ZEO store. Usually, a "ConflictError" does not crash Zope... In the past, I have seen occational "ConflictError" during product initialization (some bug). Together with the misfeature (others disagree) that in development mode (aka "debug-mode") Zope does not start when a product can not be initialized, this might explain your observation. Whenever you have startup problems, start Zope in the foreground and what the error messages. -- Dieter ___ 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] attaching an image to an email
I'm writing a form which allows the user to send an image attachment with their email... Attach: Send to: My email -- it's handled with sendPic --- To: art critic From: patron Subject: Art Hi, please take a look at my art and post it if you think it's good enough. Your image was sent. - but it only delivers --- Hi, please take a look at my art and post it if you think it's good enough. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="192.168.10.45.502.995.1151524502.277.30154" --192.168.10.45.502.995.1151524502.277.30154 Content-Type: image/jpeg; name="pic.jpg" Content-Transfer-Encoding: base64 PFpQdWJsaXNoZXIuSFRUUFJlcXVlc3QuRmlsZVVwbG9hZCBpbnN0YW5jZSBhdCAweDkzNjFmZDQ+ CiAg - What am I doing wrong? Kate ___ 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] Improved Zope Org Proposal
On 6/28/06, Chris McDonough <[EMAIL PROTECTED]> wrote: He meant "use an Apache rewrite rule", I think. Oh. My excuses in that case. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ 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] Improved Zope Org Proposal
On Jun 28, 2006, at 2:40 AM, Lennart Regebro wrote: On 6/28/06, Andrew Sawyers <[EMAIL PROTECTED]> wrote: point. Write the 'Zope product' management software and expose it as a service - put it on the site. [...] No one said bag the collectors. Rewrite http://www.zope.org/ Collectors/ to collectors.zope.org and that's done. No "writing" is gonna happen, and should not happen, becuse the writing takes time and the resulting software needs to be updated, bugfixes enhanced and managed, and that aint gonna happen. Your comments ignore the previous experiences with www.zope.org. He meant "use an Apache rewrite rule", I think. - 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] ConflictError with *one* ZEO client?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28 Jun 2006, at 11:13, Richard Jones wrote: On Wednesday 28 June 2006 18:31, Jens Vagelpohl wrote: Are you using persistent ZEO caches? Those have been known to cause odd symptoms here and there... What do you mean by "persistent"? I have noticed strange beahviours if I don't remove the caches when I do a full (client + server) restart. Removing the .zec files is part of my standard full restart maintenance routine now. If you look at the zeoclient stanza inside the zodb_db main section in your zope.conf you see this: # Uncomment to have a persistent disk cache #client zeo1 This option gives you a persistent ZEO disk cache, which means the cache file is retained across restarts. I assume you have that uncommented, otherwise the .zec files would not hang around. If you comment it you won't have to worry about .zec files anymore, and about odd behaviors. This option does *not* mean "use a cache at all? yes or no", it just means "keep the cache file around". jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEokmtRAx5nvEhZLIRAtjBAJ9OgccZdZA18BBLN9BiBczL1Oy77ACglem7 BQDRCxJJyPeH6D9mjCoHsj0= =Ojil -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] ConflictError with *one* ZEO client?
On Wednesday 28 June 2006 18:31, Jens Vagelpohl wrote: > Are you using persistent ZEO caches? Those have been known to cause > odd symptoms here and there... What do you mean by "persistent"? I have noticed strange beahviours if I don't remove the caches when I do a full (client + server) restart. Removing the .zec files is part of my standard full restart maintenance routine now. Richard ___ 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] wher i can find network device content types to develop network manage system?
zope,hi! can you tell me where i can find the content types that i can use this content type to access network device such as router,switch and others's MIB infomation by snmp and python.i need this kind of content types to develope a network manage sytem based on zope/plone on web. thinks ! you will email to :[EMAIL PROTECTED] LYNN [EMAIL PROTECTED] 2006-06-28 ___ 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] ConflictError with *one* ZEO client?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28 Jun 2006, at 10:23, Richard Jones wrote: If you're running a script you should tell us what the script does. The script merely modified a bunch of objects in the ZODB. Beyond that, there's not much that I can usefully tell you. I'm using Zope 2.8.5. As part of maintenance today I restarted the ZEO clients & server, while removing the ZEO caches from the clients. I can no longer reproduce the problem. Are you using persistent ZEO caches? Those have been known to cause odd symptoms here and there... jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEoj52RAx5nvEhZLIRAlqxAJ4xtdV0z42St3DS1Sai1bwRU6KvEwCeOl4p xlB3Q52CTJz1xS5bMvy32AQ= =3ZwL -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] ConflictError with *one* ZEO client?
On Wednesday 28 June 2006 18:12, Jens Vagelpohl wrote: > On 28 Jun 2006, at 03:24, Richard Jones wrote: > > I've got a zopectl script I'm trying to run with the "zopectl run" > > command. It > > crashes out with a ConflictError even if there are no other ZEO > > clients > > connected to the ZEO store. I've restarted the ZEO store, no change. > > Having just one ZEO client will not mean you get no conflicts. Having > more than one client just means there is a higher chance that two > operations will concurrently modify the same object and cause them. > > If you're running a script you should tell us what the script does. The script merely modified a bunch of objects in the ZODB. Beyond that, there's not much that I can usefully tell you. I'm using Zope 2.8.5. As part of maintenance today I restarted the ZEO clients & server, while removing the ZEO caches from the clients. I can no longer reproduce the problem. Richard ___ 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] ConflictError with *one* ZEO client?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28 Jun 2006, at 03:24, Richard Jones wrote: I've got a zopectl script I'm trying to run with the "zopectl run" command. It crashes out with a ConflictError even if there are no other ZEO clients connected to the ZEO store. I've restarted the ZEO store, no change. Having just one ZEO client will not mean you get no conflicts. Having more than one client just means there is a higher chance that two operations will concurrently modify the same object and cause them. If you're running a script you should tell us what the script does. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEojnWRAx5nvEhZLIRAqz4AJ9yvOa2YaoExLHkOMKkkZDwuj9NfQCfU87Q ZIL29wrWJaci+hptUNANjdg= =CwE4 -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 )