[Zope-dev] ZMailIn patch (index 'date' as DateTime object)

2001-11-09 Thread Jean Jordaan
Hi Andy all There I was, trying to select last week's mail messages from the ZMailInCatalog, when I realized that the 'date' index was a simple string. Here's a patch, adding a property 'datetime', which can be used as an index of type DateTime. Anything I'm missing here? In particular,

[Zope-dev] unrestrictedTraverse unable to access the root object

2001-11-09 Thread Johan Carlsson [Torped]
Hi all, The collector seems to still be offline? I just realized that the unrestrictedTraverse returns self for the empty-string url: '' I did expect it to return the root object because the empty-string is equal to the path tuple ('',). Is there any reason for the current behaviour? Does

RE: [Zope-dev] ZMailIn patch (index 'date' as DateTime object)

2001-11-09 Thread Jean Jordaan
Hi Steve Jean Jordaan wrote: But it's still a string, and can't be used in comparisons with DateTimes. Why not just use 'datetime', also sortable? DateTime objects are huge. Hmm, OK, I'll keep that in mind .. For sorting my mails, though, I'll stick with the DateTimes. It would be

[Zope-dev] Zope and python namespaces

2001-11-09 Thread Roch'e Compaan
I wrote an external method that uses Graphite, Sping and PIL to generate charts, but I ran into some namespace problems. Execution of the external method fails because there is a clash in the namespace between PIL and Zope. PIL has a module ImageFile and Zope does as well. Even if I insert

[Zope-dev] Transaction environment in threaded zope-product

2001-11-09 Thread Christian Theune
Hi. I have a zope product, that uses threads, to control programs running outside zope and doing some async stuff. What I found is, that i can't do changes from the self-started thread (ChrisW: that's the problem... ;) ). But how do I get into a transaction do be able to change things on

Re: [Zope-dev] Transaction environment in threaded zope-product

2001-11-09 Thread Chris Withers
Christian Theune wrote: I have a zope product, that uses threads, to control programs running outside zope and doing some async stuff. You do realise that's pointing a loaded gun at your own head? get_transaction().begin() doesn't work, and I don't find any documentation to get started

Re: [Zope-dev] Debugging help wanted for really weird ZClass problem

2001-11-09 Thread Matt Behrens
Got the traceback again today. Here it is: Traceback (innermost last): File /export/home/b14741/Zope_Dev/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /export/home/b14741/Zope_Dev/lib/python/ZPublisher/Publish.py, line 187, in publish File

[Zope-dev] pdf - Files not viewable

2001-11-09 Thread Tim McLaughlin
This used to work, and I'm vexed as to why it doesn't now. When PDFs are uploaded as file objects and then viewed, on IE 5.0+ with Acrobat Reader, they appear as blank when Acrobat Reader pops up to read them. I get no errors on the stupid log, and generally haven't any idea what the deal is

Re: [Zope-dev] Transaction environment in threaded zope-product

2001-11-09 Thread Dieter Maurer
Christian Theune writes: I have a zope product, that uses threads, to control programs running outside zope and doing some async stuff. What I found is, that i can't do changes from the self-started thread (ChrisW: that's the problem... ;) ). But how do I get into a transaction do

Re: [Zope-dev] Zope and python namespaces

2001-11-09 Thread Dieter Maurer
Roch'e Compaan writes: I wrote an external method that uses Graphite, Sping and PIL to generate charts, but I ran into some namespace problems. Execution of the external method fails because there is a clash in the namespace between PIL and Zope. PIL has a module ImageFile and Zope does

Re: [Zope-dev] Catalog Problem

2001-11-09 Thread Chris Withers
Try re-indexing all your catalogued content... Chris Eric Brun wrote: I update my Zope 2.3.x to 2.4.2 and I have some probleme with my ZCatalog here the traceback : -- 2001-11-09T18:00:34 ERROR(200) UnKeywordIndex Attempt to unindex nonexistent document id -254566349 Traceback