Re: deform: is it possible to invalidate a form / field manually ?

2012-02-06 Thread Dirley
Excuse me if I'm missing something (I don't know formencode and also didn't read all your code), but couldn't you declare a callback within your view and set it as a validator of the field? Thus the validator could carry the "context" of the view. The colander.Function validator could be used for t

Re: deform, alternate row colors

2011-09-13 Thread Dirley
All you have to do is override "templates/sequence.pt" and pass the "repeat" variable through rndr. The exact line you'll have to edit is this one: Here you can pass any variable (in your case, repeat=repeat.tup) down to "templates/sequence_item.pt", which you can also override and set the a

Re: deform: Support for readonly on individual form fields?

2011-07-30 Thread Dirley
I've once tried something like this, but was (partially) unsuccessful. The thing is that you build your form with some data, and later when the data comes back, you will want to process and validate the received data, right? But how can you do that if you only received partial data -- because as s