Nevermind, I got it. I was mixing up things at the function call not
in the arguments.



On Nov 28, 8:57 pm, waTR <r...@devshell.org> wrote:
> So any chance a patch will be made?
>
> I have been trying to make the modification myself, however, I am
> coming from C++ so I am not yet used to the art of Python function/
> method arguments.
>
> I am trying to add a argument to FormWidget so it takes another
> argument called "stylized={}" before **attributes.
>
> However, when I do a type(stylized), it keeps telling me it is a
> gluon.sql.Field type...
>
> I think I am trying to use static typing and python keeps kicking my
> butt for it;)
>
> On Nov 28, 8:06 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > This makes a good point.
>
> > On Nov 28, 2:36 pm, waTR <r...@devshell.org> wrote:
>
> > > Correct. Design is out-sourced to a designer. Logic code is being done
> > > by me. Main issue going forward will be with service contracts with
> > > outsourced work. It's like voiding a warranty on a hard-drive in your
> > > computer if you open it and modify anything.
>
> > > On Nov 28, 9:36 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
>
> > > > The reason is he had a outsourced designer make all of the stylesheets. 
> > > > He
> > > > would have to either rewrite those stylesheets to accommodate web2py, or
> > > > change web2py to accommodate those spreadsheets. From the sound of it, 
> > > > there
> > > > are tons of form spreadsheets and would be quite tedious to alter them.
>
> > > > This is where having the ability to customize css attributes during form
> > > > creation would be "nice".
>
> > > > -Thadeus
>
> > > > On Sat, Nov 28, 2009 at 3:07 AM, mdipierro <mdipie...@cs.depaul.edu> 
> > > > wrote:
> > > > > Why do you need classes to style the default widgets?
> > > > > They are very simple, they basically just have an INPUT so you can do
>
> > > > > form['_class']='myclass'
>
> > > > > .myclass INPUT#name {
> > > > >   ... style of the INPUT in the widget name in form...
> > > > > }
>
> > > > > There is nothing you cannot already do in CSS.
>
> > > > > Massimo
>
> > > > > On Nov 27, 11:19 pm, waTR <r...@devshell.org> wrote:
> > > > > > That sounds like it might work. I will look into it.
>
> > > > > > Re: jQuery
> > > > > > It becomes very messy when you have to do that. It is fine when the
> > > > > > developer does the design and coding, but when working in a team you
> > > > > > can't do that. You need to have a system in place where you have to 
> > > > > > do
> > > > > > minimal modification/additional code to make the design work with 
> > > > > > the
> > > > > > already enormous amounts of logic code.
>
> > > > > > It should be built into the SQLFORM widget object. It doesn't seem 
> > > > > > so
> > > > > > complicated to do. I will look into it and see.
>
> > > > > > Though I am not intending to do anything that would affect backward
> > > > > > compatibility here, this is rather a simple modification of what is
> > > > > > already there and maybe add an additional optional field that takes 
> > > > > > a
> > > > > > dictionary to modify the dictionary created by SQLFORM.custom.widget
>
> > > > > > On Nov 27, 5:58 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
>
> > > > > > > Try actually overriding the form widgets.
>
> > > > > > > So you can override SQLFORM.widgets dictionary with your custom 
> > > > > > > ones
> > > > > that
> > > > > > > define your own classes.
>
> > > > > > > You can see example widgets on web2pyslices.com for this purpose.
>
> > > > > > > -Thadeus
>
> > > > > > > On Fri, Nov 27, 2009 at 7:35 PM, mdipierro 
> > > > > > > <mdipie...@cs.depaul.edu>
> > > > > wrote:
> > > > > > > > I am not sure this is a good idea. It is not necessary for the
> > > > > purpose
> > > > > > > > of customization
> > > > > > > >  Moreover you can do it with jQuery
>
> > > > > > > > jQuery('#table_password').addCladd('custom_1');
>
> > > > > > > > On Nov 27, 6:55 pm, waTR <r...@devshell.org> wrote:
> > > > > > > > > I am wondering if anyone is working on adding a capability to 
> > > > > > > > > set a
> > > > > > > > > class for a single element in an SQLForm.custom.widget out of
> > > > > however
> > > > > > > > > many are passed to it from a db.table. I.e.
>
> > > > > > > > > You have a table named USER with Name, Email, Password.
> > > > > > > > > Set Name <input> to class = "password OR string OR whatever is
> > > > > > > > > default   +    custom_1 custom_2 custom_n". In addition, 
> > > > > > > > > would be
> > > > > nice
> > > > > > > > > to have access to size="" of <input> as well.
>
> > > > > > > > > If no one is working on anything like this, I am interested in
> > > > > taking
> > > > > > > > > a stab into this darkness...
>
> > > > > > > > > Let me know if no one is working on this and I will put 
> > > > > > > > > forward my
> > > > > > > > > proposed design modification (in english, not code). If there 
> > > > > > > > > is no
> > > > > > > > > cries of outrage I will get it coded. Otherwise, I guess I 
> > > > > > > > > might
> > > > > just
> > > > > > > > > do it for my local copy only. I really need this facility to 
> > > > > > > > > speed
> > > > > up
> > > > > > > > > my forms creation--my app has a hundred or so, and all the 
> > > > > > > > > CSS has
> > > > > > > > > been done by an outside designer. I really don't want to 
> > > > > > > > > modify his
> > > > > > > > > design or CSS links. I just want to be able to plug the Input
> > > > > fields
> > > > > > > > > and have the form start working.
>
> > > > > > > > --
>
> > > > > > > > You received this message because you are subscribed to the 
> > > > > > > > Google
> > > > > Groups
> > > > > > > > "web2py-users" group.
> > > > > > > > To post to this group, send email to web...@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> > > > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com>
>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/web2py?hl=en.
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups
> > > > > "web2py-users" group.
> > > > > To post to this group, send email to web...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/web2py?hl=en.

--

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


Reply via email to