[Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Christian Zagrodnick
On 2007-08-09 17:21:57 +0200, Christian Zagrodnick [EMAIL PROTECTED] said: On 2007-08-09 16:27:23 +0200, Hermann Himmelbauer [EMAIL PROTECTED] said: Am Donnerstag, 9. August 2007 15:44 schrieb Hermann Himmelbauer: Hi, After updating some z3c packages and changing some of my code, I recei

[Zope3-Users] Re: zopeproject zcml problem

2007-08-13 Thread Philipp von Weitershausen
Andrew Rodriguez wrote: I was trying to use zopeproject, but when I have any zcml, and I run ./bin/paster serve deploy.ini, I get a ConfigurationError. The error: ... File /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/zope.configuration-3.4.0b1-py2.4.egg/

[Zope3-Users] Re: z3c.form, applyChanges, IModifiedEvent

2007-08-13 Thread Philipp von Weitershausen
Darryl Cousins wrote: Following a post on grok-dev I learnt about additional arguments to ModifiedEvent. http://mail.zope.org/pipermail/grok-dev/2007-August/001807.html By changing z3c.form.form.applyChanges to return a dictionary of interfaces and names of the attributes changed (instead of

Re: [Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 08:10 schrieb Christian Zagrodnick: On 2007-08-09 17:21:57 +0200, Christian Zagrodnick [EMAIL PROTECTED] said: On 2007-08-09 16:27:23 +0200, Hermann Himmelbauer [EMAIL PROTECTED] said: Am Donnerstag, 9. August 2007 15:44 schrieb Hermann Himmelbauer: Hi,

[Zope3-Users] Invariants and forms

2007-08-13 Thread NYLAN
Hello, I'm using an invariant to check if given passwords are equal. I've found two different examples(see below), but both don't display my given exception message. The only thing i get is the standard error message. Since this is my first experience with zope, could someone explain to me the

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 12:01 schrieb Darryl Cousins: Hi, This was answered recently me thinks. http://mail.zope.org/pipermail/zope3-users/2007-August/006648.html I think this covers a z3c.form-related issue, but not formlib... Best Regards, Hermann -- [EMAIL PROTECTED] GPG key ID:

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Darryl Cousins
Hi, This was answered recently me thinks. http://mail.zope.org/pipermail/zope3-users/2007-August/006648.html Regards, Darryl On Mon, 2007-08-13 at 11:37 +0200, [EMAIL PROTECTED] wrote: Hello, I'm using an invariant to check if given passwords are equal. I've found two different

Re: [Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Benji York
Hermann Himmelbauer wrote: 2007-08-13T11:01:03 CRITICAL txn.1082132800 A storage error occurred during the second phase of the two-phase commit. Resources may be in an inconsistent state. I don't know the details, but doesn't Zalchemy do some interesting things relating to transactions? --

[Zope3-Users] Re: z3c.form, applyChanges, IModifiedEvent

2007-08-13 Thread Stephan Richter
On Sunday 12 August 2007 17:31, Darryl Cousins wrote: Following a post on grok-dev I learnt about additional arguments to ModifiedEvent. http://mail.zope.org/pipermail/grok-dev/2007-August/001807.html By changing z3c.form.form.applyChanges to return a dictionary of interfaces and names of

[Zope3-Users] z3c.form - how to raise/create an error in an action?

2007-08-13 Thread Hermann Himmelbauer
Hi, I have a case where an error may occur in the form-action method (z3c.form, not formlib!), e.g. when data is not found in my database. I'd then like to output this error, similar when a widget error occurs. Moreover there are two simple cases: 1) Errors that are related to a widget (hence

[Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Jürgen Kartnaller
I don't think the recent change to the utility is correct. Because the engine property is now volatile it needs to be recreated any time the utility is garbage collected. Maybe that's the reason for these strange things to happen. Jürgen ___

Re: [Zope3-Users] z3c.form - how to raise/create an error in an action?

2007-08-13 Thread Stephan Richter
On Monday 13 August 2007 12:02, Hermann Himmelbauer wrote: I have a case where an error may occur in the form-action method (z3c.form, not formlib!), e.g. when data is not found in my database. I'd then like to output this error, similar when a widget error occurs. Moreover there are two

Re: [Zope3-Users] Re: Invariants and forms

2007-08-13 Thread Stephan Richter
On Monday 13 August 2007 12:55, Nylan wrote: It's a relative big project and I'm using formlib, so changing to z3c.form (with resolved issue) is not possible at the moment. I'll note that unless you have a lot of formlib customization, switching should not be that hard. Regards, Stephan --

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Stephan Richter
On Monday 13 August 2007 05:37, [EMAIL PROTECTED] wrote: Since this is my first experience with zope, could someone explain to me the correct way to get a custom error message with invariants? I am not sure how or whether formlib does it these days, but raising Invalid('string') should work.

Re: [Zope3-Users] Re: z3c.form, applyChanges, IModifiedEvent

2007-08-13 Thread Stephan Richter
On Monday 13 August 2007 03:31, Philipp von Weitershausen wrote: By changing z3c.form.form.applyChanges to return a dictionary of interfaces and names of the attributes changed (instead of the current bool value) then I can easily create the correct additional attributes within the

Re: [Zope3-Users] z3c.form - how to raise/create an error in an action?

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 19:42 schrieb Stephan Richter: On Monday 13 August 2007 12:02, Hermann Himmelbauer wrote: I have a case where an error may occur in the form-action method (z3c.form, not formlib!), e.g. when data is not found in my database. I'd then like to output this error,

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Maciej Wisniowski
I've found two different examples(see below), but both don't display my given exception message. The only thing i get is the standard error message. What do you mean by standard error message? Second example (taken from:

Re: [Zope3-Users] Re: zopeproject zcml problem

2007-08-13 Thread Philipp von Weitershausen
On 13 Aug 2007, at 15:18 , Andrew Rodriguez wrote: Here is my configure.zcml: configure xmlns=http://namespaces.zope.org/zope; xmlns:i18n=http://namespaces.zope.org/i18n i18n_domain=library include file=permissions.zcml / include file=roles.zcml / You seem to