[Zope] Opening uploaded file
hi, I have an uploaded file in home folder.i have a page which has an internal link to that file.But when i click the link a dialogue box is opened saying this is ASC file what you want firefox to do with this file.two options open,save is there.. But I need to display it in my page when user click the link.what can i do to open the file automatically..i had changed the content type of file to text/plain.. Please help.. thanks in advance - Unlimited freedom, unlimited storage. Get it now___ 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] unicode support
I am using Zope 2.9 connected to a Posgres DB via psycopg. My database encoding is UTF8. I am getting the following error when users try to insert text in the database containing £ signs: ERROR: invalid byte sequence for encoding UTF8: 0xa3 This is due to the encoding of a £ sign in the text being sent to the DB. My question then is how do I make sure that all encodings submiitted from forms are in the correct UTF8 format? 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 )
Re: [Zope] unicode support
--On 26. Juni 2008 14:09:50 + Garry Saddington [EMAIL PROTECTED] wrote: I am using Zope 2.9 connected to a Posgres DB via psycopg. My database encoding is UTF8. I am getting the following error when users try to insert text in the database containing £ signs: ERROR: invalid byte sequence for encoding UTF8: 0xa3 This is due to the encoding of a £ sign in the text being sent to the DB. My question then is how do I make sure that all encodings submiitted from forms are in the correct UTF8 format? Regards Use ensure that the HTML page uses UTF-8 as encoding (either using meta-equiv... within the HTML page or by sending content-type: text/html; charset=utf-8 as HTTP header. Andreas pgpRXHSOv7EuI.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] unicode support
Make the form input tags look like this: input name=mystring:utf-8:ustring / then you'll be certain to get it into Zope as unicode under utf-8. 2008/6/26 Garry Saddington [EMAIL PROTECTED]: I am using Zope 2.9 connected to a Posgres DB via psycopg. My database encoding is UTF8. I am getting the following error when users try to insert text in the database containing £ signs: ERROR: invalid byte sequence for encoding UTF8: 0xa3 This is due to the encoding of a £ sign in the text being sent to the DB. My question then is how do I make sure that all encodings submiitted from forms are in the correct UTF8 format? 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 ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.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] Opening uploaded file
--On 26. Juni 2008 11:45:47 +0100 sujitha mary [EMAIL PROTECTED] wrote: hi, I have an uploaded file in home folder.i have a page which has an internal link to that file.But when i click the link a dialogue box is opened saying this is ASC file what you want firefox to do with this file.two options open,save is there.. But I need to display it in my page when user click the link.what can i do to open the file automatically..i had changed the content type of file to text/plain.. Please help.. thanks in advance Please provide a some clear and understandable description. Reading the posting back-and-forth - it remains weird. Andreas pgp8y8U4aKBYH.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] unicode support
On Thursday 26 June 2008 15:12, Andreas Jung wrote: --On 26. Juni 2008 14:09:50 + Garry Saddington [EMAIL PROTECTED] wrote: I am using Zope 2.9 connected to a Posgres DB via psycopg. My database encoding is UTF8. I am getting the following error when users try to insert text in the database containing £ signs: ERROR: invalid byte sequence for encoding UTF8: 0xa3 This is due to the encoding of a £ sign in the text being sent to the DB. My question then is how do I make sure that all encodings submiitted from forms are in the correct UTF8 format? Regards Use ensure that the HTML page uses UTF-8 as encoding (either using meta-equiv... within the HTML page or by sending content-type: text/html; charset=utf-8 as HTTP header. I have taken this a little further after trying all suggestions in the thread with no success and looked into zope.conf, specifically: # Directive: default_zpublisher_encoding # # Description: # This controls what character set is used to encode unicode # data that reaches ZPublisher without any other specified encoding. # # Default: iso-8859-15 # # Example: # #default_zpublisher_encoding utf-8 As my pages all report as iso-8859-15 I thought a change here would help, but this happens: from OFS.content_types import guess_content_type Error: 'default_zpublisher_encoding' is not a known key name It works on this: Zope Version (Zope 2.9.0, python 2.4.2, win32) And fails on this: Zope Version (Zope 2.9.0-, python 2.4.5, linux2) Any further help would be appreciated. regards Garry ps. just noticed the typo (not mine) in zope.conf - default_zpublisher_encoding should be default-zpublisher-encoding all sorted ___ 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] ZcxOracleDA, LocalFS, ZMySQLDA
I upgraded my Zope server to 2.11.0 from 2.8.7. To do that I needed to update the above 3 products. I am not sure of the process to get the products updated so others can use them. Any guidance is appreciated. -- Jeffrey D Peterson Webmaster Crary Industries, Inc. ___ 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] unicode support
I would advice against relying on default-zpublisher-encoding. I never used that. By specifying the encoding like this variablename:utf8:ustring you override whatever default-zpublisher-encoding was set to. If you rely on default-zpublisher-encoding your product isn't installable somewhere in another zope without explicit instructions and it might clash with other things installed. Remember, it's just a default. 2008/6/26 Garry Saddington [EMAIL PROTECTED]: On Thursday 26 June 2008 15:12, Andreas Jung wrote: --On 26. Juni 2008 14:09:50 + Garry Saddington [EMAIL PROTECTED] wrote: I am using Zope 2.9 connected to a Posgres DB via psycopg. My database encoding is UTF8. I am getting the following error when users try to insert text in the database containing £ signs: ERROR: invalid byte sequence for encoding UTF8: 0xa3 This is due to the encoding of a £ sign in the text being sent to the DB. My question then is how do I make sure that all encodings submiitted from forms are in the correct UTF8 format? Regards Use ensure that the HTML page uses UTF-8 as encoding (either using meta-equiv... within the HTML page or by sending content-type: text/html; charset=utf-8 as HTTP header. I have taken this a little further after trying all suggestions in the thread with no success and looked into zope.conf, specifically: # Directive: default_zpublisher_encoding # # Description: # This controls what character set is used to encode unicode # data that reaches ZPublisher without any other specified encoding. # # Default: iso-8859-15 # # Example: # # default_zpublisher_encoding utf-8 As my pages all report as iso-8859-15 I thought a change here would help, but this happens: from OFS.content_types import guess_content_type Error: 'default_zpublisher_encoding' is not a known key name It works on this: Zope Version (Zope 2.9.0, python 2.4.2, win32) And fails on this: Zope Version (Zope 2.9.0-, python 2.4.5, linux2) Any further help would be appreciated. regards Garry ps. just noticed the typo (not mine) in zope.conf - default_zpublisher_encoding should be default-zpublisher-encoding all sorted ___ 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 ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.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] ZcxOracleDA, LocalFS, ZMySQLDA
--On 26. Juni 2008 17:03:27 -0500 Jeff Peterson [EMAIL PROTECTED] wrote: I upgraded my Zope server to 2.11.0 from 2.8.7. To do that I needed to update the above 3 products. I am not sure of the process to get the products updated so others can use them. What is your problem? Like in our old installation: you donwload the products and install them in the same way as you did earlier. Of course you have to check if those products are compatible with most recent Zope versions (check yourself by installing them, if necessary get back to the authors of the products). -aj pgp9iaLe3fQwm.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] unicode support
--On 26. Juni 2008 22:05:06 + Garry Saddington [EMAIL PROTECTED] wrote: On Thursday 26 June 2008 15:12, Andreas Jung wrote: --On 26. Juni 2008 14:09:50 + Garry Saddington [EMAIL PROTECTED] wrote: I am using Zope 2.9 connected to a Posgres DB via psycopg. My database encoding is UTF8. I am getting the following error when users try to insert text in the database containing £ signs: ERROR: invalid byte sequence for encoding UTF8: 0xa3 This is due to the encoding of a £ sign in the text being sent to the DB. My question then is how do I make sure that all encodings submiitted from forms are in the correct UTF8 format? Regards Use ensure that the HTML page uses UTF-8 as encoding (either using meta-equiv... within the HTML page or by sending content-type: text/html; charset=utf-8 as HTTP header. I have taken this a little further after trying all suggestions in the thread with no success and looked into zope.conf, specifically: # Directive: default_zpublisher_encoding # # Description: # This controls what character set is used to encode unicode # data that reaches ZPublisher without any other specified encoding. # # Default: iso-8859-15 # # Example: # #default_zpublisher_encoding utf-8 As my pages all report as iso-8859-15 I thought a change here would help, but this happens: from OFS.content_types import guess_content_type Error: 'default_zpublisher_encoding' is not a known key name It works on this: Zope Version (Zope 2.9.0, python 2.4.2, win32) And fails on this: Zope Version (Zope 2.9.0-, python 2.4.5, linux2) Totally wrong approach modifying the zpublisher encoding here. As said you have two options: - meta http-equiv=Content-Type content=text/html; charset=utf-8 / with in your HTML . tal:call define=dummy python: request.RESPONSE('content-type', 'text/html;; charset=utf-8') / within your template The Second solution is known to work across all browsers reliably. -aj pgpGyOXTz0zJ9.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 )
[Zope-dev] Release zope.app.container 3.5.4?
Hi, I saw that ccomb fixed bug #227617 a few days ago (thanks!) and that he also backported it to the 3.5 branch. zope.app.container has a couple of bugfixes aggregated already and I'd like to do a release. Any objections? Christian -- Christian Theune · [EMAIL PROTECTED] gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPublisher XMLRPC decoding
Hi, the publisher normally converts the arguments given with a request into a type that is easy to use. For example unicode conversion happens automatically. XMLRPC defines specific helper types to represent objects for the XMLRPC wire protocol. Automatic conversion happens for all XMLRPC objects except DateTime. Python 2.5 adds a flag to various functions that allows signalling whether DateTime objects should conform to datetime.datetime objects which I think is a good idea in general. zope.publisher could be changed to do this even for Python 2.4 I guess. Comments? -- Christian Theune · [EMAIL PROTECTED] gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Wed Jun 25 11:00:00 2008 UTC to Thu Jun 26 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Wed Jun 25 21:04:18 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009760.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Tests Date: Wed Jun 25 21:05:48 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009761.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Wed Jun 25 21:07:19 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009762.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Tests Date: Wed Jun 25 21:08:49 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009763.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Tests Date: Wed Jun 25 21:10:21 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009764.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPublisher XMLRPC decoding
On Thursday 26 June 2008, Christian Theune wrote: Comments? +1 Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zope.app.security 3.5.1 ZCML changes
Someone changed the ZCML that registers the gopherlib module (why???) to this: !-- This package has been deprecated in Python 2.5; let's use a cheap way of detecting Python 2.5 by checking whether the package regex exists, which has been deleted in that version. -- module module=gopherlib zcml:condition=installed regex allow attributes=send_selection send_query / /module In trying to avoid a Python 2.5 deprecation warning (not removal), this code imports and causes a deprecation warning for a module that was declared obsolete in Python 1.5 (yes, that's a 1!). Isn't this just a little bit insane? I think the condition should be removed for zope.app.security 3.5.2, and the registration of gopherlib should be removed for 3.6.0. -Fred -- Fred L. Drake, Jr. fdrake at gmail.com Chaos is the score upon which reality is written. --Henry Miller ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.app.security 3.5.1 ZCML changes
On Thu, Jun 26, 2008 at 12:33 PM, Stephan Richter [EMAIL PROTECTED] wrote: I did as you were aware of. :-) I wasn't, because I didn't look. Note also that I wasn't asking who; I don't think that matters. The gopherlib module was there before, I just shut up the deprecation warning. Using Python 2.4.4, I get a deprecation warning for *regex*. So you shut up the deprecation warning for Python 2.5 by introducing one for Python 2.4. A deprecation warning was not issued until Python 2.5 though. How would I know? About the gopherlib deprecation? That wasn't deprecated until recently; it was regex that was declared obsolete in 1.5, and 2.4 generates a deprecation warning. I'll take it that you didn't test your change with Python 2.4, which is still the supported Python for Zope 3.4 (whatever that means). I am not sure why you would want a 3.5.2 release, since nothing breaks. I am all in favor removing this declaration for 3.6.0. Because of the deprecation warning from the regex module. Deprecation warnings aren't breakages, but when running tests, they can make it a lot harder to see real errors as the output is generated by the test runner. This is especially bad if you have a lot of separate functional testing layers. -Fred -- Fred L. Drake, Jr. fdrake at gmail.com Chaos is the score upon which reality is written. --Henry Miller ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases
On Thu, Jun 26, 2008 at 1:06 PM, Martijn Faassen [EMAIL PROTECTED] wrote: Hi there, I'm curious about the plans of Zope 3 on Python 2.5. * Are people using Zope 3 with Python 2.5 already? What are your experiences? We are using Python 2.5 fully for the last several months now and have encountered zero problems. -- Paul Carduner http://www.carduner.net ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope.app.security 3.5.1 ZCML changes
On Thursday 26 June 2008, Fred Drake wrote: The gopherlib module was there before, I just shut up the deprecation warning. Using Python 2.4.4, I get a deprecation warning for *regex*. So you shut up the deprecation warning for Python 2.5 by introducing one for Python 2.4. Okay, I did not parse that from your first E-mail. I will fix it and test it in both, Py 2.4 and 2.5. No problemo. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases
On Thu, 2008-06-26 at 13:14 -0700, Paul Carduner wrote: On Thu, Jun 26, 2008 at 1:06 PM, Martijn Faassen [EMAIL PROTECTED] wrote: Hi there, I'm curious about the plans of Zope 3 on Python 2.5. * Are people using Zope 3 with Python 2.5 already? What are your experiences? We are using Python 2.5 fully for the last several months now and have encountered zero problems. Paul, Are you doing this on Linux? I tried 3.4 on Python 2.5 a few weeks ago and I don't recall the problems now but there were several. --Tim -- Timothy Cook, MSc Health Informatics Research Development Services LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook Skype ID == timothy.cook ** *You may get my Public GPG key from popular keyservers or * *from this link http://timothywayne.cook.googlepages.com/home* ** signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases
On Thu, Jun 26, 2008 at 6:11 PM, Tim Cook [EMAIL PROTECTED] wrote: On Thu, 2008-06-26 at 13:14 -0700, Paul Carduner wrote: On Thu, Jun 26, 2008 at 1:06 PM, Martijn Faassen [EMAIL PROTECTED] wrote: Hi there, I'm curious about the plans of Zope 3 on Python 2.5. * Are people using Zope 3 with Python 2.5 already? What are your experiences? We are using Python 2.5 fully for the last several months now and have encountered zero problems. Paul, Are you doing this on Linux? I tried 3.4 on Python 2.5 a few weeks ago and I don't recall the problems now but there were several. Yep. I can confirm that things work on Ubuntu Gutsy, hardy, as well as CentOS (the latest release). I should mention that we are not using the mega zope checkout but rather just a bunch of eggs: most of the core stuff plus a bunch of z3c.* packages. -- Paul Carduner http://www.carduner.net ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )