[Zope] Backing out the Zope Hotfix 2005-10-09 that broke my zope 2.7.5

2005-10-13 Thread John Schinnerer
Aloha, FWIW here's what I found while backing out the hotfix on my zope 2.7.5: The hotfix-installed files are set to an owner, group and perms that do not work with an existing install (zope fails to start up completely/correctly). I don't know if there are other problems also, but that was the

Re: [Zope] Backing out the Zope Hotfix 2005-10-09 that broke my zope 2.7.5

2005-10-13 Thread Peter Bengtsson
The trick is to do something like this which is what I did: $ cd /usr/lib/zope-2.7.5/lib/python/ $ wget http://www.zope.org/Products/Zope/Hotfix_2005-10-09/security_alert/Hotfix_2005-10-09.tar.gz $ tar -zxvf Hotfix_2005-10-09.tar.gz $ chmod -R 644 . $ chmod -R +X . That's on a debian to. YMMV.

[Zope] MailTemplate attachment problem..

2005-10-13 Thread Nicolas Georgakopoulos
Trying to send an attachment I get another error: Error Type: Unauthorized Error Value: You are not allowed to access 'add_file' in this context and the traceback: Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Modu

Re: [Zope] Determining user from session object - who is logged in?

2005-10-13 Thread Chris McDonough
On Thu, 2005-10-13 at 00:26 +0200, Gaute Amundsen wrote: > Well, I know that ther might easily be "login less" sessions, > but, is it possible to log have "session less" logins? Yes. In fact, this is the default for Zope "out of the box". Zope's default user folder uses HTTP basic authenticatio

Re: [Zope] Determining user from session object - who is logged in?

2005-10-13 Thread Gaute Amundsen
That cleared things up nicely. I will dig into ExuserFolder (which is our standard) a bit more before i decide. Thanks :) Gaute On Thursday 13 October 2005 10:25, Chris McDonough wrote: > On Thu, 2005-10-13 at 00:26 +0200, Gaute Amundsen wrote: > > Well, I know that ther might easily be "login

Re: [Zope] Error Type: ExpatError

2005-10-13 Thread Garito
Fred Drake escribió: On 10/12/05, Garito <[EMAIL PROTECTED]> wrote: What do you need? In this bit of code: Module Products.Yanged.SitioYanged, line 268, in ObtenerNodo 266 | 267 | if 'NodoRaiz' not in args: 268>| args['NodoRaiz'] = parseString(self.Dame({'

Re: [Zope] MailTemplate attachment problem..

2005-10-13 Thread Chris Withers
Yes, okay, you said it once, keep saying again and it just pisses people off. I know, I'm good at that ;-) Nicolas Georgakopoulos wrote: Trying to send an attachment I get another error: Error Type: Unauthorized Error Value: You are not allowed to access 'add_file' in this context This, whic

Re: [Zope] help with MailTemplates 1.0.0

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I make it work , the fist time I try to use it I had copied my Mailhost object from another folder and it wasn't working. I delete it and create another one with a different name. When I go to the MailTemplate object to chooses my new MailHost it was already select

Re: [Zope] Zope Debugger lets WingDbg fail to connect toclient

2005-10-13 Thread Chris Withers
Hi John, Wingware Support wrote: Right now, Wing only supports file system based code. Really? Why? For code in the database, I'd think you would want to set co_filename to some sort of url. You could always look at the product I mailed you about, it's not exactly big ;-) Somehow t

[Zope] Show ISO-8859-7 Results in a site using UTF-8

2005-10-13 Thread Thomas G. Apostolou
Hello all, i am using Zope 2.7.0 and i get some results from SQL Server 2000 with a python module's fanction witch i call from with in a DTML Method. The data is comming encoded in ISO-8859-7 (probably due to database setup). I changed the setting of the default encoding from ZMI to ISO-8859-7 fo

Re: [Zope] Show ISO-8859-7 Results in a site using UTF-8

2005-10-13 Thread Andreas Jung
--On 13. Oktober 2005 13:20:07 +0300 "Thomas G. Apostolou" <[EMAIL PROTECTED]> wrote: Hello all, i am using Zope 2.7.0 and i get some results from SQL Server 2000 with a python module's fanction witch i call from with in a DTML Method. 2.7.0 is old. Upgrade! The data is comming encoded

Re: AW: [Zope] Zope Debugger lets WingDbg fail to connect toclient

2005-10-13 Thread Chris Withers
Frey, Peter wrote: this statement is true, in theory, but sometimes one hits problems that cannot be solved without help of a debugger. There may be two circumstances where on NEEDs a debugger in the production environment Hmmm, not convinced ;-) a) when the problem is that urgent that ther

