Re: [Repoze-dev] bfg form generation
Hi Iain, At the time I started using BFG, the options I had didn't quite attracted me that much so I decided to roll it on my own. My main goal was to quickly create form widgets from python code using a XML factory ( template independent ). Today it's called repoze.etreeform [1] and although it doesn't have a stable release yet, we use it for all our internal apps (BFG, z3 and plone) with some decent stability. It also ships with some helper functions that will allow one to easily create fieldsets, groups and wizards. Validation is provided by a simple function that will use Formencode validators against request data. The entire library is loose coupled so nothing is connected to anything. The Form class is just a mean to put widgets together, pass values and errors to them and also render it. I also wrote some documentation [2]. Let me know if you experiment with it and run into problems, Regards, Fernando [1] http://svn.repoze.org/repoze.etreeform/trunk/ [2] http://svn.repoze.org/repoze.etreeform/trunk/repoze/etreeform/README.txt On Sat, Jun 27, 2009 at 4:47 PM, Iain Duncan wrote: > what are folks using to make forms and validation schemas with bfg? I am > a big fan of formencode, but not sure how best to use it in the bfg > context. I'm curious whether one can use zope form generation easily > with formencode? > > thanks > iain > > ___ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] bfg form generation
Hi Iain I am using formish with some success at the moment. You need the latest copy from github, rather than whats in PyPI and if you want to use the FileUpload widget you may need to build a custom FileResource handler (I am running on GAE so write temp files to the filesystem is not an option ) Its pretty simple and lightweight does both the form generation from schemas defined using schemaish and validation. (I looked at ToscaWidgets and found it was going to harder to shoehorn into GAE and it didn't have my requirements to be able to specify readonly widgets) Rgds Tim On Sun, Jun 28, 2009 at 3:47 AM, Iain Duncan wrote: > what are folks using to make forms and validation schemas with bfg? I am > a big fan of formencode, but not sure how best to use it in the bfg > context. I'm curious whether one can use zope form generation easily > with formencode? > > thanks > iain > > ___ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] bfg form generation
Oh and here's an example that uses FormEncode + BFG: http://svn.repoze.org/repoze.shootout/trunk/repoze/shootout/views.py On 6/27/09 3:58 PM, Chris McDonough wrote: > I've seen people use (or at least report using): > > - ToscaWidgets > - formish > > I've personally used ToscaWidgets on at least one bfg customer project, > although > we wound up removing it later in favor of just using ZPT macros. > > - C > > > On 6/27/09 3:47 PM, Iain Duncan wrote: >> what are folks using to make forms and validation schemas with bfg? I am >> a big fan of formencode, but not sure how best to use it in the bfg >> context. I'm curious whether one can use zope form generation easily >> with formencode? >> >> thanks >> iain >> >> ___ >> Repoze-dev mailing list >> Repoze-dev@lists.repoze.org >> http://lists.repoze.org/listinfo/repoze-dev >> > > ___ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] bfg form generation
I've seen people use (or at least report using): - ToscaWidgets - formish I've personally used ToscaWidgets on at least one bfg customer project, although we wound up removing it later in favor of just using ZPT macros. - C On 6/27/09 3:47 PM, Iain Duncan wrote: > what are folks using to make forms and validation schemas with bfg? I am > a big fan of formencode, but not sure how best to use it in the bfg > context. I'm curious whether one can use zope form generation easily > with formencode? > > thanks > iain > > ___ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] bfg form generation
what are folks using to make forms and validation schemas with bfg? I am a big fan of formencode, but not sure how best to use it in the bfg context. I'm curious whether one can use zope form generation easily with formencode? thanks iain ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev