[Zope-Coders] Zope tests: 8 OK

2005-07-25 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Sun Jul 24 11:01:02 2005 UTC to Mon Jul 25 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: Sun Jul 24 23:24:24 EDT

[Zope-dev] Re: Event Timer Service for Zope 2.8

2005-07-25 Thread Dylan Jay
So to summarise: - ClockServer is a good idea to put in the core but needs to made python only. - Schedular from cvs is probably the best one to use but not neccerily in the core. Does the schedular work with ClockServer by puting the notify path in zope.conf or will the schedular need to

Re: [Zope-dev] Re: Event Timer Service for Zope 2.8

2005-07-25 Thread Chris McDonough
On Tue, 2005-07-26 at 09:44 +1000, Dylan Jay wrote: So to summarise: - ClockServer is a good idea to put in the core but needs to made python only. Yes, at least for inclusion into Zope. - Schedular from cvs is probably the best one to use but not neccerily in the core. Not sure about

Re: [Zope] Re: ZTUtils.Iterator value in ZPT

2005-07-25 Thread Tino Wildenhain
Am Sonntag, den 24.07.2005, 19:50 -0300 schrieb David Pratt: Hi Chris. I believe the purpose of ZTUtils are utility functions for page templating. That said, the Iterator class could be more useful by exposing its values based on its state - the point I had made. Versatility is the

Re: [Zope] Re: Getting a methods parent (in a product)

2005-07-25 Thread Chris Withers
Tres Seaver wrote: The actual issue is that attribute access will break if you have an unwrapped object; 'aq_parent(foo)' will return 'None' in that case. AttributeError: aq_parent AttributeEror: None has no attribute myattribute Take your pick I guess ;-) *grinz* Chris -- Simplistix -

Re: [Zope] Token 'ATOM' required, 'and' found

2005-07-25 Thread Chris Withers
Peter Bengtsson wrote: But, is there a more robust solution to this? The correct thing to do here is to write your own query parser, but that's a lot of hard work. I just catch the two exceptions that the QueryParser can throw and return an empty result set. cheers, Chris -- Simplistix

[Zope] How to display unicode character given its code

2005-07-25 Thread Itai Tavor
Hi, This is a bit OT but this list is the best place I know to ask it :) I have a form which uses UTF-8, the text entered in the form then has to be converted to iso-2022-jp. If any character is entered that isn't valid for iso-2022-jp I get: UnicodeError: ISO-2022-JP encoding error:

[Zope] Re: Token 'ATOM' required, 'and' found

2005-07-25 Thread Peter Bengtsson
Ok. Sounds like a plan. What I need to do if it happens is to escape all the operator words like and or not. Any idea how I can do that? On 7/25/05, Chris Withers [EMAIL PROTECTED] wrote: Peter Bengtsson wrote: But, is there a more robust solution to this? The correct thing to do here is

Re: [Zope] Re: Token 'ATOM' required, 'and' found

2005-07-25 Thread Jonathan
- Original Message - From: Peter Bengtsson [EMAIL PROTECTED] To: Chris Withers [EMAIL PROTECTED] Cc: zope@zope.org Sent: Monday, July 25, 2005 7:06 AM Subject: [Zope] Re: Token 'ATOM' required, 'and' found Ok. Sounds like a plan. What I need to do if it happens is to escape all the

[Zope] Re: Token 'ATOM' required, 'and' found

2005-07-25 Thread Peter Bengtsson
Ok. Sounds like a plan. What I need to do if it happens is to escape all the operator words like and or not. Any idea how I can do that? Not a zope solution (or issue), but how about using regex in python code? Finding the words I'm not worried about. What I don't know is _how_ to

Re: [Zope] Re: Token 'ATOM' required, 'and' found

2005-07-25 Thread Chris Withers
Peter Bengtsson wrote: Don't get hung up on that. What I'm after is the technique I can use upon the QueryParser for ignoring these operator words. RTSL ;-) QueryParser.py has a massive doc string at the top of it ;-) Chris -- Simplistix - Content Management, Zope Python Consulting

[Zope] Zip upload in Photo-1.3.0 doesn't work

2005-07-25 Thread Martin Koekenberg
Hello, Does anybody use the zip upload in the latest Photo product (1.3.0) ? There is a ftp bug in that release but is has a zip upload feature (that also doesnt work with me). I use Zope 2.7.7 on a Red Hat fedora core 4. Thanks for the help. Martin Koekenberg

[Zope] Exception in Zope 2.8.0

2005-07-25 Thread Pascal Peregrina
Hi, Just got this exception at startup : File /lmn/build/Frontier/20050618/opt/Zope-2.8.0-final/lib/python/ZODB/FileStora ge/FileStorage.py, line 1733, in read_index if prev: NameError: global name 'prev' is not defined My Data.fs may be corrupted, but this is not the point : looking at

[Zope] Re: Exception in Zope 2.8.0

2005-07-25 Thread Peter Bengtsson
Then file a bug report on the collector. If you can, include steps on how to reproduce it. NameErrors just shouldn't happen in a tested code. On 7/25/05, Pascal Peregrina [EMAIL PROTECTED] wrote: Hi, Just got this exception at startup : File

Re: [Zope] Traceback Lines for Send Mail Error

2005-07-25 Thread Asad Habib
Well, nothing has changed in the mail server setup so I don't know why this error is being thrown. Where can I access smtplib (I cannot locate this Python library in my Zope hierarchy)? Someone else also reported receiving this error as I discovered on Google but the issue was not resolved. Any

[Zope] RE: Exception in Zope 2.8.0

