[Repoze-dev] repoze.bfg 1.3a12 released

2010-09-07 Thread Chris McDonough
repoze.bfg 1.3a12 has been released. It is a minor feature release. You may install it via: easy_install -i http://dist.repoze.org/bfg/1.3/simple repoze.bfg Or via PyPI. The docs at http://docs.repoze.org/bfg/1.3 have been updated. The changelog follows. 1.3a12 (2010-09-08) ==

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Tim Hoffman
Hi Charlie I have done something similiar with formish. I extended the formish schema (structure) to take a context on instantiation, and then apply (create any custom widgets validators) just before rendering in the form handler. You can see an early approach at http://code.google.com/p/bfg-pag

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Charlie Clark
Am 07.09.2010, 06:56 Uhr, schrieb Tim Hoffman : > So in my contrived example I would like the set of possible values > for color is dependent on the > user and some other factor. Looking at the code for SelectWidget and > RadioChoice widget > it appears they won't take a callable and lazily rende

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Chris McDonough
On Tue, 2010-09-07 at 20:37 +0800, Tim Hoffman wrote: > Bummer ;-) > > > I don't think I have a developed an application in the last 10 years > that hasn't has to do this. > I was quite surprised when I discovered this feature was missing in > formish, but it seems to be missing in quite a > few

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Andrey Popp
I can confirm, this is very desirable feature for form library to have. Currently we generate schema on the fly because: 1) We allow some components to modify schema before rendering it. 2) We want to provide validating "in context" — allow values that are in database and etc. I don't think we ca

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Tim Hoffman
Bummer ;-) I don't think I have a developed an application in the last 10 years that hasn't has to do this. I was quite surprised when I discovered this feature was missing in formish, but it seems to be missing in quite a few other form libs like wtforms as well. I suppose at least they all hav

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Chris McDonough
Hi Tim, Sorry, there is no built-in solution that will allow you to use declarative-module-scope code only. You'll need to generate schemas and widgets at render time. - C On Tue, 2010-09-07 at 12:56 +0800, Tim Hoffman wrote: > Hi Chris. > > Am just starting too look at deform in some detail