[Zope] Re: Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-03-07 Thread Maik Ihde
I know that the kqread state has to do with the kqueue or kevent system call, and assume that Zope being in that waiting state for a long time is abnormal. Asking here in case someone has seen this behavior before and knows what might be the cause. As for the last and only other time this

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Jary Busato
Maciej Wisniowski ha scritto: I've just installed Zope 2.8 with Apache 2 and I made a download library (a CMS site is too much for me and I can't find a simple "download area" product, so I've done it!) What about railorad: http://www.infrae.com/products/railroad

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
Large files aren't store in ZODB but in a shared folder connected with LOCALFS. Maybe Zope load a file in zodb before begin the download? (Are there other storage product that work only in zope - without plone?) Tramline is an Apache add-on but my problem still remain without Apache so this

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Jary Busato
Maciej Wisniowski ha scritto: Large files aren't store in ZODB but in a shared folder connected with LOCALFS. Maybe Zope load a file in zodb before begin the download? (Are there other storage product that work only in zope - without plone?) Tramline is an Apache add-on but my problem

Re: [Zope] safe read-only access to acquisition parent objects

2007-03-07 Thread Eric Bréhault
Hello, Thank you for your answer Dieter. Indeed, I have been looking in all the restricted interpreter things. I have been reading zope\security\untristedinterpreter.txt, and I think it is probably what I need. The thing is I don't know how to produce a security proxy which would allow any

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
Looking LocalFS specs I find the issue: This version of LocalFS takes advantanges of Zope 2.7.1 http://www.zope.org/Members/hewei/zoperpms/zope2.7 's new /filestream_iterator/ feature and is believed to server large files better than before. However, my initial testing showed that *it still

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Jary Busato
Maciej Wisniowski ha scritto: Looking LocalFS specs I find the issue: This version of LocalFS takes advantanges of Zope 2.7.1 http://www.zope.org/Members/hewei/zoperpms/zope2.7 's new /filestream_iterator/ feature and is believed to server large files better than before. However, my

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
I want to use localfs instead of Apache becouse: 1) upload is done by web too tramline supports uploads and downloads 2) upload/download operations cause db operation (files names and descriptions are stored in sql server) With tramline: The only thing the appserver sees is a unique

[Zope] form-script-zsql

2007-03-07 Thread javi lopez
I´m doing a form with username and email, these values go script python and with a zsql method inside script, it stored in DB I have a zpt with a form I have a script python:: Connection DB:: db_system_type = REQUEST.get('db_system_type', 'mysql') from Products.ZMySQLDA import DA

Re: [Zope] form-script-zsql

2007-03-07 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 result = context.db_conn_id.db.query('YOUR QUERY HERE') robert javi lopez schrieb: I´m doing a form with username and email, these values go script python and with a zsql method inside script, it stored in DB I have a zpt with a form I have a

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
I don't understand your paste. I'll try to describe better my situation - server A with Apache(80) and a rewrite rule to Zope(8080) - server B with a shared folder storage - *without any webserver* - server C with MS SQL Server - *without any webserver* - connected with ZODBC - firewall

[Zope] database connection in script

2007-03-07 Thread javi lopez
how to create a database connection in a script python ___ 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

Re: [Zope] database connection in script

2007-03-07 Thread Jonathan
- Original Message - From: javi lopez [EMAIL PROTECTED] To: zope@zope.org Sent: Wednesday, March 07, 2007 7:48 AM Subject: [Zope] database connection in script how to create a database connection in a script python What kind of database are you trying to connect to? Jonathan

Re: [Zope] database connection in script

2007-03-07 Thread javi lopez
my database is Mysql. can you help me?Thanks ___ 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

Re: [Zope] database connection in script

2007-03-07 Thread Jonathan
- Original Message - From: javi lopez [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED]; zope@zope.org Sent: Wednesday, March 07, 2007 7:54 AM Subject: Re: [Zope] database connection in script my database is Mysql. can you help me?Thanks The easiest way to do this is to: 1-