[Zope] REQUEST not accessible

2005-10-13 Thread Jürgen Herrmann
hi all! i have several products using PageTemplateFiles a lot. up to some time in them i could just write: tal:define="results python:here.Catalog.searchResults()" it seems this isn't working anymore, the catalog would return all brains instead of seraching the relevant ones... (completely ignor

Re: [Zope] REQUEST not accessible

2005-10-13 Thread Jens Vagelpohl
On 13 Oct 2005, at 11:39, Jürgen Herrmann wrote: up to some time in them i could just write: tal:define="results python:here.Catalog.searchResults()" it seems this isn't working anymore, the catalog would return all brains instead of seraching the relevant ones... (completely ignoreing everythi

Re: [Zope] help with MailTemplates 1.0.0

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: And to send the attachment I get another error: Error Type: Unauthorized Error Value: You are not allowed to access 'add_file' in this context The user executing the python script that calls add_file needs to have the 'Use mailhost services' permission, did they? Shane

Re: [Zope] REQUEST not accessible

2005-10-13 Thread Jürgen Herrmann
[ Jens Vagelpohl wrote:] > > On 13 Oct 2005, at 11:39, Jürgen Herrmann wrote: >> up to some time in them i could just write: >> tal:define="results python:here.Catalog.searchResults()" >> >> it seems this isn't working anymore, the catalog would return >> all brains instead of seraching the releva

[Zope] Zope 2.8.2 released

2005-10-13 Thread Andreas Jung
Hi all, on behalf of Zope Corporation and the Zope community I am pleased to announce the release of Zope 2.8.2. You can download Zope 2.8.2 from http://www.zope.org/Products/Zope/2.8.2/ Some new features of Zope 2.8: - ZODB 3.4 with MVCC (multi version concurrency control) support

[Zope] Zope 2.7.8 released

2005-10-13 Thread Andreas Jung
Dear Zope Community, on behalf of Zope Corporation and all Zope 2 developers and contributors I am pleased to announce the release of Zope 2.7.8 final. Zope 2.7.8 can be downloaded from http://www.zope.org/Products/Zope/2.7.8 The release notes can be found at http://www.zope.org/Product

Re: [Zope] REQUEST not accessible

2005-10-13 Thread Jens Vagelpohl
On 13 Oct 2005, at 11:56, Jürgen Herrmann wrote: Apart from whether this worked previosuly or not, it is bad coding practice to rely on assumptions such as "it will somehow acquire the REQUEST". You should really change your code to explicity pass in REQUEST everywhere. Then you can stop worryin

Re: [Zope] REQUEST not accessible

2005-10-13 Thread Jürgen Herrmann
[ Jens Vagelpohl wrote:] > > On 13 Oct 2005, at 11:56, Jürgen Herrmann wrote: >>> Apart from whether this worked previosuly or not, it is bad coding >>> practice to rely on assumptions such as "it will somehow acquire the >>> REQUEST". You should really change your code to explicity pass in >>> RE

Re: [Zope] REQUEST not accessible

2005-10-13 Thread Jens Vagelpohl
On 13 Oct 2005, at 13:38, Jürgen Herrmann wrote: what i'm worried about is wether i did break anything else, possibly with even worse results... (i don't like hidden bugs) By explicitly passing REQUEST? I doubt it. No i meant that i already broke something that did work before: obviously so

Re: [Zope] Error Type: ExpatError

2005-10-13 Thread Fred Drake
On 10/13/05, Garito <[EMAIL PROTECTED]> wrote: > self.Dame({'nombre': self.getId() + '.mm'}) > > Dame is a function that returns a ZCatalog query where nombre is an index ... > This File object returns the text of the last attachment I send you some > mails ago The index_html() method returns the

[Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMEText I get a error: *Error Type: ImportError* *Error Value: import of "SMTP" from "smtplib" is unauthorized. You are not allowed to access 'SMTP' in this context * Why I can't acc

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread David Convent
Python scripts are run in a restricted environment, move your code to either an external method or a python zope product built on the filesystem Nicolas Georgakopoulos wrote: Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMETex

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMEText I get a error: *Error Type: ImportError* *Error Value: import of "SMTP" from "smtplib" is unauthorized. You are not allowed to access 'SMTP' in

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMEText I get a error: *Error Type: ImportError* *Error Value: import of "SMTP" from "smtplib" is unauthorized. You are not allo

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
David Convent wrote: Python scripts are run in a restricted environment, move your code to either an external method or a python zope product built on the filesystem How can I move the code to another python zope product ? ___ Zope maillist - Zope

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you using? Chris -- Simplistix -

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you using

[Zope] constructor product in Zope 2.8.1

2005-10-13 Thread Henny van der Linde
Hi, I have the following constructor for an external product I build. def manage_addEba(dispatcher, id='eba', title='Title here',REQUEST=None): "Add a Basis element to a folder." nEba=eba(id,title) dispatcher.Destination()._setObject(id, nEba) if REQUEST is not None: dispatche

Re: [Zope] Error Type: ExpatError

2005-10-13 Thread Garito
Fred Drake escribió: On 10/13/05, Garito <[EMAIL PROTECTED]> wrote: self.Dame({'nombre': self.getId() + '.mm'}) Dame is a function that returns a ZCatalog query where nombre is an index ... This File object returns the text of the last attachment I send you some mails ago T

Re: [Zope] Zope 2.8.2 released

2005-10-13 Thread Paul Winkler
Hooray, new stable releases are always a happy day :) Thank you Andreas! Sadly, I have to report some SNAFUs on zope.org, so I am cc'ing the zope-web list: On the "Download Zope" page, the latest stable version is still listed as 2.8.1. http://www.zope.org/Products/ Also from the main download

Re: [Zope] constructor product in Zope 2.8.1

2005-10-13 Thread Peter Bengtsson
Can you show us your __init__ stuff? 2005/10/13, Henny van der Linde <[EMAIL PROTECTED]>: > Hi, > > I have the following constructor for an external product I build. > > def manage_addEba(dispatcher, id='eba', title='Title here',REQUEST=None): > "Add a Basis element to a folder." > nEba=eb

[Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread Dennis Allison
We have been running on Zope 2.7.6 with a few patches. I am now planning to migrate to Zope 2.7.8 but am pondering the move to Zope 2.8. We are in a production situation and cannot accept any downtime, so I am very concerned about stability and compatibility. Can the list provide words of ad

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread Jake
I am not the list, but I would go with 2.7.8. 2.8 will need more work from your side in the catalogs. Jake -- http://www.ZopeZone.com Dennis Allison said: > > We have been running on Zope 2.7.6 with a few patches. I am now planning > to migrate to Zope 2.7.8 but am pondering the move to Zope

[Zope] Re: Zope 2.8.2 released

2005-10-13 Thread Paul Winkler
Tres Seaver said: > Paul Winkler wrote: (snip) >> Also, looking over the release notes, I see that there is one bugfix >> that made it into the 2.8 branch and the trunk, thanks to Andreas - >> the #1895 fix to test.py. >> But the fix does not seem to have been noted in CHANGES.txt on the 2.8 >> br

[Zope] Problem with strftime.

2005-10-13 Thread Jason C. Leach
Hi: If I use this line in a Python script: print row['end_date'], row['end_date'].strftime('%d') I get: 2005/10/13 12 You can see the day is out by one. Should be 13, but is gets converted as 12. So I'm curious what's up with that? Zope Version (Zope 2.8.1-final, python 2.4.0, f

[Zope] External Methods

2005-10-13 Thread DS
Hi, I am just learning Zope, and I wanted to try external methods. I first tried a symlink in the Extension directory, but zope reported it couldn't find it. I then copied the file into the Extension directory and was successful at that. I assume that happened that way perhaps for my own protect

Re: [Zope] External Methods

2005-10-13 Thread Peter Bengtsson
2005/10/13, DS <[EMAIL PROTECTED]>: > Hi, I am just learning Zope, and I wanted to try external methods. I > first tried a symlink in the Extension directory, but zope reported it > couldn't find it. I then copied the file into the Extension directory > and was successful at that. I assume that

Re: [Zope] constructor product in Zope 2.8.1

2005-10-13 Thread Henny van der Linde (zettai)
- Original Message - From: "Peter Bengtsson" <[EMAIL PROTECTED]> To: "Henny van der Linde" <[EMAIL PROTECTED]> Cc: Sent: Thursday, October 13, 2005 7:33 PM Subject: Re: [Zope] constructor product in Zope 2.8.1 Can you show us your __init__ stuff? Yes Here it is: from eba import eb

Re: [Zope] constructor product in Zope 2.8.1

2005-10-13 Thread Peter Bengtsson
> > Can you show us your __init__ stuff? > > Yes > > Here it is: > > from eba import eba > > > def initialize(context): > context.registerClass( > eba, > constructors = ( > eba.manage_addEbaForm, > eba.manage_addEba > ), > icon="www/eba.gif" > There's your problem! Is "eba" a folder or a file (ie.

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread J Cameron Cooper
Dennis Allison wrote: We have been running on Zope 2.7.6 with a few patches. I am now planning to migrate to Zope 2.7.8 but am pondering the move to Zope 2.8. We are in a production situation and cannot accept any downtime, so I am very concerned about stability and compatibility. Can the l

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread Paul Winkler
Dennis, if you're still using ZSyncer, I don't think it works with 2.8 yet. I'll be finally trying to fix that in a minute... -PW On 10/13/05, J Cameron Cooper <[EMAIL PROTECTED]> wrote: > Dennis Allison wrote: > > We have been running on Zope 2.7.6 with a few patches. I am now planning > > to m

[Zope] ANN: ZSyncer 0.7-beta1

2005-10-13 Thread Paul Winkler
Hi folks, Anybody who's been wanting to get ZSyncer working on Zope 2.8, please check out the new 0.7-beta1 on sourceforge: http://sourceforge.net/project/showfiles.php?group_id=28073&package_id=20913&release_id=363376 This is a beta release! I'm hoping for feedback from anybody who is using any

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread Bakhtiar A Hamid
On 10/14/05, Dennis Allison <[EMAIL PROTECTED]> wrote: We have been running on Zope 2.7.6 with a few patches.  I am now planningto migrate to Zope 2.7.8 but am pondering the move to Zope 2.8.  We are ina production situation and cannot accept any downtime, so I am very concerned about stability and

Re: [Zope] Problem with strftime.

2005-10-13 Thread Andreas Jung
--On 13. Oktober 2005 14:46:26 -0700 "Jason C. Leach" <[EMAIL PROTECTED]> wrote: Hi: If I use this line in a Python script: print row['end_date'], row['end_date'].strftime('%d') I get: 2005/10/13 12 You can see the day is out by one. Should be 13, but is gets converted as 12. So I'm

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread Andreas Jung
--On 14. Oktober 2005 12:43:53 +0800 Bakhtiar A Hamid <[EMAIL PROTECTED]> wrote: On 10/14/05, Dennis Allison <[EMAIL PROTECTED]> wrote: We have been running on Zope 2.7.6 with a few patches. I am now planning to migrate to Zope 2.7.8 but am pondering the move to Zope 2.8. We are in a prod