[Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Roman Suzi
Hi! Newer Zope versions have an interesting ability to serve large files efficiently given the file name ( http://plope.com/Members/chrism/ploneconf2004/2004pres.txt ). What about serving large files given file(-like) handler? It could be very beneficial sometimes, especially with dynamically

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Tino Wildenhain
Roman Suzi schrieb: Hi! Newer Zope versions have an interesting ability to serve large files efficiently given the file name ( http://plope.com/Members/chrism/ploneconf2004/2004pres.txt ). What about serving large files given file(-like) handler? It could be very beneficial sometimes, especi

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Roman Suzi
On Tue, 8 Nov 2005, Tino Wildenhain wrote: Roman Suzi schrieb: Hi! Newer Zope versions have an interesting ability to serve large files efficiently given the file name ( http://plope.com/Members/chrism/ploneconf2004/2004pres.txt ). What about serving large files given file(-like) handler?

Re: [Zope] DateTime strftime problem

2005-11-08 Thread Jürgen Herrmann
[ Andreas Jung wrote:] > > > --On 7. November 2005 15:36:26 +0100 Andreas Jung <[EMAIL PROTECTED]> > wrote: > >> >> >> --On 7. November 2005 15:22:56 +0100 Jürgen Herrmann >> <[EMAIL PROTECTED]> wrote: >> >>> 2. if this works as expected, why not make DateTime a wrapper around >>> python datetime

Re: [Zope] Equivalent of __of__ in Script (Python).

2005-11-08 Thread Chris Withers
JoseLuis de la Rosa Triviño wrote: tmp_user.__of__(context.acl_users) What makes you think you need to do this? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@z

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Jonathan
- Original Message - From: "Roman Suzi" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 08, 2005 8:47 AM Subject: Re: [Zope] Serve large files efficiently from a pipe On Tue, 8 Nov 2005, Tino Wildenhain wrote: Roman Suzi schrieb: Hi! Newer Zope versions have an interesting abilit

Re: [Zope] DateTime strftime problem

2005-11-08 Thread Jürgen Herrmann
[ Jürgen Herrmann wrote:] > i looked at the source of DateTime::strftime(), surpirse, surprise :) > strftime uses python's datetime class and it's strftime method! > but no care is taken at this time for timezone information, so i > decided to code a tzinfo subclass for datetime that can represent

[Zope] Which part of Zope cares about interfaces in Products?

2005-11-08 Thread Hideo at Yokohama
Hi. I'm trying to learn how to code Plone products using Archetypes, but to get a sound understanding, I'm going through layer by layer, starting from Zope products written in Python. I have been trying Plone for about 6 months. My Python experience is very limited. In Zope Developer's

Re: [Zope] DateTime strftime problem

2005-11-08 Thread Chris Withers
Andreas Jung wrote: This idea had been discussed already for Python 2.4 or Python 2.5 I think. Since 100% compatibility could not be guaranteed, What? you mean it wouldn't be broken? ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.c

Re: [Zope] DateTime strftime problem

2005-11-08 Thread Chris Withers
Jürgen Herrmann wrote: d = DateTime('2005/04/03 02:01 UTC') d.toZone('GMT+1').strftime('%Y/%m/%d %H:%M %Z') '2005/04/03 03:01 GMT+0100' is this correct? if so, the i would tend to say, the testcase was written to pass with wrong strftime() behaviour. That would be entirely unsuprising *sig

Re: [Zope] Which part of Zope cares about interfaces in Products?

2005-11-08 Thread Lennart Regebro
On 11/8/05, Hideo at Yokohama <[EMAIL PROTECTED]> wrote: > The Zope Developer's guide does not actually say that you must define > interfaces to make your product work. It just says that doing so will make it > easier for other people to understand your products. If that is the sole > effect of us

Re: [Zope] useradd command in Zope

2005-11-08 Thread Chris Withers
ajit mote wrote: command="/usr/sbin/adduser -p "+password+" "+ userName return os.system(command) You are going to get yourself into a world of pain. os.system isn't the right thing to use here due to its lack of output redirection. Calling adduser like that is a really big hole in your sys

Re: [Zope] VIRTUAL_URL Failure

2005-11-08 Thread Chris Withers
George Lee wrote: On my Plone site, in CookieCrumbler.py, VIRTUAL_URL is not found in the request variable even though I have a Virtual Host Monster. This means that when logging in, the "came_from" URL that my site directs to becomes something ugly like What version of Zope are you using? Why

Re: [Zope] how to remove templates/scripts in ZMI from translated folders got from LinguaPlone...

2005-11-08 Thread Chris Withers
Lucia Colombo wrote: I can actually locate the scripts/templates in the translated folders, searching by id in the site through the ZMI. But once I located them, I can possibly edit them but not remove them, as I can't list the folder contents. Any help would be appreciated. Sounds like a pro

Re: [Zope] VHM and SSL protection problem

2005-11-08 Thread Chris Withers
Sascha Welter wrote: second rule. You likely need both, though I have not used fastcgi in a while. ...why anyone would want to nowadays is an interesting question ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

Re: [Zope] VIRTUAL_URL Failure

2005-11-08 Thread George Lee
Zope 2.8.1 In Plone 2.1.1, when I try to access a page Anonymous does not have permission to see, it redirects to a login. While doing so, it sets a came_from variable with the URL I'm trying to access. It sets an ugly http://my.domain.org/VirtualHostBase/http/my.domain.org:80/contentPages which

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Paul Winkler
On 11/8/05, Roman Suzi <[EMAIL PROTECTED]> wrote: > I don't know if writing to response one chunk at a time is proper > solution? Will Zope store response body or sent it right away? I am not > sure that it is the later... The classic way to do streaming data in Zope is like so: RESPONSE.setHead

Re: [Zope] Reading GIS files(.shp, .dbx, .) into ZopeDatabase

2005-11-08 Thread Dieter Maurer
Allen Huang wrote at 2005-11-6 17:10 -0800: >I want to Reading GIS files(.shp, .dbx, .iforget) into ZopeDatabase. What does "reading GIS files into ZODB" means? Storing them as blobs (Binary Large OBjects) is trivial (you use a "File" object for this). Understanding them might prove a bit more di

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Dieter Maurer
Roman Suzi wrote at 2005-11-8 13:05 +0200: > ... >What about serving large files given file(-like) handler? It could be >very beneficial sometimes, especially with dynamically generated >content... You must observe the restrictions required by HTTP! HTTP 1.1 requires that if a response contains

[Zope] zope/pone dies without traceback:cant uplaod data with umlauts anymore

2005-11-08 Thread robert rottermann
Hi there, I want to upload data trough a form into a database. This used to work fine for a year or so. Now when ever there are non ascii characters in the text to upload zope dies without any traceback but the following: There is no entry in the error log, neither in plone nor in one of zop

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Roman Suzi
On Tue, 8 Nov 2005, Paul Winkler wrote: On 11/8/05, Roman Suzi <[EMAIL PROTECTED]> wrote: > I don't know if writing to response one chunk at a time is proper solution? Will Zope store response body or sent it right away? I am not sure that it is the later... The classic way to do streaming da

[Zope] DateTime problem

2005-11-08 Thread [EMAIL PROTECTED]
I have the following code that works on one Zope install and does not work on another. I would like to be able to use the same code under both, but am at a loss as to why there is a difference. I do not control the Zope servers running this application. Any help would be appreciated: On one server

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Roman Suzi
On Tue, 8 Nov 2005, Dieter Maurer wrote: Roman Suzi wrote at 2005-11-8 13:05 +0200: ... What about serving large files given file(-like) handler? It could be very beneficial sometimes, especially with dynamically generated content... You must observe the restrictions required by HTTP! HTTP

[Zope] zope installation on suse linux es 9.0

2005-11-08 Thread Zed
hi all i would like to know wich is the version of zope that can be installed on suse linux 9.0 e.s my version of python is 2.3. do i need package updating? thanks ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB

[Zope] Zope Service Startup Failure

2005-11-08 Thread [EMAIL PROTECTED]
I am having problems with Zope running on my Windows Web Server. This is quite a recent development (last two days) - things normally run perfectly well but lately the Zope service has stopped working. I get the following entry in the Zope event.log: 2005-11-08T20:51:13 INFO WinSignalHandler Cau

Re: [Zope] Reading GIS files(.shp, .dbx, .) into ZopeDatabase

2005-11-08 Thread Allen Huang
I know it might be difficult, but I like try it. I don't really like to use multiple databases if I could fit all the data into onto zope or mutiple zope databases, maybe it could increase dataflow since I wouldn't need to transform data from one format to another.   But I'm really concern on how

Re: [Zope] zope installation on suse linux es 9.0

2005-11-08 Thread robert rottermann
Zed wrote: hi all i would like to know wich is the version of zope that can be installed on suse linux 9.0 e.s my version of python is 2.3. you shoul update your python to python 2.3.5 and of course do not use the zope tha comes preinstalled with suse (it is outdated) all the rest is fine