2005-07-25 Thread Pascal Peregrina
Done (issue #1849) -Original Message- From: Peter Bengtsson [mailto:[EMAIL PROTECTED] Sent: 25 July 2005 13:51 To: Pascal Peregrina Cc: zope@zope.org Subject: Re: Exception in Zope 2.8.0 Then file a bug report on the collector. If you can, include steps on how to reproduce it.

[Zope] working with urls

2005-07-25 Thread Nicholas Wieland
First of all thanks everyone for the help, I've resolved my problems one after the other thanks to the suggestions I've found here. Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine. What I'd like is having an url like:

Re: [Zope] working with urls

2005-07-25 Thread Jonathan
Why don't you identify the variable data portion of the urls you are building as standard http-type arguments: eg. http://www.myweb.com/amethod?var1=val1var2=val2... This way var1, var2 etc will be accessible to your method as entries in REQUEST. Jonathan - Original Message -

Re: [Zope] working with urls

2005-07-25 Thread Nicholas Wieland
Because it's a bit ugly - my url will grow a lot, because I have to include the variable name. It's also really simple to make the product generate a PDF if the user know the ref_date and code, without playing with variable names. Obviously if it's not possible I will generate a normal

Re: [Zope] Traceback Lines for Send Mail Error

2005-07-25 Thread Asad Habib
Maurer, I am certain that this is a Zope issue that has not been figured out as yet. I was even able to connect to my SMTP server via the Terminal application on a Mac. Do I have any other options? - Asad ___ Zope maillist - Zope@zope.org

Re: [Zope] Exception in Zope 2.8.0

2005-07-25 Thread Florent Guillaume
Pascal Peregrina [EMAIL PROTECTED] wrote: Just got this exception at startup : File /lmn/build/Frontier/20050618/opt/Zope-2.8.0-final/lib/python/ZODB/FileStora ge/FileStorage.py, line 1733, in read_index if prev: NameError: global name 'prev' is not defined My Data.fs may be

Re: [Zope] Traceback Lines for Send Mail Error

2005-07-25 Thread Florent Guillaume
Asad Habib [EMAIL PROTECTED] wrote: Maurer, I am certain that this is a Zope issue that has not been figured out as yet. I was even able to connect to my SMTP server via the Terminal application on a Mac. Do I have any other options? You should do a network trace to see what makes the SMTP

[Zope] Zope API Help System not working?

2005-07-25 Thread Edmund Moseley
I am a newbie to Zope/Plone. I am trying to view the Zope API via the Help System in the ZMI, but I get prompted to login and my admin login does not work. I'm pretty sure I downloaded the latest version of plone which I was led to believe would have the latest version of zope python: Zope

Re: [Zope] Running more than one instance on windows often block each other

2005-07-25 Thread Tim Peters
[Sune B. Woeller] ... I can see (with the excellent (and free) 'Process Explorer' from sysinternals) that the python processes always opens port 1, and connects by that port to themselves on another port (for instance 2550). [Dieter Maurer] You can find the relevant code in

Re: [Zope] Re: ZTUtils.Iterator value in ZPT

2005-07-25 Thread David Pratt
New methods on the iterator would do the trick. I had suggested currval and nextval or similar - two or three simple methods would increase the versatility of the Iterator class for a variety of things. Is there interest in adding new methods to ZTUtils to expose these values? It seems to

Re: [Zope] Traceback Lines for Send Mail Error

2005-07-25 Thread Florent Guillaume
Please stay on the list. I meant a real tcp trace, like ethereal. On 25 Jul 2005, at 16:22, Asad Habib wrote: Hello. I used traceroute and it did not return any errors. - Asad On Mon, 25 Jul 2005, Florent Guillaume wrote: Asad Habib [EMAIL PROTECTED] wrote: Maurer, I am certain that

Re: [Zope] Added Product Doesn't Show Up In ZMI

2005-07-25 Thread abgillette
I'm trying to get the Issue Dealer (http://www.nidelven-it.no/products/issue_dealer) product up-and-running on my Zope install (FreeBSD 4.11, Zope 2.7.1, Python 2.3.4). According to the Issue Dealer docs, I should simply be able to unzip it into the Products directory, restart Zope, and

[Zope] Re: working with urls

2005-07-25 Thread Philipp von Weitershausen
Nicholas Wieland wrote: First of all thanks everyone for the help, I've resolved my problems one after the other thanks to the suggestions I've found here. Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine. What I'd like is having an url

Re: [Zope] Added Product Doesn't Show Up In ZMI

2005-07-25 Thread Jonathan
- Original Message - From: [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED]; zope@zope.org Sent: Monday, July 25, 2005 12:03 PM Subject: Re: [Zope] Added Product Doesn't Show Up In ZMI I'm trying to get the Issue Dealer (http://www.nidelven-it.no/products/issue_dealer) product

Re: [Zope] Added Product Doesn't Show Up In ZMI

2005-07-25 Thread Jo Meder
Am 25.07.2005, 18:03 Uhr schrob [EMAIL PROTECTED] [EMAIL PROTECTED]: Each of these directories has its own '__init__.py'. Do these directories and the files in there have the correct permissions set so that the user Zope runs as can access the files? HTH Jo. --

Re: [Zope] Plone: storage, catologing and versioning

2005-07-25 Thread Rogério Atem de Carvalho
I have a few questions about Plone (in some extent CMF/Zope): 1)How to manipulate versioning in Plone? (like CPS does) I know there is PLIP8, but it is still a proposal, isn't it? have a look at CMFEditions on svn.plone.org/collective . it is also published on plone.org site we have

[Zope] Re: working with urls

2005-07-25 Thread Peter Bengtsson
Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine. What I'd like is having an url like: myproduct/generate/20050301/PG2, and actually that's exactly what I've got. This url will make my app generate a pdf report for the ref_date

re: [Zope] working with urls

2005-07-25 Thread Ken Ara
Simplest might be to point a Path Handler (http://www.zope.org/Members/NIP/PathHandler) named 'generate' at your PDF generator script. Also, a Script(Python) 'generate' containing: return traverse_subpath when called http://mysite.com/generate/foo/bar/baz returns: ['foo', 'bar', 'baz'] This

Re: [Zope] Re: Zope Foundation Update

2005-07-25 Thread Xavier Heymans
I would like to inform that ZEA is in the process to transfer the trademark to Zope Corporation. A number of actions will be taken including the preparation of the list of expenses to secure the trademark, and meetings with our trademark expert to work on the administrative details. We would like

Re: [Zope] Reg Zope service starting problem

2005-07-25 Thread Dieter Maurer
praba kar wrote at 2005-7-25 06:25 +0100: ... /Programs/Zope/2.7.0/lib/python/Products/ZCatalog/IZCatalog.py, line 236, in ? __doc__ = IZCatalog.__doc__ + __doc__ TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType' .0 releases often have problems. I recommend to switch

Re: [Zope] Zope API Help System not working?

2005-07-25 Thread Dieter Maurer
Edmund Moseley wrote at 2005-7-25 10:30 -0400: I am trying to view the Zope API via the Help System in the ZMI, but I get prompted to login and my admin login does not work. Such problems are best analysed with the VerboseSecurity product. Install it and report what it tells you. -- Dieter

Re: [Zope] working with urls

2005-07-25 Thread Dieter Maurer
Nicholas Wieland wrote at 2005-7-25 15:39 +0200: Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine. What I'd like is having an url like: myproduct/generate/20050301/PG2, and actually that's exactly what I've got. This url will make my app

Re: [Zope] Puzzling Import/Export problem

2005-07-25 Thread Dieter Maurer
Jim Washington wrote at 2005-7-23 16:09 -0400: He is attempting to copy an installation from one machine to another, and upgrade Zope to 2.6.4. Exporting the product and instances works fine, but some object instances will not import correctly. Usually, it is much safer to just copy the

Re: [Zope] How to display unicode character given its code

2005-07-25 Thread Dieter Maurer
Itai Tavor wrote at 2005-7-25 20:21 +1000: This is a bit OT but this list is the best place I know to ask it :) I have a form which uses UTF-8, the text entered in the form then has to be converted to iso-2022-jp. If any character is entered that isn't valid for iso-2022-jp I get:

Re: [Zope] Traceback Lines for Send Mail Error

2005-07-25 Thread Dieter Maurer
Asad Habib wrote at 2005-7-25 09:24 -0400: Well, nothing has changed in the mail server setup so I don't know why this error is being thrown. I have been wrong. The message does not originate from your mail server. Where can I access smtplib (I cannot locate this Python library in my Zope

Re: [Zope] Running more than one instance on windows often block each other

2005-07-25 Thread Dieter Maurer
Tim Peters wrote at 2005-7-25 10:36 -0400: Yup. ZODB has what looks like a copy/paste of this code, in ZEO/zrpc/trigger.py. I didn't realize where it came from originally until you pointed out the Medusa code here. Anyway, it so happens I rewrote ZEO's copy a few weeks ago, in ZODB 3.4. The

Re: [Zope] Traceback Lines for Send Mail Error

2005-07-25 Thread Asad Habib
Thanks Dieter. You hit the nail on the head. socket.gethostname() is not returning the full canonical name of the machine. But how do I correct this? Any idea? - Asad On Mon, 25 Jul 2005, Dieter Maurer wrote: Asad Habib wrote at 2005-7-25 09:24 -0400: Well, nothing has changed in the mail

Re: [Zope] getting atachments with python - pop3

2005-07-25 Thread J Cameron Cooper
Jonathan Salazar Santos wrote: Hi, im making a email client in python for zope, but a im stopped because i cant find the way to get the attacments with python, do you have a idea how can i do this?, i have studied the email package already but is a little confused. A Python-specific list might

Re: [Zope] Running more than one instance on windows often block each other

2005-07-25 Thread Tim Peters
[Tim Peters] Yup. ZODB has what looks like a copy/paste of this code, in ZEO/zrpc/trigger.py. I didn't realize where it came from originally until you pointed out the Medusa code here. Anyway, it so happens I rewrote ZEO's copy a few weeks ago, in ZODB 3.4. The Windows part is much

Re: [Zope] Re: Zope Foundation Update

2005-07-25 Thread Andrew Milton
+---[ Xavier Heymans ]-- | I would like to inform that ZEA is in the process to transfer the trademark to | Zope Corporation. A number of actions will be taken including the preparation | of the list of expenses to secure the trademark, and meetings with our | trademark

Re: [Zope] How to display unicode character given its code

2005-07-25 Thread Itai Tavor
On 26/07/2005, at Tue 26/07 4:12AM, Dieter Maurer wrote: Itai Tavor wrote at 2005-7-25 20:21 +1000: This is a bit OT but this list is the best place I know to ask it :) I have a form which uses UTF-8, the text entered in the form then has to be converted to iso-2022-jp. If any character is

[Zope] cpu performance zope/zeo

2005-07-25 Thread Srdan Zagorac
Hi I need a suggestion / advice regarding the CPU options for the best ZOPE and ZEO performance. eg 32 vs 64 bits architecture, single vs dual core, hyper threading. Is there any bechmarks already posted on the web?? Thanks -- - Srdan Zagorac Software