[Zope3-Users] Re: Invariants and forms

2007-08-14 Thread Nylan
The standard error message is: There were errors I'll try your solution, but I would prefer getting the invariants to work, like mentioned in the examples. They seem to work with zope 3.2(example 1) and zope 3.4 (example 2) Thanks Best regards ___

[Zope3-Users] z3c.form: Howto include validation errors into a custom pagetemplate?

2007-08-14 Thread Peter Piehler
Hello, i have a spreadsheet like z3c.formdemo spreadsheet. I copy and paste ul class=errors tal:condition=view/widgets/errors metal:define-macro=errors li tal:repeat=error view/widgets/errors tal:block condition=error/widget span

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

2007-08-14 Thread Maciej Wisniowski
The standard error message is: There were errors 'There were errors' is default 'status message' when there are some errors. Do you have any custom template in use? Please, take a look at: zope/formlib/form.py around line 717 there is 'update' function that is interesting for you: def

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

2007-08-14 Thread Stephan Richter
On Monday 13 August 2007 15:00, Hermann Himmelbauer wrote: 1) The user enters an ID, which is invalid/unknown. In this case, invalid/unknown ID should be denoted for the widget and in the form status. I have implemented the necessary framework to handle this case. 2) The user enters the

Re: [Zope3-Users] z3c.form: Howto include validation errors into a custom pagetemplate?

2007-08-14 Thread Stephan Richter
On Tuesday 14 August 2007 06:45, Peter Piehler wrote: i have a  spreadsheet like z3c.formdemo spreadsheet. I copy and paste         ul class=errors             tal:condition=view/widgets/errors             metal:define-macro=errors           li tal:repeat=error view/widgets/errors          

[Zope3-Users] Ahh, counters... Best practice?

2007-08-14 Thread Jeff Shell
We're working on something where we need to allow site visitors to rate items. It's the basic star-rating thing. We want to keep a count of the number of votes along with the current value. Since these are relatively small values - an integer and a float - that may be changing often, what is the

Re: [Zope3-Users] Ahh, counters... Best practice?

2007-08-14 Thread Benji York
Jeff Shell wrote: We're working on something where we need to allow site visitors to rate items. It's the basic star-rating thing. We want to keep a count of the number of votes along with the current value. At work we've been contemplating an approach for use in some similar situations we

Re: [Zope3-Users] z3c.form: Howto include validation errors into a custom pagetemplate?

2007-08-14 Thread Hermann Himmelbauer
Am Dienstag, 14. August 2007 12:45 schrieb Peter Piehler: Hello, i have a spreadsheet like z3c.formdemo spreadsheet. I copy and paste ul class=errors tal:condition=view/widgets/errors metal:define-macro=errors li tal:repeat=error