[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: strongError Type: Unauthorized/strongbr/ strongError Value: You are not allowed to access 'add_file' in this context/strongbr/ and the traceback: Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module

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 authentication,

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'] =

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: strongError Type: Unauthorized/strongbr/ strongError Value: You are not allowed to access 'add_file' in

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

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

[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

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 in

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

[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

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

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: strongError Type: Unauthorized/strongbr/ strongError Value: You are not allowed to access 'add_file' in this context/strongbr/ The user executing the python script that calls add_file needs to have the 'Use mailhost

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 relevant ones...

[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)

[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

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

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 REQUEST

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

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 access

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

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 allowed

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 -

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

[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:

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

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.

[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

[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,

[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

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: zope@zope.org 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

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. eba.py) If it's a

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

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 migrate

[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=28073package_id=20913release_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

[Zope-Annce] ZODB 3.2.10 final released

2005-10-13 Thread Tim Peters
I'm pleased to announce the release of ZODB 3.2.10 final. This corresponds to the ZODB in Zope 2.7.8 final. You can download a source tarball or Windows installer from: http://zope.org/Products/ZODB3.2 Note that there are two Windows installers, for Python 2.3 (2.3.5 is recommended) and

[Zope-Checkins] CVS: Zope/inst/WinBuilders/mk - zope.mk:1.1.2.5

2005-10-13 Thread Andreas Jung
Update of /cvs-repository/Zope/inst/WinBuilders/mk In directory cvs.zope.org:/tmp/cvs-serv16234/inst/WinBuilders/mk Modified Files: Tag: Zope-2_7-branch zope.mk Log Message: heading for 2.7.8 === Zope/inst/WinBuilders/mk/zope.mk 1.1.2.4 = 1.1.2.5 === ---

[Zope-Checkins] CVS: Zope/doc - CHANGES.txt:1.625.2.364

2005-10-13 Thread Andreas Jung
Update of /cvs-repository/Zope/doc In directory cvs.zope.org:/tmp/cvs-serv16234/doc Modified Files: Tag: Zope-2_7-branch CHANGES.txt Log Message: heading for 2.7.8 === Zope/doc/CHANGES.txt 1.625.2.363 = 1.625.2.364 === --- Zope/doc/CHANGES.txt:1.625.2.363Wed Oct 12 17:27:06

[Zope-Checkins] CVS: Zope/inst - versions.py:1.4.2.26

2005-10-13 Thread Andreas Jung
Update of /cvs-repository/Zope/inst In directory cvs.zope.org:/tmp/cvs-serv16234/inst Modified Files: Tag: Zope-2_7-branch versions.py Log Message: heading for 2.7.8 === Zope/inst/versions.py 1.4.2.25 = 1.4.2.26 === --- Zope/inst/versions.py:1.4.2.25 Sun Jul 10 05:22:03 2005

[Zope-Checkins] SVN: Zope/trunk/lib/python/App/ProductContext.py - minor code modernization (to make reading the code easier)

2005-10-13 Thread Yvo Schubbe
Log message for revision 39112: - minor code modernization (to make reading the code easier) Changed: UU Zope/trunk/lib/python/App/ProductContext.py -=- Modified: Zope/trunk/lib/python/App/ProductContext.py === ---

[Zope-Checkins] SVN: Zope/tags/Zope-2-8-2/ Zope 2.8.2

2005-10-13 Thread Andreas Jung
Log message for revision 39114: Zope 2.8.2 Changed: A Zope/tags/Zope-2-8-2/ -=- Copied: Zope/tags/Zope-2-8-2 (from rev 39113, Zope/branches/Zope-2_8-branch) ___ Zope-Checkins maillist - Zope-Checkins@zope.org

[Zope-Checkins] SVN: Zope/trunk/ - Forward port fix from 2.8 branch

2005-10-13 Thread Sidnei da Silva
Log message for revision 39116: - Forward port fix from 2.8 branch - OFS.Image.manage_FTPget() would str() it's .data attribute, potentially loading the whole file in memory as a string. Changed to use RESPONSE.write() iterating through the Pdata

[Zope-Coders] Zope tests: 8 OK

2005-10-13 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Wed Oct 12 11:01:01 2005 UTC to Thu Oct 13 11:01:01 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Wed Oct 12 22:20:35 EDT

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-13 Thread Chris Withers
Andreas Jung wrote: Yes, it would be handy. But one could also install the stuff as standalone product for people that really need it. I am really against this proposal - maintaining yet another nice2have package is a burden just for the sake of make the lifes of some people easier. Other