Re: [Zope] Re: i18n/L10n support in zope2

2008-04-10 Thread harshad behere
Maurits, Thanks for the reply and suggestions. I tried i18n:translate=, it works fine. But if I change domain (e.g i18n:domain=mydomain) it doesn't work. Is domain attribute is related to the domain specified in .po file, coz the example .po file which comes with PlacelessTranslationService

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Chris Withers
Andreas Jung wrote: I started shivering while reading your code. We would have written such code five or six years ago - because we had no other choice. Please use the standard 'email' module of Python...this just works and you don't need to write such ugly and error-prone DTML code.

[Zope] Re: i18n/L10n support in zope2

2008-04-10 Thread Maurits van Rees
harshad behere, on 2008-04-10: Maurits, Thanks for the reply and suggestions. I tried i18n:translate=, it works fine. But if I change domain (e.g i18n:domain=mydomain) it doesn't work. Is domain attribute is related to the domain specified in .po file, coz the example .po file which

Re: [Zope] Help writing test where bobobase_modification_time changes

2008-04-10 Thread Chris Withers
Peter Bengtsson wrote: How can I solve this? Make one big transaction two without having to use transaction.get().commit() which I don't think I can use in unit tests as per Dieter's advice. I'd suggest monkeypatching bobobase_modification_time on the objects you're testing with. You're

