Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-16 Thread Chris Withers
Dieter Maurer wrote: I had a similar experience but solved it by modifying zLOG.EventLogger.log in the following way: # DM 2005-06-27: Zope style tracebacks from zExceptions.ExceptionFormatter import format_exception # DM 2005-06-27: we now use Zope's traceback format because

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-16 Thread Chris Withers
Lennart Regebro wrote: This bugged me, so I had a dig, and just discovered this cool monkey patch, to be inserted in any module that gets imported before an exception is raised: So, could this be in the unit test module itself, for example? Well, like I said, I'm gonna roll up a load of

Re: [Zope] servlet filter like behaviour

2005-07-16 Thread Chris Withers
Laurian Gridinoc wrote: How it is possible to wrap the response of a subtree? For example, for the path /foo/bar/baz, a script located at /foo/wrapper would catch the output of the rest of the request path (./bar/baz) and do a transformation upon it (gzip, xslt, etc). Well, if you make 'foo'

Re: [Zope] XUF and Postgres

2005-07-16 Thread David Pratt
Hi Garth. Yes, it is very compact compared to XUF for sure. Thank you for this feedback. I will be evaluating this option as well. There are differences in licensing that may be a factor in what I decide to use after some evaluation. BSD with XUF compared to MIT with SimpleUserFolder. I

[Zope] Change user (pythonic)

2005-07-16 Thread Jan-Ole Esleben
Hi! I can't seem to figure out from the documentation or through web research how it is possible to change the currently logged in user pythonically (e.g. in an fs product or extension method). Can anybody give me a hint? TIA, Ole ___ Zope maillist -

Re: [Zope] Change user (pythonic)

2005-07-16 Thread Andreas Jung
--On 16. Juli 2005 19:54:52 +0200 Jan-Ole Esleben [EMAIL PROTECTED] wrote: Hi! I can't seem to figure out from the documentation or through web research how it is possible to change the currently logged in user pythonically (e.g. in an fs product or extension method). Can anybody give me a

Re: [Zope] Cool monkey patch to make tracebacks more useful :-)

2005-07-16 Thread Dieter Maurer
Chris Withers wrote at 2005-7-15 20:33 +0100: ... That just leaves the traceback printed by pdb, anyone reckon they can get that to use the sensible formatter? ;-) Do you get a traceback by pdb? I only get information of the form *** TypeError: exceptions.TypeError instance at 0x405e0cac

Re: [Zope] emergency user account does not work

2005-07-16 Thread Dieter Maurer
Tim Suter wrote at 2005-7-15 15:55 -0500: After logging out of the ZMI, I have tried to log in as the emergency user by filling in the proper credentials. The page never loads. Could there be a tick I am not aware of any such trick. Usually, it simply works -- Dieter

[Zope] Creating Photo object from an Image object

2005-07-16 Thread Thomas Adams
Hi, I have a problem with the Photo product. I want to create a Photo object from an existing Image object. I have a form with id and title input tags which are initialized with appropriate values from a special folder where the Image objects resides . Now I have written a PythonSript to

[Zope] numeric formatting

2005-07-16 Thread David H
Hi List, I will have to format numbers based on country and currency types. I understand the locale module can do this. I've done some googling on this but cant seem to get anything definitive. I've read that the local module is not thread-safe but I do not know how this would impact my

[Zope] Folder property with dtml

2005-07-16 Thread David Pratt
I want to test for a value of a folder property to conditionally include css in a css.dtml instead of putting a condition on the whole css file in zpt or adding additional css to unstyle and restyle in some classes in same skin. Something like this... dtml-if 'here.my_property == some_value'

[Zope-Coders] Zope tests: 8 OK

2005-07-16 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Fri Jul 15 11:01:02 2005 UTC to Sat Jul 16 11:01:02 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: Fri Jul 15 23:26:06 EDT

Re: [Zope-Coders] Upcoming 2.8.1 release

2005-07-16 Thread Tim Peters
[Andreas Jung] Just the usual reminder from the release management :-) Zope 2.8.1 b1 will be released next Wednesday Is this correct? Please confirm. http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan still says 2.8.1 b1: 2005/7/27 2.8.1 final: 2005/08/10 and

Re: [Zope-Coders] Upcoming 2.8.1 release

2005-07-16 Thread Andreas Jung
--On 16. Juli 2005 14:57:01 -0400 Tim Peters [EMAIL PROTECTED] wrote: [Andreas Jung] Just the usual reminder from the release management :-) Zope 2.8.1 b1 will be released next Wednesday Is this correct? Please confirm. http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan

[Zope-dev] Upcoming 2.8.1 release

2005-07-16 Thread Andreas Jung
Just the usual reminder from the release management :-) Zope 2.8.1 b1 will be released next Wednesday and 2.8.1 final two weeks later. Please commit any pending fixes for 2.8.1 before the beta 1 release and not between beta and final release. Thanks, Andreas pgpRkuCGSACG7.pgp Description:

[Zope-dev] Re: [Zope-Coders] Upcoming 2.8.1 release

2005-07-16 Thread Tim Peters
[Andreas Jung] Just the usual reminder from the release management :-) Zope 2.8.1 b1 will be released next Wednesday Is this correct? Please confirm. http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan still says 2.8.1 b1: 2005/7/27 2.8.1 final: 2005/08/10 and

[Zope-dev] Re: [Zope-Coders] Upcoming 2.8.1 release

2005-07-16 Thread Andreas Jung
--On 16. Juli 2005 14:57:01 -0400 Tim Peters [EMAIL PROTECTED] wrote: [Andreas Jung] Just the usual reminder from the release management :-) Zope 2.8.1 b1 will be released next Wednesday Is this correct? Please confirm. http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan