Re: [Zope-dev] Redirecting from the manage interfaces.

2000-07-21 Thread Dieter Maurer
Erik Enge wrote: > > call, it won't redirect. So you should be able to achieve the same > > results just by invoking manage_addImage without including the REQUEST > > object. > > But I have to pass something with the REQUEST, or else it won't add the > image, right? I do not think so. "manage_a

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Shane Hathaway
Steve Alexander wrote: > My question is "why was __getitem__ of HTTPRequest.py designed this > way?". > > Is there a good reason that it filters the keys according to membership > of a standard-cgi-keys list, or whether they start with 'HTTP_' ? > Would there be any disadvantage to altering __get

Re: [Zope-dev] Problem acquiring via a newly created object

2000-07-21 Thread Shane Hathaway
Richard Barrett wrote: > I'm using the following python expression in the manage_addFolder and > manage_addDocument functions to determine the location in the file > system for the RCS backup of the data. > > rcspath = os.path.normpath(getattr(self, 'website_RCS_root') + \ >

[Zope-dev] Python 2.0

2000-07-21 Thread Toby Dickenson
Is anyone else using Zope with python 2.0? (on NT, fwiw) I am occasionally seeing protection faults as Zope starts up. When it happens, the fault is repeatable until I truncate data.fs. There may be some correlation to changing a help file (Zope's new help system will reindex its help files at st

Re: [Zope-dev] Problem acquiring via a newly created object

2000-07-21 Thread Steve Alexander
Richard Barrett wrote: > > My classes (and some others yet to be written) are intended for use > when requirements stipulate that published material must be > held/protected in RCS as well as being served via Zope. I've elected > to put an attribute called 'web_RCS_root' at the top of the Zope >

Re: [Zope-dev] Problem acquiring via a newly created object

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: > > Richard Barrett wrote: > > > > My classes (and some others yet to be written) are intended for use > > when requirements stipulate that published material must be > > held/protected in RCS as well as being served via Zope. I've elected > > to put an attribute called 'we

[Zope-dev] Problem acquiring via a newly created object

2000-07-21 Thread Richard Barrett
I'm stumbling to find a solution to the following problem. Using python I have created two classes which respectively derive from the standard Zope Folder class and DTMLDocument class. My classes (and some others yet to be written) are intended for use when requirements stipulate that publishe

[Zope-dev] dtml-in problem at Zope 2.2.0

2000-07-21 Thread Jacques Exelrud
Here is the scenario: On Folder X I have a Z ODBC Database Connection and some Z SQL Method. I´m sure all are working because I´ve tested them all. Under Folder X I have another Folder Y with an index_html with the following: No need to include anything inside the dtml-in.

Re: [Zope-dev] several permissions for the same method

2000-07-21 Thread Jephte CLAIN
Chris Withers wrote: > You could just check for the permissions specifically, here's a quote > from Folder.py in Zope 2.2: Yes. though it seems odd to create permissions not protecting any method that are just meant to be checked. calling a method that the current user is not not allowed to access

[Zope-dev] zzLocale 0-0-3a released on Zope Japan

2000-07-21 Thread Yves-Eric Martin
Hi Zopistas, This is the second alpha release of zzLocale, a Zope locale support Product. zzLocale provides a framework for Zope interface internationalization (Zope and Products management screens). The localization is done on a per request basis, which allows developers from diffe

[Zope-dev] Zope bug (w/ patch): hard coded Unix separator in special_dtml.py

2000-07-21 Thread Yves-Eric Martin
Hello Zopistas, When trying to figure out why our Product zzLocale was behaving strangely under Windows, I found that the raw attribute of management screens was weird (had a unix separator '/' before the template name), and I traced it back to what I believe is a bug in Zope: In lib/py

[Zope-dev] Datebug?

2000-07-21 Thread Peter Arvidsson
I have encountered a strange and irritating problem. As I live in Sweden we use timezone 'GMT+1'. I have a form like this: And when I press submit I come to this page: The input field are correctly displaying the date (in GMT+1) but when I submit the form and use the "fmt" the date i

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: > > My question is "why was __getitem__ of HTTPRequest.py designed this > way?". > > Is there a good reason that it filters the keys according to membership > of a standard-cgi-keys list, or whether they start with 'HTTP_' ? > Would there be any disadvantage to altering __

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: > > However, looking in the code, it starts off by looking in "other", and > doesn't look in "environ" at all. > > I suggest a patch to go right after the method's docstring: > > def __getitem__(self,key, > default=_marker, # Any special internal m