Re: [Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Andreas Jung
--On 10. April 2008 11:00:14 +0200 Josef Meile [EMAIL PROTECTED] wrote: I started shivering while reading your code. We would have written such code five or six years ago - because we had no other choice. Please use the standard 'email' module of Python...this just works and you don't need to

[Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Josef Meile
I started shivering while reading your code. We would have written such code five or six years ago - because we had no other choice. Please use the standard 'email' module of Python...this just works and you don't need to write such ugly and error-prone DTML code. Yes, I know it is ugly and

Re: [Zope] Re: i18n/L10n support in zope2

2008-04-10 Thread harshad behere
Maurits van Rees wrote: In Firefox you can use the livehttpheaders extension to check those. I don't know if there is something similar to IE. In zope this information should be visible somewhere in the request object. To display the complete request in a page template for inspection you can

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Tom Von Lahndorff
The email library should be available to use with a Script (Python) and can be done all within the ZMI. Otherwise maybe use dtml-try? On Wed, Apr 9, 2008 at 4:40 PM, Josef Meile [EMAIL PROTECTED] wrote: Dear list I'm trying to send a multi-part email after having submitted a form. In that

Re: [Zope] Re: i18n/L10n support in zope2

2008-04-10 Thread harshad behere
Maurits van Rees wrote: harshad behere, on 2008-04-10: Maurits, Thanks for the reply and suggestions. I tried i18n:translate=, it works fine. But if I change domain (e.g i18n:domain=mydomain) it doesn't work. Is domain attribute is related to the domain specified in .po file, coz the

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Tom Von Lahndorff
How is dtml more error-prone than python? I'd imagine that all depends on who's authoring it. On Wed, Apr 9, 2008 at 11:59 PM, Andreas Jung [EMAIL PROTECTED] wrote: --On 9. April 2008 22:40:01 +0200 Josef Meile [EMAIL PROTECTED] wrote: Dear list I'm trying to send a

Re: [Zope] Re: i18n/L10n support in zope2

2008-04-10 Thread harshad behere
I tried changing domain in given example .po file (e.g. to Domain=mydomain\n), but it doesn't work even after doing Reload catalog for corresponding .po file object using PTS ZMI. I found reload catalog works if we modify message ids/text. Any idea how PTS manages this headers (like

[Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Josef Meile
The 'email' module is part of the standard Python distribution since generations. Well, I said allowing or installing. I wasn't sure if it was and with allowing I meant by using allow_module or allow_class. I guess you can't just use this module without removing security assertions. I will try

[Zope] Re: i18n/L10n support in zope2

2008-04-10 Thread Maurits van Rees
harshad behere, on 2008-04-10: I also found workaound for MSIE behaviour, include heading call X-Is-Fallback-For: ?\n in your .po file. For e.g - X-Is-Fallback-For: de-de\n. Ah yes, that is the correct solution here indeed. After making change and updating sample page template -

Re: [Zope] Problem with zopectl debug

2008-04-10 Thread Manuel Vazquez Acosta
Dieter Maurer wrote: Manuel Vazquez Acosta wrote at 2008-4-7 15:21 -0400: Dieter Maurer wrote: That is very strange: zopectl debug uses almost exactly the same startup sequence as zopectl fg (at least until after the configuration). Thus, if your Zope starts at all, zopectl debug

[Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-10 Thread Wes Modes
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out). Now, every page results in Site Error An error was encountered while publishing this resource. Resource not found Sorry,

[Zope] retrieving a single column from database and giving it as hyper link fetching respective data

2008-04-10 Thread member madhangc
Dear all, I'm developing a biological database using Zope 2.6 and pgsql. Let me explain my issue with an example. There is a menu called Drug in my homepage, by clicking the menu the drug names along with their type in two different columns get displayed in the body. I can do things till that. My

Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-10 Thread Andreas Jung
--On 10. April 2008 21:04:40 -0700 Wes Modes [EMAIL PROTECTED] wrote: I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out). If you upgrade then you should upgrade to the latest

Re: [Zope] retrieving a single column from database and giving it as hyper link fetching respective data

2008-04-10 Thread Andreas Jung
--On 11. April 2008 10:32:15 +0530 member madhangc [EMAIL PROTECTED] wrote: Dear all, I'm developing a biological database using Zope 2.6 and pgsql. Let me explain my issue with an example. There is a menu called Drug in my homepage, by clicking the menu the drug names along with their

[Zope-dev] Five and browser-oriented components

2008-04-10 Thread Malthe Borch
On Z2, certain imports need to come from Products.Five, to play nicely with ZPublisher and friends. I'd like to ask for the motivation for not patching it onto the existing classes and/or modules. The effect of having Z2-developers import from Products.Five is that they must opt out on

[Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-10 Thread Reinout van Rees
Tres Seaver schreef: Daniel Nouri wrote: 1.0dev-r27844 seems to be gone from PyPI. Such a version should *never* have been released to PyPI (any egg / source dist with an SVN revision number in its filename is *not* suitable for sharing with the wider world). I've made it a habit *not* to

Re: [Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-10 Thread Wichert Akkerman
Previously Reinout van Rees wrote: Tres Seaver schreef: Daniel Nouri wrote: 1.0dev-r27844 seems to be gone from PyPI. Such a version should *never* have been released to PyPI (any egg / source dist with an SVN revision number in its filename is *not* suitable for sharing with the wider

[Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-10 Thread Daniel Nouri
Reinout van Rees [EMAIL PROTECTED] writes: Tres Seaver schreef: Daniel Nouri wrote: 1.0dev-r27844 seems to be gone from PyPI. Such a version should *never* have been released to PyPI (any egg / source dist with an SVN revision number in its filename is *not* suitable for sharing with the

[Zope-dev] Zope Tests: 5 OK

2008-04-10 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Apr 9 11:00:00 2008 UTC to Thu Apr 10 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: Wed Apr 9 20:56:34 EDT 2008 URL:

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Daniel Nouri
Malthe Borch [EMAIL PROTECTED] writes: On Z2, certain imports need to come from Products.Five, to play nicely with ZPublisher and friends. I'd like to ask for the motivation for not patching it onto the existing classes and/or modules. The effect of having Z2-developers import from

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Malthe Borch
Daniel Nouri wrote: Therefore, I'd argue that we should, in contrary to what you suggest, make the Zope 2 compatibility layer more explicit in the form of utility functions, instead of more implicit. Because it makes things more transparent and easier to debug. You might be right; but it's a

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Martijn Faassen
Martin Aspeli wrote: [snip] It's never particularly pleasant. I think we need to make sure we make this as easy and pleasant as possible though. This means at the very least some document that tells you what to do. :) Regards, Martijn ___

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Martijn Faassen
Malthe Borch wrote: On Z2, certain imports need to come from Products.Five, to play nicely with ZPublisher and friends. I'd like to ask for the motivation for not patching it onto the existing classes and/or modules. Technically, I think that this is going to be hard. You'd need to patch

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Daniel Nouri
Malthe Borch [EMAIL PROTECTED] writes: Daniel Nouri wrote: Therefore, I'd argue that we should, in contrary to what you suggest, make the Zope 2 compatibility layer more explicit in the form of utility functions, instead of more implicit. Because it makes things more transparent and easier

[Zope-dev] [zope.testing.doctest] a nasty surprise

2008-04-10 Thread Dieter Maurer
As the community (apparently) strongly favors doctest over unittest, I wrote my first test based on zope.testing.doctest. And promptly, I was badly surprised In order to analyse a difficult problem, I added from dm.pdb import zpdb; zpdb.set_trace() in the doctest (dm.pdb.zpdb is my Zope aware

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Laurence Rowe
Martin Aspeli wrote: Laurence Rowe wrote: Should one phase commit be set as the default to make it easier to work with sqlite (and mssql)? Probably yes. Ideally we'd guess based on the URL scheme but allow it to be set explicitly, IMHO. Single phase would be the fallback, I guess. I don't

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Laurence Rowe
Martin Aspeli wrote: Martijn Faassen wrote: Martijn Pieters wrote: On Tue, Apr 8, 2008 at 11:54 PM, Martijn Faassen [EMAIL PROTECTED] wrote: All of these are in various states of brokenness. z3c.zalchemy doesn't work with SQLAlchemy trunk. collective.lead works with it, but only if you

Re: [Zope-dev] [zope.testing.doctest] a nasty surprise

2008-04-10 Thread Benji York
Dieter Maurer wrote: As the community (apparently) strongly favors doctest over unittest, I wrote my first test based on zope.testing.doctest. And promptly, I was badly surprised In order to analyse a difficult problem, I added from dm.pdb import zpdb; zpdb.set_trace() in the doctest

Re: AW: [Zope-dev] Re: [Zope3-Users] How do I automatically login a user]

2008-04-10 Thread kevin gill
I have completed a first draft of an implementation of a proposal for for changes to the SessionCredentials Access code (zope.app.authentication). http://wiki.zope.org/zope3/SessionCredentialsAPIEnhancements I want to put them somewhere so that they can be discussed. I think that a

Re: [Zope-dev] straighting out the SQLAlchemy integration mess

2008-04-10 Thread Brian Sutherland
On Wed, Apr 09, 2008 at 12:51:53PM -0400, Kapil Thangavelu wrote: that sound good, i'd like to see a common base layer, providing transaction support, simple containers. Actually, containers are one of the things I think should be explicitly excluded from a base SQLAlchemy integration package.

Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Brian Sutherland
On Wed, Apr 09, 2008 at 05:47:06PM +0200, Andreas Jung wrote: --On 9. April 2008 14:15:38 +0100 Laurence Rowe [EMAIL PROTECTED] wrote: @everyone: If we can all agree to use the same basic session and transaction management then we should probably push for it to be included as a sqlalchemy

Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Andreas Jung
--On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the component architecture in such a way that I can specify the db connection parameters in ZCML and that database reflection still works. I

[Zope-dev] Re: Have you checked on the latest commits?

2008-04-10 Thread Marius Gedminas
On Tue, Apr 08, 2008 at 09:20:23AM +1200, Matthew Grant wrote: On Mon, 2008-04-07 at 20:02 +0300, Marius Gedminas wrote: I want to get teh branch to the point where it gets merged. Don't feel that my review is somehow necessary for it being merged. I tend to procrastinate. :-(

Re: [Zope-dev] straighting out the SQLAlchemy integration mess

2008-04-10 Thread Martijn Faassen
Hi there, On Thu, Apr 10, 2008 at 7:04 PM, Brian Sutherland [EMAIL PROTECTED] wrote: On Wed, Apr 09, 2008 at 12:51:53PM -0400, Kapil Thangavelu wrote: that sound good, i'd like to see a common base layer, providing transaction support, simple containers. Actually, containers are one of

AW: AW: [Zope-dev] Re: [Zope3-Users] How do I automatically login a user]

2008-04-10 Thread Roger Ineichen
Hi Kevin Betreff: Re: AW: [Zope-dev] Re: [Zope3-Users] How do I automatically login a user] I have completed a first draft of an implementation of a proposal for for changes to the SessionCredentials Access code (zope.app.authentication).

Re: [Zope-dev] [zope.testing.doctest] a nasty surprise

2008-04-10 Thread Dieter Maurer
Benji York wrote at 2008-4-10 11:50 -0400: Dieter Maurer wrote: As the community (apparently) strongly favors doctest over unittest, I wrote my first test based on zope.testing.doctest. And promptly, I was badly surprised In order to analyse a difficult problem, I added from dm.pdb

Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Brian Sutherland
On Thu, Apr 10, 2008 at 07:31:54PM +0200, Andreas Jung wrote: --On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the component architecture in such a way that I can specify the db connection

Re: [Zope-dev] [zope.testing.doctest] a nasty surprise

2008-04-10 Thread Marius Gedminas
On Thu, Apr 10, 2008 at 08:46:15PM +0200, Dieter Maurer wrote: Benji York wrote at 2008-4-10 11:50 -0400: Dieter Maurer wrote: As the community (apparently) strongly favors doctest over unittest, I wrote my first test based on zope.testing.doctest. And promptly, I was badly surprised

Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Brian Sutherland
On Thu, Apr 10, 2008 at 09:29:43PM +0200, Brian Sutherland wrote: On Thu, Apr 10, 2008 at 07:31:54PM +0200, Andreas Jung wrote: Please *NO* database specific configurations within ZCML. We're running applications in up three or four different environments and I don't want to maintain

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Martin Aspeli
Martijn Faassen wrote: Technically, I think that this is going to be hard. You'd need to patch in the magic acquisition base class. Acquisition is the main reason that some of the code needed to be duplicated - without the existence of acquisition wrappers, security checks are not made for

Re: [Zope-dev] [zope.testing.doctest] a nasty surprise

2008-04-10 Thread Dieter Maurer
Marius Gedminas wrote at 2008-4-10 22:37 +0300: ... doctest monkey-patches pdb.set_trace (in an ugly way, IMHO) to restore sys.stdout, because you want the output from pdb commands like 'list' or 'print' to go to your console, and not to the doctest's actual result StringIO collector.

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Hanno Schlichting
Hi. Martin Aspeli wrote: Martijn Faassen wrote: Technically, I think that this is going to be hard. You'd need to patch in the magic acquisition base class. Acquisition is the main reason that some of the code needed to be duplicated - without the existence of acquisition wrappers, security

Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Kapil Thangavelu
On Thu, Apr 10, 2008 at 1:31 PM, Andreas Jung [EMAIL PROTECTED] wrote: --On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the component architecture in such a way that I can specify the db

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Martijn Faassen
Andreas Jung wrote: --On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the component architecture in such a way that I can specify the db connection parameters in ZCML and that database reflection

[Zope-dev] Re: Five and browser-oriented components

2008-04-10 Thread Martijn Faassen
Hanno Schlichting wrote: [snip] As the problems only showed themselves while doing browser testing inside Plone, I guess I can at least write some unit tests for them, so someone else can actually take a look at them more easily. I'll see if I can do that during my next 10% day [1] :) Yes,

Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Andreas Jung
--On 10. April 2008 21:29:43 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: On Thu, Apr 10, 2008 at 07:31:54PM +0200, Andreas Jung wrote: --On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the