Re: [Zope] database connection in script

2007-03-07 Thread Maciej Wisniowski
how to create a database connection in a script python This is your third (or more) thread about this during few hours! Ask a specific questions and be patient please. In general seems that you have no idea how it all works. So my advice is: 1. Read abour basics of relational database

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Jary Busato
Maciej Wisniowski ha scritto: I don't understand your paste. I'll try to describe better my situation - server A with Apache(80) and a rewrite rule to Zope(8080) - server B with a shared folder "storage" - *without any webserver* - server C with MS SQL Server - *without any webserver*

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
Sorry, I push the wrong button when I reply I'll try your configuration, but - where are files stored? (I dont't see server B in your post) Read http://www.infrae.com/products/tramline There is description where files are stored - it seems I'll lose Zope User Restrictions Possibly not. This

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Tino Wildenhain
Jary Busato schrieb: Maciej Wisniowski ha scritto: Large files aren't store in ZODB but in a shared folder connected with LOCALFS. Maybe Zope load a file in zodb before begin the download? (Are there other storage product that work only in zope - without plone?) Tramline is an Apache add-on but

[Zope] zexp viewer

2007-03-07 Thread Sunil_Sagar
Hi, I'm using plone and one of my page got corrupted and displaying blank page. I tried to undo but failed and got error. and in history I'm unable to copy to present. I can see zexp file is of 137kb, that shows information is available in that file. Please let me know if any third party tool

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Jary Busato
Maciej Wisniowski ha scritto: Sorry, I push the wrong button when I reply I'll try your configuration, but - where are files stored? (I dont't see server B in your post) Read http://www.infrae.com/products/tramline There is description where files are stored - it

Re: [Zope] zexp viewer

2007-03-07 Thread Jonathan
- Original Message - From: [EMAIL PROTECTED] To: zope@zope.org Sent: Wednesday, March 07, 2007 11:59 AM Subject: [Zope] zexp viewer Hi, I'm using plone and one of my page got corrupted and displaying blank page. I tried to undo but failed and got error. and in history I'm unable to

Re: [Zope] zexp viewer

