Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Form Library for Pyramid on Python 3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
denys_br  
View profile  
 More options Jul 25 2012, 4:34 am
From: denys_br <bru...@gmail.com>
Date: Wed, 25 Jul 2012 01:34:57 -0700 (PDT)
Local: Wed, Jul 25 2012 4:34 am
Subject: Form Library for Pyramid on Python 3

Is there good replace for pyramid_simpleform that works on Python 3?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Forkel  
View profile   Translate to Translated (View Original)
 More options Jul 25 2012, 5:21 am
From: Robert Forkel <xrotw...@googlemail.com>
Date: Wed, 25 Jul 2012 11:21:03 +0200
Local: Wed, Jul 25 2012 5:21 am
Subject: Re: Form Library for Pyramid on Python 3
deform [1] should work with python3. But not having used simpleform
myself I cannot say whether it's a good replacement. From my
experience I'd say if you need full control of the HTML generated by
the form lib, deform may not fit the bill.
regards,
robert

[1] http://pypi.python.org/pypi/deform/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Randall Leeds  
View profile  
 More options Jul 25 2012, 3:10 pm
From: Randall Leeds <randall.le...@gmail.com>
Date: Wed, 25 Jul 2012 12:10:32 -0700
Local: Wed, Jul 25 2012 3:10 pm
Subject: Re: Form Library for Pyramid on Python 3

On Wed, Jul 25, 2012 at 2:21 AM, Robert Forkel <xrotw...@googlemail.com> wrote:
> deform [1] should work with python3. But not having used simpleform
> myself I cannot say whether it's a good replacement. From my
> experience I'd say if you need full control of the HTML generated by
> the form lib, deform may not fit the bill.
> regards,
> robert

I disagree. It is rather easy to customize deform to use a different template.
In common cases, it is as simple as copying the template from deform
into your own project and modifying it. Adjusting the template path
accordingly will cause deform to pick up your override. See the
deform_bootstrap package for an example.

One-off customizations can also be achieved with slightly more
digging, passing a custom template keyword to the constructor for any
widget.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Forkel  
View profile  
 More options Jul 25 2012, 3:32 pm
From: Robert Forkel <xrotw...@googlemail.com>
Date: Wed, 25 Jul 2012 21:32:11 +0200
Local: Wed, Jul 25 2012 3:32 pm
Subject: Re: Form Library for Pyramid on Python 3
You are right. There are ways to customize the HTML generated by
deform - and I'm using all the mechanisms you enumerated and quite
like it. But there certainly are things that are hard to achieve. E.g.
if you don't like the approach of pretty much all form items being
generated as li elements within ul containers you'd have to replace
quite a few templates, or if you want some controls being rendered
side by side, others below each other, or if you want custom sequence
widgets. But possibly these things are hard with other form libraries
as well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Randall Leeds  
View profile  
 More options Jul 26 2012, 4:53 pm
From: Randall Leeds <randall.le...@gmail.com>
Date: Thu, 26 Jul 2012 13:53:26 -0700
Local: Thurs, Jul 26 2012 4:53 pm
Subject: Re: Form Library for Pyramid on Python 3

On Jul 25, 2012 2:32 PM, "Robert Forkel" <xrotw...@googlemail.com> wrote:

> You are right. There are ways to customize the HTML generated by
> deform - and I'm using all the mechanisms you enumerated and quite
> like it. But there certainly are things that are hard to achieve. E.g.
> if you don't like the approach of pretty much all form items being
> generated as li elements within ul containers you'd have to replace
> quite a few templates, or if you want some controls being rendered
> side by side, others below each other, or if you want custom sequence
> widgets. But possibly these things are hard with other form libraries
> as well.

I have experienced some of this pain.  Please let us know if you find
compelling alternatives.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Forkel  
View profile  
 More options Jul 27 2012, 1:13 am
From: Robert Forkel <xrotw...@googlemail.com>
Date: Fri, 27 Jul 2012 07:13:52 +0200
Local: Fri, Jul 27 2012 1:13 am
Subject: Re: Form Library for Pyramid on Python 3
right now, at my workplace we are still on deform, but explore the
possibility of custom widgets.
E.g. we build widgets that will take a sqlalchemy model instance and
render multiple form items to edit it.
This does still feel like too much code for what we want to achieve,
but there's potential to factor out boilerplate code (like wrapping
all form items in a mapping).
Of course this means that select boxes or text inputs are created in
more than one place/template, but then again, this kind of control was
why we started down that road.
We don't have custom widgets yet, that are as complex as comprising
sequences, and i guess at this point we will look for alternatives
again.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »