deform_bootstrap 0.1 released

102 views
Skip to first unread message

Daniel Nouri

unread,
Mar 2, 2012, 6:50:45 AM3/2/12
to pylons-...@googlegroups.com
What is deform_bootstrap?

deform_bootstrap provides Bootstrap 2 compatible widgets and templates
for the Deform form library.
For documentation, see http://pypi.python.org/pypi/deform_bootstrap

For a demo, take look at

- http://deformdemo.xo7.de/

and in particular:

- http://deformdemo.xo7.de/datetime_input/
- http://deformdemo.xo7.de/typeahead_input/

What's in the 0.1 release?

0.1 includes work completed at the PloneKonf sprint in Munich. We now
have two new widgets: a DateTimeInputWidget and a
TypeaheadInputWidget, which have the Twitter Bootstrap look and feel.
Also, existing templates were improved, and all of deformdemo's
Selenium tests are now passing with deform_bootstrap.


Daniel

Mengu

unread,
Mar 5, 2012, 5:17:35 AM3/5/12
to pylons-discuss
hi daniel,

thank you for the awesome efforts. it looks fantastic.

On Mar 2, 1:50 pm, Daniel Nouri <daniel.no...@gmail.com> wrote:
> What is deform_bootstrap?
>
> deform_bootstrap provides Bootstrap 2 compatible widgets and templates
> for the Deform form library.
> For documentation, seehttp://pypi.python.org/pypi/deform_bootstrap
>
> For a demo, take look at
>
> -http://deformdemo.xo7.de/
>
> and in particular:
>
> -http://deformdemo.xo7.de/datetime_input/
> -http://deformdemo.xo7.de/typeahead_input/

Benjamin Sims

unread,
Mar 12, 2012, 1:18:44 PM3/12/12
to pylons-...@googlegroups.com
Hi, this looks great - I've recently been looking into bootstrap so this is very timely for me.

I note however that it is not possible to use use_ajax with the package. I wonder if you or the deform team might expand on this - what would it take to use the two together?

Thanks,
Ben

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.


Mengu

unread,
Mar 12, 2012, 7:58:26 PM3/12/12
to pylons-discuss
hi ben,

what exactly you face when you try to use ajax with deform? afaik,
use_ajax uses jquery form plugin.

On Mar 12, 7:18 pm, Benjamin Sims <benjamins...@gmail.com> wrote:
> Hi, this looks great - I've recently been looking into bootstrap so this is
> very timely for me.
>
> I note however that it is not possible to use use_ajax with the package. I
> wonder if you or the deform team might expand on this - what would it take
> to use the two together?
>
> Thanks,
> Ben
>

Daniel Nouri

unread,
Mar 13, 2012, 2:01:09 PM3/13/12
to pylons-...@googlegroups.com, Benjamin Sims, Andreas Kaiser, Tom Lazar
On Mon, Mar 12, 2012 at 6:18 PM, Benjamin Sims <benjam...@gmail.com> wrote:
> Hi, this looks great - I've recently been looking into bootstrap so this is
> very timely for me.
>
> I note however that it is not possible to use use_ajax with the package. I
> wonder if you or the deform team might expand on this - what would it take
> to use the two together?

You're right. We broke use_ajax sometime in the process. I think
there was a version conflict between a newer jQuery required for
Bootstrap and the jquery.form.js in deform. Might be easy to fix.
Adding Andreas and Tom in the CC who worked on the JS, maybe they
would know more.


Daniel

Benjamin Sims

unread,
Mar 13, 2012, 2:37:31 PM3/13/12
to Daniel Nouri, pylons-...@googlegroups.com, Andreas Kaiser, Tom Lazar
Thanks for that - I'm keen to use them together and only have the most up to date stuff loading, so any tips would be great.

Ben


(sorry Mengu, yes the version conflict was what I was referring to)

Andreas Kaiser

unread,
Mar 13, 2012, 3:02:42 PM3/13/12
to pylons-...@googlegroups.com
Am 13.03.2012 um 19:01 schrieb Daniel Nouri:

> On Mon, Mar 12, 2012 at 6:18 PM, Benjamin Sims <benjam...@gmail.com> wrote:
>> Hi, this looks great - I've recently been looking into bootstrap so this is
>> very timely for me.
>>
>> I note however that it is not possible to use use_ajax with the package. I
>> wonder if you or the deform team might expand on this - what would it take
>> to use the two together?
>
> You're right. We broke use_ajax sometime in the process. I think
> there was a version conflict between a newer jQuery required for
> Bootstrap and the jquery.form.js in deform. Might be easy to fix.
> Adding Andreas and Tom in the CC who worked on the JS, maybe they
> would know more.

The problem is that Bootstrap requires a recent version of jQuery, but deform's use_ajax feature doesn't work with any jquery.form version greater than 2.43, which in turn is limited to jQuery versions 1.4.x (IIRC).

So basically there are 2 options:

1. manually using (the most recent version of) jquery.form. This works just fine by just putting a one liner in your projects' templates (something like "$('form').ajaxForm({target:$('form').parent()})").

2. updating all JS (static files *and* templates) in deform. This should be done in deform itself, not deform_bootstrap.

Approach 1 is working fine for me in my current project and doesn't add much code (compared to "use_ajax=True").


HTH,

Andreas

Andreas Kaiser

unread,
Mar 13, 2012, 3:11:23 PM3/13/12
to pylons-...@googlegroups.com
Am 13.03.2012 um 19:01 schrieb Daniel Nouri:

Benjamin Sims

unread,
Mar 14, 2012, 8:30:36 AM3/14/12
to Andreas Kaiser, Daniel Nouri, pylons-...@googlegroups.com, Tom Lazar
Thanks for the tip. Practically, I will try the first option.

However, could the deform guys comment? Is there a plan to update to more recent jQuery versions, or is there a reason not to do so?

Ben

On 13 March 2012 19:00, Andreas Kaiser <di...@binary-punks.com> wrote:

Am 13.03.2012 um 19:01 schrieb Daniel Nouri:
Reply all
Reply to author
Forward
0 new messages