[Zope] TALES expression

2008-07-16 Thread Garito
Hi! Please consider this TALES expression: div class=DataPrevista tal:content='here/getDataInici | string: nosta' / If I try this other: div tal:content='string:${here/getDataInici}' / the result is divNone/div Then the first one will render the alternate expression isn't it? Then with it

Re: [Zope] TALES expression

2008-07-16 Thread Martijn Jacobs
Hi! Please consider this TALES expression: div class=DataPrevista tal:content='here/getDataInici | string: nosta' / If I try this other: div tal:content='string:${here/getDataInici}' / the result is divNone/div Then the first one will render the alternate expression isn't it? Then with

Re: [Zope] Redirect URL

2008-07-16 Thread Subhendu Kumar Giri
I modify the rewrite rule VirtualHost xxx.xxx.xxx.xxx ServerName mydomain.org RewriteEngine On RewriteRule ^/article/view/([0-9]*)/(.*) /archieve/$1 [R] RewriteRule ^/zoperoot(.*) http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/VirtualHostRoot/_vh_zoperoot$1 [P,L]

Re: [Zope] TALES expression

2008-07-16 Thread Garito
If this assuption is correct why the result is div class=DataPrevista /? 2008/7/16 Martijn Jacobs [EMAIL PROTECTED]: That assumption is correct I mean some TALES expression as here/getDataInici | string: nosta will evaluate here/getDataInici and if this expression returns '', 0 or None the

[Zope] MySQL reconnects on zope application level

2008-07-16 Thread Jonas
Hello, On several zope 2.10.6 instances we discovered issues with database connections to MySQL. Apparently MySQL seems to not automaticly reconnect connections with a timeout since version 5.0.3 due to issues with transactions. Until now, mysql-python was patched to restore that behaviour to

Re: [Zope] TALES expression

2008-07-16 Thread Tino Wildenhain
Garito wrote: Hi! Please consider this TALES expression: div class=DataPrevista tal:content='here/getDataInici | string: nosta' / If I try this other: div tal:content='string:${here/getDataInici}' / the result is divNone/div Then the first one will render the alternate expression isn't it?

Re: [Zope] TALES expression

2008-07-16 Thread Fred Drake
On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain [EMAIL PROTECTED] wrote: You should check the tales documentation. the pipe symbol | means a logical or, in effect if the left expression resolves to non existent, None, empty object,... (generally python False) the right part of it is

Re: [Zope] MySQL reconnects on zope application level

2008-07-16 Thread Peter Bengtsson
I don't have an easy answer but if you do dig into Andy's code and try to implement this, I would suggest you look at the ZPsycopgDA code perhaps and look for inspiration since I think that one works much better. 2008/7/16 Jonas [EMAIL PROTECTED]: Hello, On several zope 2.10.6 instances we

Re: [Zope] TALES expression

2008-07-16 Thread Tino Wildenhain
Fred Drake wrote: On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain [EMAIL PROTECTED] wrote: You should check the tales documentation. the pipe symbol | means a logical or, in effect if the left expression resolves to non existent, None, empty object,... (generally python False) the right part

[Zope] zexp import fails from linux to windows due to image file paths

2008-07-16 Thread Richard Ettema
Hi, I have an old zope based site that was hosted on a linux machine that was exported to a zexp. i am trying to import it onto a windows machine to fix up and upgrade the site. the windows machine is setup wth the identical products etc. The problem is the image file paths for linux

Re: [Zope] zexp import fails from linux to windows due to image filepaths

2008-07-16 Thread Jaroslav Lukesh
From: Richard Ettema [EMAIL PROTECTED] with windows for development. Is there a way of getting the import procedure to ignore the errors and continue the import (i.e. any hints on how to modify the zope code)? Or is there a way to edit the zexp to do a search remove/replace of the file path

Re: [Zope] zexp import fails from linux to windows due to image filepaths

2008-07-16 Thread Richard Ettema
Quoting Jaroslav Lukesh [EMAIL PROTECTED]: You need to export your website folder as ZEXP in XML format. Then you could edit this file at search/replace basis. But before this, try to re-import this ZEXP file, if it is able to import (not all zexp exports are able to reimport). Regards, JL.

Re: [Zope] zexp import fails from linux to windows due to image file paths

2008-07-16 Thread robert rottermann
Richard Ettema schrieb: Hi, I have an old zope based site that was hosted on a linux machine that was exported to a zexp. i am trying to import it onto a windows machine to fix up and upgrade the site. the windows machine is setup wth the identical products etc. The problem is the image file

[Zope-Checkins] SVN: Zope/tags/2.11.1/ 'creating tag svn+ssh://[EMAIL PROTECTED]/repos/main/Zope/tags/2.11.1 from svn+ssh://[EMAIL PROTECTED]/repos/main/Zope/branches/2.11'

2008-07-16 Thread Andreas Jung
Log message for revision 88409: 'creating tag svn+ssh://[EMAIL PROTECTED]/repos/main/Zope/tags/2.11.1 from svn+ssh://[EMAIL PROTECTED]/repos/main/Zope/branches/2.11' Changed: A Zope/tags/2.11.1/ -=- Copied: Zope/tags/2.11.1 (from rev 88408, Zope/branches/2.11)