2007-03-07 Thread Sunil_Sagar
Still getting bank page. --Sunil sagar Jonathan [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/07/2007 10:38 PM To zope@zope.org, [EMAIL PROTECTED] cc Subject Re: [Zope] zexp viewer - Original Message - From: [EMAIL PROTECTED] To: zope@zope.org Sent: Wednesday, March 07,

Re: [Zope] zexp viewer

2007-03-07 Thread Jonathan
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: zope@zope.org; [EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 12:38 PM Subject: Re: [Zope] zexp viewer Still getting bank page. --Sunil sagar If you have: 1- deleted the problem routine (script? zpt? dtml

Re: [Zope] safe read-only access to acquisition parent objects

2007-03-07 Thread Dieter Maurer
Eric Bréhault wrote at 2007-3-7 10:32 +0100: ... Indeed, I have been looking in all the restricted interpreter things. I have been reading zope\security\untristedinterpreter.txt, and I think it is probably what I need. The thing is I don't know how to produce a security proxy which would allow

Re: [Zope] invalid property value: wrapped object

2007-03-07 Thread Dieter Maurer
Please stay on the list! I usually do not respond to private email... List readded. Anthony Monta wrote at 2007-3-6 13:09 -0800: All I have is a form passing stuff through REQUEST to a method that maps REQUEST variables to properties explicitly, and passing that to the ZClass constructor

Re: [Zope] zexp viewer

2007-03-07 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2007-3-7 22:29 +0530: I'm using plone and one of my page got corrupted and displaying blank page. I tried to undo but failed and got error. and in history I'm unable to copy to present. I can see zexp file is of 137kb, that shows information is available in that file.

[Zope] Problems starting Zope 2.9.6 (ZEO starts fine)

2007-03-07 Thread Ben
I have setup Zope with ZEO on CentOS4.4, with the intention of running a Plone site. I previously used the same configuration to get Zope 2.9.3 with ZEO running on CentOS 3.7 * CentOS is setup without SELinux. * Python 2.5 is installed in /opt/python * Zeo starts fine, using

Re: [Zope] Problems starting Zope 2.9.6 (ZEO starts fine)

2007-03-07 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8 Mar 2007, at 00:35, Ben wrote: I have setup Zope with ZEO on CentOS4.4, with the intention of running a Plone site. I previously used the same configuration to get Zope 2.9.3 with ZEO running on CentOS 3.7 * CentOS is setup without SELinux.

Re: [Zope] Problems starting Zope 2.9.6 (ZEO starts fine)

2007-03-07 Thread Ben
On 3/8/07, Jens Vagelpohl [EMAIL PROTECTED] wrote: This is your problem. Zope 2.9 requires Python 2.4, and specifically does not want Python 2.5. Whoops! Sorry about that. Thankyou, Ben ___ Zope maillist - Zope@zope.org

[Zope] zope permissions

2007-03-07 Thread Roman Budzianowski
I have a folder in a plone site that when looked at in zmi doesn't have 'Security' tab. I don't see any way to change this by using parent's Security tab. In what circumstance can this happen? A programmatic hack? More important, how can I fix it, programmatically or not. When I look at

[Zope-dev] Zope Tests: 7 OK

2007-03-07 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Mar 6 12:00:00 2007 UTC to Wed Mar 7 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Tue Mar 6 21:08:30 EST 2007

[Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Christian Theune
Hi, [modified slightly from a similar proposal to zope3-dev to match Zope 2's publisher] I'm writing up a proposal for the ZODB to make even more efficient Blob handling possible. This includes not copying the data from an uploaded file, but using a `link` operation when possible. However,

Re: [Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Sidnei da Silva
What exactly do you mean by 'link'? As in 'soft links'? The uploaded file usually is a temporary file, so you are saying you would create a soft link on the 'blobs' directory to a file in the $TMP directory? Or maybe the other way around? -- Sidnei da Silva Enfold Systems

Re: [Zope-dev] Re: Caching ZCatalog results

2007-03-07 Thread Lennart Regebro
On 3/6/07, Dieter Maurer [EMAIL PROTECTED] wrote: Lennart Regebro wrote at 2007-2-23 21:25 +0100: ... Compared with Lucene for example, which instead will create iterators who will only resturn the next match. This saves you from a lot of index searching when you have big results. I don't know

Re: [Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Christian Theune
Am Mittwoch, den 07.03.2007, 14:01 -0300 schrieb Sidnei da Silva: What exactly do you mean by 'link'? As in 'soft links'? The uploaded file usually is a temporary file, so you are saying you would create a soft link on the 'blobs' directory to a file in the $TMP directory? Or maybe the other

Re: [Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Paul Winkler
On Wed, Mar 07, 2007 at 06:31:25PM +0100, Christian Theune wrote: Am Mittwoch, den 07.03.2007, 14:01 -0300 schrieb Sidnei da Silva: What exactly do you mean by 'link'? As in 'soft links'? The uploaded file usually is a temporary file, so you are saying you would create a soft link on the

Re: [Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Martin Aspeli
Christian Theune-2 wrote: Am Mittwoch, den 07.03.2007, 14:01 -0300 schrieb Sidnei da Silva: What exactly do you mean by 'link'? As in 'soft links'? The uploaded file usually is a temporary file, so you are saying you would create a soft link on the 'blobs' directory to a file in the $TMP

Re: [Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Christian Theune
Am Mittwoch, den 07.03.2007, 09:34 -0800 schrieb Martin Aspeli: Christian Theune-2 wrote: Am Mittwoch, den 07.03.2007, 14:01 -0300 schrieb Sidnei da Silva: What exactly do you mean by 'link'? As in 'soft links'? The uploaded file usually is a temporary file, so you are saying you

[Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-07 Thread Christian Theune
I was looking through some publisher code and found that the `process_request` method which takes the request body as a file-like object and processes it as a FieldStorage happens within the application thread. This would be better if it happened beforehand because it can takes up time while a

RE: [Zope-dev] anon http svn access status?

2007-03-07 Thread sean.upton
So: will anon http svn access happen? I'm late to this round of the discussion, but +1. I would suggest https, though, to make it firewall-friendly. Even if this is an anonymous mirror (sounds more likely), it would make sense for community bundle builders (e.g. Plone bundles) to use https

Re: [Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-07 Thread Dieter Maurer
Christian Theune wrote at 2007-3-7 20:09 +0100: I was looking through some publisher code and found that the `process_request` method which takes the request body as a file-like object and processes it as a FieldStorage happens within the application thread. This would be better if it happened

Re: [Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-07 Thread Christian Theune
Hi, Am Mittwoch, den 07.03.2007, 21:48 +0100 schrieb Dieter Maurer: Christian Theune wrote at 2007-3-7 20:09 +0100: I was looking through some publisher code and found that the `process_request` method which takes the request body as a file-like object and processes it as a FieldStorage

[Zope-dev] Re: [Zope3-dev] Google Summer of Code

2007-03-07 Thread Lennart Regebro
On 3/5/07, Philipp von Weitershausen [EMAIL PROTECTED] wrote: a) mentors. It'd be great if some of the Zope core committers would volunteer to mentor a student. This doesn't mean you will definitely end up mentoring one, just show your willingness. Yeah, I could do that. b)

Re: [Zope-dev] Zope Tests: 7 OK

2007-03-07 Thread Christian Theune
Am Mittwoch, den 07.03.2007, 13:00 +0100 schrieb Zope Tests Summarizer: Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue Mar 6 21:17:31 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007404.html I'm questioning those tests. I have two tests

[Zope-dev] Road to Zope 2.11

2007-03-07 Thread Christian Theune
Hi, few questions: a) I want to do the switch to ZODB 3.8 (currently trunk) b) That needs zope.proxy as of Zope 3.4 (currently trunk) Is there anything that would block this and if something how I can contribute unblocking it? Christian -- gocept gmbh co. kg - forsterstraße 29 - 06112

[Zope-dev] Re: ZopeTestCase.doctest is not aware of local sites

2007-03-07 Thread Hanno Schlichting
Hi again, I just noticed that the publish method from the Functional base class from ZopeTestCase has the same problem. You can find the adjusted test attached. Hanno Hanno Schlichting wrote: Hi all, while pushing local site support in CMF/Plone I came across some weird test failures.

[Zope-dev] Re: Road to Zope 2.11

2007-03-07 Thread Philipp von Weitershausen
Christian Theune wrote: a) I want to do the switch to ZODB 3.8 (currently trunk) b) That needs zope.proxy as of Zope 3.4 (currently trunk) Is there anything that would block this and if something how I can contribute unblocking it? The only way to really find out is to try it. Zope 3.3 and

Re: [Zope-dev] Proposal for optimized Blob handling

2007-03-07 Thread Sidnei da Silva
On 3/7/07, Christian Theune [EMAIL PROTECTED] wrote: Does this work on Windows? Link does not work on Windows using the link() function from the os module. I don't know whether Windows has any API for doing this kind of operation. Yes [1] it [2] does [3]. The omission on os.link() is just

Re: [Zope-dev] Early processing of request body (was: Proposal for optimized Blob handling)

2007-03-07 Thread Sidnei da Silva
On 3/7/07, Christian Theune [EMAIL PROTECTED] wrote: Right. This optimization is about leveraging the fact that in many situations the upstream bandwith is *much* lower than the IO bandwith to the disk. Another condition that I have (and I think this is the general pattern) is that application

[Zope-dev] Re: [Zope3-dev] Google Summer of Code

2007-03-07 Thread Philipp von Weitershausen
On 7 Mar 2007, at 12:24 , Lennart Regebro wrote: On 3/5/07, Philipp von Weitershausen [EMAIL PROTECTED] wrote: a) mentors. It'd be great if some of the Zope core committers would volunteer to mentor a student. This doesn't mean you will definitely end up mentoring one, just show

[Zope-dev] Re: Proposal for optimized Blob handling

2007-03-07 Thread Philipp von Weitershausen
Christian Theune wrote: Hi, [modified slightly from a similar proposal to zope3-dev to match Zope 2's publisher] I'm writing up a proposal for the ZODB to make even more efficient Blob handling possible. This includes not copying the data from an uploaded file, but using a `link` operation

Re: [Zope-dev] Re: Proposal for optimized Blob handling

2007-03-07 Thread Chris McDonough
Note that one micro-optimization for PUT requests is to not use a FieldStorage at all because the body is never mime-encoded anyway in practice. I have a monkey patch to do this now, which I turned into a patch for the core, but took out because Phillipp whined at a sprint once. ;-)

[Zope-dev] Re: [Zope3-dev] Re: Proposal for optimized Blob handling

2007-03-07 Thread Sidnei da Silva
On 3/7/07, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Am I the only person here who immediately associated link with the POSIX? Also, am I the only one who read when possible as when on a POSIX system where link is available, in other words, when not on Windows? One starts to wonder...

[Zope-dev] Re: [Zope3-dev] Re: Proposal for optimized Blob handling

2007-03-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sidnei da Silva wrote: On 3/7/07, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Am I the only person here who immediately associated link with the POSIX? Also, am I the only one who read when possible as when on a POSIX system where link is

[ZWeb] wiki.zope.org news

2007-03-07 Thread Simon Michael
An update on the wiki.zope.org/*.zwiki.org server for 2007/3/7: Uptime troubles and investigations continue, and there have been significant outages as I haven't always been able to respond quickly. Thanks for your patience; we are making progress. - Yesterday, an automated zope restart failed

Re: [ZWeb] wiki.zope.org news

2007-03-07 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - Yesterday, an automated zope restart failed because of an error related to the (new) permanent zeo cache. I have gone back to temporary zeo cache. Persistent ZEO caches usually create more problems than they solve. There are deeply

[Zope-DB] form-controllerPythonScript-ZSQL

2007-03-07 Thread javi lopez
Hello everyone: i´m doing a form where i get email and one ask. when I check that email is valid, I do Controller Python Script where i want to create: - DB conecction - ZSQL method to modify DB - get user session and after i call a zpt, it tell me that all it´s ok DB conection: db_system_type

Re: [Zope-DB] form-controllerPythonScript-ZSQL

2007-03-07 Thread Charlie Clark
Am 07.03.2007, 10:35 Uhr, schrieb javi lopez [EMAIL PROTECTED]: Hello everyone: i´m doing a form where i get email and one ask. when I check that email is valid, I do Controller Python Script where i want to create: Why do you need a DB connection per user? You can't do this in a

Re: [Zope-DB] form-controllerPythonScript-ZSQL

2007-03-07 Thread Maciej Wisniowski
zsql: how to do it Have you read 'Relational database connectivity' chapter of Zope Book? -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db

Re: [Zope-DB] form-controllerPythonScript-ZSQL

2007-03-07 Thread javi lopez
All that is a little part of a Product, but i need check that´s ok , when I fill in the form , email and ask are stored in my DB with zsql method, i need user to stored in DB too. how could do it?? thanks 2007/3/7, Charlie Clark [EMAIL PROTECTED]: Am 07.03.2007, 10:35 Uhr, schrieb javi lopez