Re: [Zope-dev] Re: [Plone-developers] PAULA: bringing Zope 3's authentication to Plone and beyond

2008-07-16 Thread Hermann Himmelbauer
Am Mittwoch, 16. Juli 2008 05:48 schrieb Florian Friesdorf: On Mon, Jul 14, 2008 at 09:50:25AM +0200, Hermann Himmelbauer wrote: (..) 1) No way to pass PAU-related information to form-code: In PAU, the (..) 2) Lack of documentation: The entities Principal, InternalPrincipal,

[Zope-dev] Zope Tests: 5 OK

2008-07-16 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Jul 15 11:00:00 2008 UTC to Wed Jul 16 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Tue Jul 15 21:01:04 EDT 2008 URL:

[Zope-dev] Re: how many checkin lists?!

2008-07-16 Thread Philipp von Weitershausen
Chris Withers wrote: Hi All, Just me, or is it excessive that we have: http://mail.zope.org/pipermail/zope3-checkins/ This one is obsolete now. http://mail.zope.org/pipermail/zope-checkins/ This one is for Zope 2 only. http://mail.zope.org/pipermail/checkins/ This one covers the

[Zope-dev] Re: [Plone-developers] PAULA: bringing Zope 3's authentication to Plone and beyond

2008-07-16 Thread Philipp von Weitershausen
Tres Seaver wrote: Mark Hammond wrote: Well, Zope moved onwards from PAS to PAU I doubt that seriously: I would venture that there are two orders of magnitude more users of PAS than PAU in production deployments. PAU was an attempt to port the PAS to a component-centric implementation, but

[Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Philipp von Weitershausen
Stephan Richter wrote: Hi everyone, I just tried to create a catalog for an annotation and noticed that it does not get filled. Digging around in the zope.annotation package, I noticed that the zope.annotation package does not send out any object events. This sucks. ;-) Thus I propose: -

[Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Philipp von Weitershausen
Stephan Richter wrote: On Tuesday 15 July 2008, Fred Drake wrote: On Tue, Jul 15, 2008 at 12:30 PM, Stephan Richter [EMAIL PROTECTED] wrote: Thus I propose: - Add ObjectCreatedEvent event notification to zope.annotation factory call. By this, I presume you mean the stuff in

[Zope-dev] repoze.bfg

2008-07-16 Thread Chris McDonough
I've been working on a new web framework named (provisionally) repoze.bfg. The relevant README is here: http://svn.repoze.org/repoze.bfg/trunk/README.txt It is essentially a Zope lite. It is Zope-ish in that: - it uses a lot of Zope libraries and concepts (interfaces, some CA constructs,

Re: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Stephan Richter
On Wednesday 16 July 2008, Philipp von Weitershausen wrote: this came out of the ST project, where we constantly repeated this sort of code. Not that it matters much, but I think it was Martijn Faassen who wrote it. ... who worked on ST at the time and saw this pattern there. Regards,

Re: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Stephan Richter
On Wednesday 16 July 2008, Fred Drake wrote: I suspect this is what you mean, though we've been mostly referring to the added event. Right. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter

Re: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Fred Drake
On Wed, Jul 16, 2008 at 10:45 AM, Stephan Richter [EMAIL PROTECTED] wrote: But I agree. The system supports simple type and that is one of the use cases. While I originally wanted to add at least 2 of the events to the IAnnotations adapter itself, I agree with you that the overhead penalty

Re: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Wichert Akkerman
Previously Stephan Richter wrote: On Wednesday 16 July 2008, Fred Drake wrote: On Wed, Jul 16, 2008 at 10:26 AM, Stephan Richter [EMAIL PROTECTED] wrote: I agree. I realized only later that those events are defined in the zope.app.container package. In this case I would just create

AW: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Roger Ineichen
Hi Stephan Betreff: Re: [Zope-dev] Re: No events in zope.annotation [...] I do not think that I have a single annotation that is a simple type. I cannot even think of a quick example where any of the Zope 3 core packages have/use simple type annotations. FWIW none of my code uses

Re: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Fred Drake
On Wed, Jul 16, 2008 at 11:33 AM, Roger Ineichen [EMAIL PROTECTED] wrote: Even worse, I store objects in the annotation wich are added to a real IContainer as items somewhere else. This objects are created, added etc. already in the other container and provide locations from there. Only the

[Zope-dev] Re: [Checkins] SVN: zope.app.locales/trunk/ added filePattern parameter for tal_strings to be able to not only parse

2008-07-16 Thread Benji York
On Wed, Jul 16, 2008 at 10:41 AM, Juergen Kartnaller [EMAIL PROTECTED] wrote: Log message for revision 88402: added filePattern parameter for tal_strings to be able to not only parse *.pt files. This looks like a new feature, and as such warrants a version bump to 3.5.0. Changed: U

Re: [Zope-dev] Re: No events in zope.annotation

2008-07-16 Thread Fred Drake
On Wed, Jul 16, 2008 at 11:46 AM, Fred Drake [EMAIL PROTECTED] wrote: I don't see any need for a way to suppress them, since they shouldn't trigger any subscribers for the normal containment events. Based on some discussion here, I realize that my position may not be terribly clear. Just to

Re: [Zope-dev] zope.testing 3.6.0 released

2008-07-16 Thread Adam GROSZER
Hey Benji, Seems that it breaks coverage... The result looks like coverage is started after importing the modules to test. That means declarations do not seem to 'run', but just the code inbetween them. Checked with 3.5.1, it looks fine. -- Best regards, Adam GROSZER

Re: [Zope-dev] zope.testing 3.6.0 released

2008-07-16 Thread Benji York
On Wed, Jul 16, 2008 at 1:19 PM, Adam GROSZER [EMAIL PROTECTED] wrote: Hey Benji, Seems that it breaks coverage... In what way is coverage broken? With or without -j? Can you formulate a test that demonstrates the breakage? The result looks like coverage is started after importing the

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Lennart Regebro
On Wed, Jul 16, 2008 at 20:22, Stephan Richter [EMAIL PROTECTED] wrote: On Wednesday 16 July 2008, Lennart Regebro wrote: Log message for revision 88417: Changed the API. It's unwieldy as it is, so better have separate method for plurals. It looks to me as if you only support one

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Stephan Richter
On Wednesday 16 July 2008, Lennart Regebro wrote: While talking about this, what would a ZPT implementation of this best look like? An i18n:count statement that takes expressions?    p i18n:translate= i18n:count=view/file_countThere are %d files/p Or? Good question! The ZPT above is not

[Zope-dev] Tesing a module against against dependencies in different versions

2008-07-16 Thread Andreas Jung
Hi there, we maintain some modules that should work against different versions of dependent module. E.g. my z3c.sqlalchemy module should work with Sqlalchemy 0.3.X and zope.interface 3.0.X or SQLAlchemy =0.4.X and zope.interface=3.3.0 The codebase right works with both combinations. I am not

Re[2]: [Zope-dev] zope.testing 3.6.0 released

2008-07-16 Thread Adam GROSZER
Hello Benji, Sorry, now being specific with the facts (all other activities only tomorrow (I'll check the revisions)) Results are generated by: python bootstrap.py bin/buildout bin/coverage-test bin/coverage-report on the source of:

[Zope-dev] zope.app.container 3.5.4 bugfix release

2008-07-16 Thread Christophe Combelles
I've added a tag for the 3.5.4 bugfix release of zope.app.container. Could someone please add me on the owners list on pypi so that I can upload it? thanks, Christophe ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] Tesing a module against against dependencies in different versions

2008-07-16 Thread Fred Drake
On Wed, Jul 16, 2008 at 2:59 PM, Andreas Jung [EMAIL PROTECTED] wrote: we maintain some modules that should work against different versions of dependent module. E.g. my z3c.sqlalchemy module should work with Sqlalchemy 0.3.X and zope.interface 3.0.X or SQLAlchemy =0.4.X and

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Hanno Schlichting
Hi. It's awesome to see some progress on this. You are aware of the Gettext manual at http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms right? Stephan Richter wrote: On Wednesday 16 July 2008, Lennart Regebro wrote: While talking about this, what would a ZPT

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Hanno Schlichting
Sorry. There's some garbage in my last message. Disregard the following bits. Hanno Schlichting wrote: br i18n:attributes= You selected span tal:content=num i18n:name=num5/span out of span tal:content=total i18n:name=total10/span files. /p Can someone think about an example involving

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Lennart Regebro
On Wed, Jul 16, 2008 at 20:55, Stephan Richter [EMAIL PROTECTED] wrote: Good question! The ZPT above is not correct; once we write a correct one, it becomes more obvious: p i18n:translate=There are span tal:content=view/num i18n:name=num i18n:count=view/num10/span files./p Ah, well, right.

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Lennart Regebro
On Wed, Jul 16, 2008 at 22:36, Hanno Schlichting [EMAIL PROTECTED] wrote: p i18n:translate= You have to pay span tal:content=view/formatted_amount i18n:name=amount i18n:count=view/amount6 dollars/span. /p In this case the underlying value is a simple integer, but the actual presentation

[Zope-dev] Re: [Checkins] SVN: zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/ Changed the API. It's unwieldy as it is, so better have separate methods

2008-07-16 Thread Hanno Schlichting
Lennart Regebro wrote: On Wed, Jul 16, 2008 at 22:36, Hanno Schlichting [EMAIL PROTECTED] wrote: p i18n:translate= You have to pay span tal:content=view/formatted_amount i18n:name=amount i18n:count=view/amount6 dollars/span. /p In this case the underlying value is a simple integer, but the

Re: [Zope-dev] zope.app.container 3.5.4 bugfix release

2008-07-16 Thread Baiju M
- Christophe Combelles [EMAIL PROTECTED] wrote: I've added a tag for the 3.5.4 bugfix release of zope.app.container. Could someone please add me on the owners list on pypi so that I can upload it? Your PyPI ID ? -- Baiju M ___ Zope-Dev