[web2py] Re: Bootstrap 3 datepicker

2016-08-23 Thread Gael Princivalle
Thank's Mirek I'll do like that.

Il giorno martedì 23 agosto 2016 12:55:43 UTC+2, Mirek Zvolský ha scritto:
>
> In Web2py you can set this in Field(), in db model or in SQLFORM.factory, 
> via requires=.
> Something like:
>
> requires=[IS_NOT_EMPTY_(), IS_DATETIME(format='%d.%m.%Y %H:%M')]
>
>
> And you can use T('%d.%m.%Y %H:%M') and translate format for different 
> locales.
>
>
>
>
> Dne neděle 21. srpna 2016 15:28:18 UTC+2 Gael Princivalle napsal(a):
>>
>> Hello.
>>
>> I'm trying to use Bootstrap 3 datepicker.
>> http://eonasdan.github.io/bootstrap-datetimepicker/
>>
>> Edward have already use it:
>> https://groups.google.com/d/topic/web2py/ZRS6PN-Ais4/discussion
>>
>> I use it for datetime, the result in the input is like:
>> 03/09/2016 14:00
>> The form returns me an error as it need also the seconds like:
>> 03/09/2016 14:00:00
>>
>> The seconds for this application are not important, it could be a 
>> solution appending :00 to the input.
>>
>> Someone knows how I can resolve it?
>>
>> Thanks.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3 datepicker

2016-08-23 Thread Mirek Zvolský
In Web2py you can set this in Field(), in db model or in SQLFORM.factory, 
via requires=.
Something like:

requires=[IS_NOT_EMPTY_(), IS_DATETIME(format='%d.%m.%Y %H:%M')]


And you can use T('%d.%m.%Y %H:%M') and translate format for different 
locales.




Dne neděle 21. srpna 2016 15:28:18 UTC+2 Gael Princivalle napsal(a):
>
> Hello.
>
> I'm trying to use Bootstrap 3 datepicker.
> http://eonasdan.github.io/bootstrap-datetimepicker/
>
> Edward have already use it:
> https://groups.google.com/d/topic/web2py/ZRS6PN-Ais4/discussion
>
> I use it for datetime, the result in the input is like:
> 03/09/2016 14:00
> The form returns me an error as it need also the seconds like:
> 03/09/2016 14:00:00
>
> The seconds for this application are not important, it could be a solution 
> appending :00 to the input.
>
> Someone knows how I can resolve it?
>
> Thanks.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-12-22 Thread Dmitry Ermolaev
how I can  include Layout Themes in admin/wizard/step1# ??
There is only Default ((
Plugins - also is empty (


воскресенье, 10 августа 2014 г., 6:30:06 UTC+4 пользователь Massimo Di 
Pierro написал:
>
> https://github.com/web2py/web2py/archive/master.zip
>
> note, you have to use formstyle. For auth forms this is now set by default 
> in db.py.
>
> form = SQLFORM(..., formstyle = SQLFORM.formstyles.bootstrap3)
> grid = SQLFORM.grid(..., formstyle = SQLFORM.formstyles.bootstrap3)
> grid = SQLFORM.smartgrid(..., formstyle = SQLFORM.formstyles.bootstrap3)
>
>
>
> On Saturday, 9 August 2014 03:41:15 UTC-5, eric cuver wrote:
>>
>> where i can find the web2py version with bootstrap
>>
>> Le samedi 9 août 2014 09:17:28 UTC+2, Massimo Di Pierro a écrit :
>>>
>>> also help us test the grid in trunk.
>>>
>>> On Saturday, 9 August 2014 02:13:38 UTC-5, Massimo Di Pierro wrote:

 Bootstrap 3 is in trunk now. Please help us test it.
 Also help us test that existing apps are not broken.

 Massimo

>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-12-15 Thread Cynthia Butler
@Jim, 
Thank you very much! Just what I needed to learn what I was doing wrong.
( I was deleting the web2py .css and .js files)


On Monday, December 15, 2014 6:48:51 AM UTC-7, Jim S wrote:
>
> Attached is my layout.html...
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-12-15 Thread Jim Steil
Attached is my layout.html...

On Sun, Dec 14, 2014 at 5:35 AM,  wrote:

>
> 
>
>
> I also had overlay icons, in the auth navbar, as shown. To solve it I had
> to edit gluon/tools.py:1536
>
> def bootstrap3():  # Default web2py scaffolding
> def rename(icon): return icon.replace('icon','glyphicon')
> self.bar = UL(LI(Anr(I(_class=rename('icon '+items[0]['icon'
> ])),
>  ' ' + items[0]['name'],
>  _href=items[0]['href'])),_class=
> 'dropdown-menu')
>
> instead of
>
> def bootstrap3():  # Default web2py scaffolding
> def rename(icon): return icon+' '+icon.replace('icon',
> 'glyphicon')
> self.bar = UL(LI(Anr(I(_class=rename('icon '+items[0]['icon'
> ])),
>  ' ' + items[0]['name'],
>  _href=items[0]['href'])),_class=
> 'dropdown-menu')
>
> There sure are other ways...
>
>
>
>
>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/HWZ_4gyUSPo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Title: QLF Connect







 





{{=response.flash or ''}}



Toggle navigation




QLF CONNECT 




{{=MENU(response.menu, _class='nav navbar-nav navbar-left')}}


{{='auth' in globals() and auth.navbar(mode="dropdown") or ''}}









{{=A(SPAN(response.title[:1].upper(),_style='font-size: 22pt;')+SPAN(response.title[1:].upper(),_style='font-size:18pt;'), _href=URL(response.title.lower(),'index'), _class='sectionHeader')}}
{{=response.subtitle or ''}}



{{include}}









{{if response.google_analytics_id:}}
 {{pass}}





-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-12-14 Thread pang





I also had overlay icons, in the auth navbar, as shown. To solve it I had 
to edit gluon/tools.py:1536

def bootstrap3():  # Default web2py scaffolding
def rename(icon): return icon.replace('icon','glyphicon')
self.bar = UL(LI(Anr(I(_class=rename('icon '+items[0]['icon'])),
 ' ' + items[0]['name'],
 _href=items[0]['href'])),_class=
'dropdown-menu')

instead of

def bootstrap3():  # Default web2py scaffolding
def rename(icon): return icon+' '+icon.replace('icon',
'glyphicon')
self.bar = UL(LI(Anr(I(_class=rename('icon '+items[0]['icon'])),
 ' ' + items[0]['name'],
 _href=items[0]['href'])),_class=
'dropdown-menu')

There sure are other ways...




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-12-14 Thread Cynthia Butler
@Jim S  Thank you for your post. I'd like to try it -- bootstrap 3 -- 
but I"m not sure which src files to link to in the layout.html file. 
For example, should I keep or delete the links to the web2py.css/.js/.ajax 
files?

I've already downloaded the bootstrap 3 files (.css , .js , /font files) 
and copied them into the static folder(s).
I've been researching all day but I still can't get it to work, I think I 
deleted the wrong links to the web2py src files.

Could you or someone post your bootstrap 3 layout.html file so I can see 
how to do it?

Thanks so much
Cindy



On Monday, November 24, 2014 10:58:05 AM UTC-7, Jim S wrote:
>
> For what it's worth, I have these modifications in my app to make 
> Bootstrap 3 work with SQLFORM.grid:
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-24 Thread Gael Princivalle
Great job and thanks for sharing Jim.
I'll use it for my current project.

Il giorno lunedì 24 novembre 2014 18:58:05 UTC+1, Jim S ha scritto:
>
> For what it's worth, I have these modifications in my app to make 
> Bootstrap 3 work with SQLFORM.grid:
>
> In db.py:
>
> def my_formstyle(form, fields):
> col_sm_label_size = 4
> col_md_label_size = 3
> form.add_class('form-horizontal col-sm-9 col-md-7 col-lg-5')
> label_col_class = "col-sm-%d col-md-%d" % (col_sm_label_size, 
> col_md_label_size)
> col_class = "col-sm-%d col-md-%d" % ((12 - col_sm_label_size), (12 - 
> col_md_label_size))
> offset_class = "col-sm-offset-%d col-md-offset-%s" % (col_sm_label_size, 
> col_md_label_size)
> parent = CAT()
> for id, label, controls, help in fields:
> # wrappers
> _help = SPAN(help, _class='help-block')
> # embed _help into _controls
> _controls = DIV(controls, _help, _class=col_class)
> if isinstance(controls, INPUT):
> if controls['_type'] == 'submit':
> controls.add_class('btn btn-primary')
> _controls = DIV(controls, _class="%s %s" % (col_class, 
> offset_class))
> if controls['_type'] == 'button':
> controls.add_class('btn btn-default')
> elif controls['_type'] == 'file':
> controls.add_class('input-file')
> elif controls['_type'] == 'text':
> controls.add_class('form-control')
> elif controls['_type'] == 'email':
> controls.add_class('form-control')
> elif controls['_type'] == 'password':
> controls.add_class('form-control')
> elif controls['_type'] == 'checkbox':
> label['_for'] = None
> label.insert(0, controls)
> _controls = DIV(DIV(label, _help, _class="checkbox"),
> _class="%s %s" % (offset_class, col_class))
> label = ''
> elif isinstance(controls, SELECT):
> controls.add_class('form-control')
> elif isinstance(controls, TEXTAREA):
> controls.add_class('form-control')
>
> elif isinstance(controls, SPAN):
> _controls = P(controls.components, _class="form-control-static 
> %s" % col_class)
>
> if isinstance(label, LABEL):
> label['_class'] = 'control-label %s' % label_col_class
>
> parent.append(DIV(label, _controls, _class='form-group', _id=id))
> return parent
>
> grid_ui = dict(widget='',
>header='',
>content='',
>default='',
>cornerall='',
>cornertop='',
>cornerbottom='',
>button='btn btn-default button',
>buttontext='buttontext button',
>buttonadd='glyphicon glyphicon-plus space-after',
>buttonback='glyphicon glyphicon-arrow-left space-after',
>buttonexport='glyphicon glyphicon-download space-after',
>buttondelete='glyphicon glyphicon-trash space-after',
>buttonedit='glyphicon glyphicon-pencil space-after',
>buttontable='glyphicon glyphicon-arrow-right space-after',
>buttonview='glyphicon glyphicon-zoom-in space-after')
>
>
> Then I pass along to my SQLFORM.grid calls like this:
>
> In my controllers:
>
> grid = SQLFORM.grid(query, fields=fields, orderby=orderby,
> create=create, details=details,
> editable=editable, deletable=deletable,
> csv=False, search_widget=defaultSearch,
> paginate=15, maxtextlength=45,
> formstyle = my_formstyle, ui=grid_ui)
>
>
> This works well with my site, you may need to tweak it to get your site 
> looking nice.  By no means is this something that will work universally.
>
> -Jim
>
>
>
> On Mon, Nov 24, 2014 at 8:33 AM, Anthony > 
> wrote:
>
>> I think the relevant BS3 functionality is there. The only thing we don't 
>> have is a BS3 based scaffolding app, but if you're using a custom theme, 
>> the scaffolding app probably wouldn't help much anyway.
>>
>> Anthony
>>
>>
>> On Monday, November 24, 2014 2:39:58 AM UTC-5, Tom Øyvind Hogstad wrote:
>>>
>>> No particular problem. More of a wondering what happened to this 
>>> "project".
>>>
>>> Since this is my first web2py project, never used Bootstrap, I also had 
>>> almost zero knowledge of Python, never really used PostgreSQL and my VPSes 
>>> have always been Centos, but I felt for Debian on my latest VPS. 200+ hours 
>>> later I need to set aside some time to refactor stuff :-)
>>> Selling in projects without being proficient in any of the tech you 
>>> wan't to use, lead to loads of fun (And a bit on the low side considering 
>>> "real" hourly rate) :-)
>>>
>>> Mostly wan't to use BS3 trying to consolidate theming to BS3 for 

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-24 Thread Tom Øyvind Hogstad
I think the standard bootstrap theme is perfect for business apps :-)

But I do use various components: navs, buttongroups, pills and so on. And 
the App/Site is very mobile friendly.

Not many files to modify anyway. 

Tom Ø.




kl. 15:33:20 UTC+1 mandag 24. november 2014 skrev Anthony følgende:
>
> I think the relevant BS3 functionality is there. The only thing we don't 
> have is a BS3 based scaffolding app, but if you're using a custom theme, 
> the scaffolding app probably wouldn't help much anyway (and if you were 
> just going to stick with a relatively unmodified scaffolding app, then it 
> wouldn't much matter whether it were BS2 or BS3, as they would look the 
> same).
>
> Anthony
>
> On Monday, November 24, 2014 2:39:58 AM UTC-5, Tom Øyvind Hogstad wrote:
>>
>> No particular problem. More of a wondering what happened to this 
>> "project".
>>
>> Since this is my first web2py project, never used Bootstrap, I also had 
>> almost zero knowledge of Python, never really used PostgreSQL and my VPSes 
>> have always been Centos, but I felt for Debian on my latest VPS. 200+ hours 
>> later I need to set aside some time to refactor stuff :-)
>> Selling in projects without being proficient in any of the tech you wan't 
>> to use, lead to loads of fun (And a bit on the low side considering "real" 
>> hourly rate) :-)
>>
>> Mostly wan't to use BS3 trying to consolidate theming to BS3 for both 
>> Web2py and Drupal work.
>> Going for reworking my app to BS3.
>>
>> Tom Ø.
>>
>>
>>
>> kl. 18:22:13 UTC+1 søndag 23. november 2014 skrev Anthony følgende:
>>>
>>> You can use web2py with Bootstrap 3 (or any front end framework). It 
>>> even has built-in formstyles and grid classes for Bootstrap 3 (though even 
>>> without those, you can add your own custom formstyles and grid classes). Is 
>>> there a particular problem you are having?
>>>
>>> Anthony
>>>
>>> On Sunday, November 23, 2014 8:00:13 AM UTC-5, Tom Øyvind Hogstad wrote:

 What is the status of bootstrap3 now.
 It was reverted in trunc and I just started a project at that time. 
 Started in bootstrap3, but I had not done much so I reverted to bootstrap2.
 Now I would like to go back/forward to bootstrap3 again before my 
 project gets any larger.

 Tom Ø.



 kl. 09:13:38 UTC+2 lørdag 9. august 2014 skrev Massimo Di Pierro 
 følgende:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-24 Thread Anthony
Also, I don't know what version of web2py you are running, but the current 
version now includes Bootstrap 3 classes in the default "ui" dict for the 
grid, and there are now "bootstrap3_stacked" and "bootstrap3_inline" 
formstyles. Of course, you may still need to customize if these defaults 
aren't sufficient, but the same is true with Bootstrap 2 or any CSS theme.

Anthony

On Monday, November 24, 2014 12:58:05 PM UTC-5, Jim S wrote:
>
> For what it's worth, I have these modifications in my app to make 
> Bootstrap 3 work with SQLFORM.grid:
>
> In db.py:
>
> def my_formstyle(form, fields):
> col_sm_label_size = 4
> col_md_label_size = 3
> form.add_class('form-horizontal col-sm-9 col-md-7 col-lg-5')
> label_col_class = "col-sm-%d col-md-%d" % (col_sm_label_size, 
> col_md_label_size)
> col_class = "col-sm-%d col-md-%d" % ((12 - col_sm_label_size), (12 - 
> col_md_label_size))
> offset_class = "col-sm-offset-%d col-md-offset-%s" % (col_sm_label_size, 
> col_md_label_size)
> parent = CAT()
> for id, label, controls, help in fields:
> # wrappers
> _help = SPAN(help, _class='help-block')
> # embed _help into _controls
> _controls = DIV(controls, _help, _class=col_class)
> if isinstance(controls, INPUT):
> if controls['_type'] == 'submit':
> controls.add_class('btn btn-primary')
> _controls = DIV(controls, _class="%s %s" % (col_class, 
> offset_class))
> if controls['_type'] == 'button':
> controls.add_class('btn btn-default')
> elif controls['_type'] == 'file':
> controls.add_class('input-file')
> elif controls['_type'] == 'text':
> controls.add_class('form-control')
> elif controls['_type'] == 'email':
> controls.add_class('form-control')
> elif controls['_type'] == 'password':
> controls.add_class('form-control')
> elif controls['_type'] == 'checkbox':
> label['_for'] = None
> label.insert(0, controls)
> _controls = DIV(DIV(label, _help, _class="checkbox"),
> _class="%s %s" % (offset_class, col_class))
> label = ''
> elif isinstance(controls, SELECT):
> controls.add_class('form-control')
> elif isinstance(controls, TEXTAREA):
> controls.add_class('form-control')
>
> elif isinstance(controls, SPAN):
> _controls = P(controls.components, _class="form-control-static 
> %s" % col_class)
>
> if isinstance(label, LABEL):
> label['_class'] = 'control-label %s' % label_col_class
>
> parent.append(DIV(label, _controls, _class='form-group', _id=id))
> return parent
>
> grid_ui = dict(widget='',
>header='',
>content='',
>default='',
>cornerall='',
>cornertop='',
>cornerbottom='',
>button='btn btn-default button',
>buttontext='buttontext button',
>buttonadd='glyphicon glyphicon-plus space-after',
>buttonback='glyphicon glyphicon-arrow-left space-after',
>buttonexport='glyphicon glyphicon-download space-after',
>buttondelete='glyphicon glyphicon-trash space-after',
>buttonedit='glyphicon glyphicon-pencil space-after',
>buttontable='glyphicon glyphicon-arrow-right space-after',
>buttonview='glyphicon glyphicon-zoom-in space-after')
>
>
> Then I pass along to my SQLFORM.grid calls like this:
>
> In my controllers:
>
> grid = SQLFORM.grid(query, fields=fields, orderby=orderby,
> create=create, details=details,
> editable=editable, deletable=deletable,
> csv=False, search_widget=defaultSearch,
> paginate=15, maxtextlength=45,
> formstyle = my_formstyle, ui=grid_ui)
>
>
> This works well with my site, you may need to tweak it to get your site 
> looking nice.  By no means is this something that will work universally.
>
> -Jim
>
>
>
> On Mon, Nov 24, 2014 at 8:33 AM, Anthony  wrote:
>
>> I think the relevant BS3 functionality is there. The only thing we don't 
>> have is a BS3 based scaffolding app, but if you're using a custom theme, 
>> the scaffolding app probably wouldn't help much anyway.
>>
>> Anthony
>>
>>
>> On Monday, November 24, 2014 2:39:58 AM UTC-5, Tom Øyvind Hogstad wrote:
>>>
>>> No particular problem. More of a wondering what happened to this 
>>> "project".
>>>
>>> Since this is my first web2py project, never used Bootstrap, I also had 
>>> almost zero knowledge of Python, never really used PostgreSQL and my VPSes 
>>> have always been Centos, but I felt for Debian on my latest VPS. 200+ hours 
>>> later I need to s

Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-24 Thread Jim Steil
For what it's worth, I have these modifications in my app to make Bootstrap
3 work with SQLFORM.grid:

In db.py:

def my_formstyle(form, fields):
col_sm_label_size = 4
col_md_label_size = 3
form.add_class('form-horizontal col-sm-9 col-md-7 col-lg-5')
label_col_class = "col-sm-%d col-md-%d" % (col_sm_label_size,
col_md_label_size)
col_class = "col-sm-%d col-md-%d" % ((12 - col_sm_label_size), (12
- col_md_label_size))
offset_class = "col-sm-offset-%d col-md-offset-%s" %
(col_sm_label_size, col_md_label_size)
parent = CAT()
for id, label, controls, help in fields:
# wrappers
_help = SPAN(help, _class='help-block')
# embed _help into _controls
_controls = DIV(controls, _help, _class=col_class)
if isinstance(controls, INPUT):
if controls['_type'] == 'submit':
controls.add_class('btn btn-primary')
_controls = DIV(controls, _class="%s %s" % (col_class,
offset_class))
if controls['_type'] == 'button':
controls.add_class('btn btn-default')
elif controls['_type'] == 'file':
controls.add_class('input-file')
elif controls['_type'] == 'text':
controls.add_class('form-control')
elif controls['_type'] == 'email':
controls.add_class('form-control')
elif controls['_type'] == 'password':
controls.add_class('form-control')
elif controls['_type'] == 'checkbox':
label['_for'] = None
label.insert(0, controls)
_controls = DIV(DIV(label, _help, _class="checkbox"),
_class="%s %s" % (offset_class, col_class))
label = ''
elif isinstance(controls, SELECT):
controls.add_class('form-control')
elif isinstance(controls, TEXTAREA):
controls.add_class('form-control')

elif isinstance(controls, SPAN):
_controls = P(controls.components,
_class="form-control-static %s" % col_class)

if isinstance(label, LABEL):
label['_class'] = 'control-label %s' % label_col_class

parent.append(DIV(label, _controls, _class='form-group', _id=id))
return parent

grid_ui = dict(widget='',
   header='',
   content='',
   default='',
   cornerall='',
   cornertop='',
   cornerbottom='',
   button='btn btn-default button',
   buttontext='buttontext button',
   buttonadd='glyphicon glyphicon-plus space-after',
   buttonback='glyphicon glyphicon-arrow-left space-after',
   buttonexport='glyphicon glyphicon-download space-after',
   buttondelete='glyphicon glyphicon-trash space-after',
   buttonedit='glyphicon glyphicon-pencil space-after',
   buttontable='glyphicon glyphicon-arrow-right space-after',
   buttonview='glyphicon glyphicon-zoom-in space-after')


Then I pass along to my SQLFORM.grid calls like this:

In my controllers:

grid = SQLFORM.grid(query, fields=fields, orderby=orderby,
create=create, details=details,
editable=editable, deletable=deletable,
csv=False, search_widget=defaultSearch,
paginate=15, maxtextlength=45,
formstyle = my_formstyle, ui=grid_ui)


This works well with my site, you may need to tweak it to get your site
looking nice.  By no means is this something that will work universally.

-Jim



On Mon, Nov 24, 2014 at 8:33 AM, Anthony  wrote:

> I think the relevant BS3 functionality is there. The only thing we don't
> have is a BS3 based scaffolding app, but if you're using a custom theme,
> the scaffolding app probably wouldn't help much anyway.
>
> Anthony
>
>
> On Monday, November 24, 2014 2:39:58 AM UTC-5, Tom Øyvind Hogstad wrote:
>>
>> No particular problem. More of a wondering what happened to this
>> "project".
>>
>> Since this is my first web2py project, never used Bootstrap, I also had
>> almost zero knowledge of Python, never really used PostgreSQL and my VPSes
>> have always been Centos, but I felt for Debian on my latest VPS. 200+ hours
>> later I need to set aside some time to refactor stuff :-)
>> Selling in projects without being proficient in any of the tech you wan't
>> to use, lead to loads of fun (And a bit on the low side considering "real"
>> hourly rate) :-)
>>
>> Mostly wan't to use BS3 trying to consolidate theming to BS3 for both
>> Web2py and Drupal work.
>> Going for reworking my app to BS3.
>>
>> Tom Ø.
>>
>>
>>
>> kl. 18:22:13 UTC+1 søndag 23. november 2014 skrev Anthony følgende:
>>>
>>> You can use web2py with Bootstrap 3 (or any front end framework). It
>>> even has built-in formstyles and grid classes for Bootstrap 3 (though even
>>> without those, you can add your own c

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-24 Thread Anthony
I think the relevant BS3 functionality is there. The only thing we don't 
have is a BS3 based scaffolding app, but if you're using a custom theme, 
the scaffolding app probably wouldn't help much anyway.

Anthony

On Monday, November 24, 2014 2:39:58 AM UTC-5, Tom Øyvind Hogstad wrote:
>
> No particular problem. More of a wondering what happened to this "project".
>
> Since this is my first web2py project, never used Bootstrap, I also had 
> almost zero knowledge of Python, never really used PostgreSQL and my VPSes 
> have always been Centos, but I felt for Debian on my latest VPS. 200+ hours 
> later I need to set aside some time to refactor stuff :-)
> Selling in projects without being proficient in any of the tech you wan't 
> to use, lead to loads of fun (And a bit on the low side considering "real" 
> hourly rate) :-)
>
> Mostly wan't to use BS3 trying to consolidate theming to BS3 for both 
> Web2py and Drupal work.
> Going for reworking my app to BS3.
>
> Tom Ø.
>
>
>
> kl. 18:22:13 UTC+1 søndag 23. november 2014 skrev Anthony følgende:
>>
>> You can use web2py with Bootstrap 3 (or any front end framework). It even 
>> has built-in formstyles and grid classes for Bootstrap 3 (though even 
>> without those, you can add your own custom formstyles and grid classes). Is 
>> there a particular problem you are having?
>>
>> Anthony
>>
>> On Sunday, November 23, 2014 8:00:13 AM UTC-5, Tom Øyvind Hogstad wrote:
>>>
>>> What is the status of bootstrap3 now.
>>> It was reverted in trunc and I just started a project at that time. 
>>> Started in bootstrap3, but I had not done much so I reverted to bootstrap2.
>>> Now I would like to go back/forward to bootstrap3 again before my 
>>> project gets any larger.
>>>
>>> Tom Ø.
>>>
>>>
>>>
>>> kl. 09:13:38 UTC+2 lørdag 9. august 2014 skrev Massimo Di Pierro 
>>> følgende:

 Bootstrap 3 is in trunk now. Please help us test it.
 Also help us test that existing apps are not broken.

 Massimo

>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-24 Thread Tom Øyvind Hogstad
No particular problem. More of a wondering what happened to this "project".

Since this is my first web2py project, never used Bootstrap, I also had 
almost zero knowledge of Python, never really used PostgreSQL and my VPSes 
have always been Centos, but I felt for Debian on my latest VPS. 200+ hours 
later I need to set aside some time to refactor stuff :-)
Selling in projects without being proficient in any of the tech you wan't 
to use, lead to loads of fun (And a bit on the low side considering "real" 
hourly rate) :-)

Mostly wan't to use BS3 trying to consolidate theming to BS3 for both 
Web2py and Drupal work.
Going for reworking my app to BS3.

Tom Ø.



kl. 18:22:13 UTC+1 søndag 23. november 2014 skrev Anthony følgende:
>
> You can use web2py with Bootstrap 3 (or any front end framework). It even 
> has built-in formstyles and grid classes for Bootstrap 3 (though even 
> without those, you can add your own custom formstyles and grid classes). Is 
> there a particular problem you are having?
>
> Anthony
>
> On Sunday, November 23, 2014 8:00:13 AM UTC-5, Tom Øyvind Hogstad wrote:
>>
>> What is the status of bootstrap3 now.
>> It was reverted in trunc and I just started a project at that time. 
>> Started in bootstrap3, but I had not done much so I reverted to bootstrap2.
>> Now I would like to go back/forward to bootstrap3 again before my project 
>> gets any larger.
>>
>> Tom Ø.
>>
>>
>>
>> kl. 09:13:38 UTC+2 lørdag 9. august 2014 skrev Massimo Di Pierro følgende:
>>>
>>> Bootstrap 3 is in trunk now. Please help us test it.
>>> Also help us test that existing apps are not broken.
>>>
>>> Massimo
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-23 Thread Anthony
You can use web2py with Bootstrap 3 (or any front end framework). It even 
has built-in formstyles and grid classes for Bootstrap 3 (though even 
without those, you can add your own custom formstyles and grid classes). Is 
there a particular problem you are having?

Anthony

On Sunday, November 23, 2014 8:00:13 AM UTC-5, Tom Øyvind Hogstad wrote:
>
> What is the status of bootstrap3 now.
> It was reverted in trunc and I just started a project at that time. 
> Started in bootstrap3, but I had not done much so I reverted to bootstrap2.
> Now I would like to go back/forward to bootstrap3 again before my project 
> gets any larger.
>
> Tom Ø.
>
>
>
> kl. 09:13:38 UTC+2 lørdag 9. august 2014 skrev Massimo Di Pierro følgende:
>>
>> Bootstrap 3 is in trunk now. Please help us test it.
>> Also help us test that existing apps are not broken.
>>
>> Massimo
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-23 Thread Tom Øyvind Hogstad
What is the status of bootstrap3 now.
It was reverted in trunc and I just started a project at that time. Started 
in bootstrap3, but I had not done much so I reverted to bootstrap2.
Now I would like to go back/forward to bootstrap3 again before my project 
gets any larger.

Tom Ø.



kl. 09:13:38 UTC+2 lørdag 9. august 2014 skrev Massimo Di Pierro følgende:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-10-12 Thread Gael Princivalle

>
>
> Hello all.

Do we know when the web2py Bootstrap 3 version will be released ?

Regards.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Bootstrap 3 custom forms

2014-09-18 Thread Jim Steil
Thank you.  Will proceed as advised.

On Thu, Sep 18, 2014 at 12:31 PM, Leonel Câmara 
wrote:

> You can't this is a limitation on the way form.custom.begin is implemented.
>
> See:
> https://groups.google.com/d/msg/web2py/mfbbudQpZB0/7fR6WwGg_wQJ
>
>
> Just don't use form.custom.begin and write the HTML directly.
>
> Literally write this in your HTML instead of form.custom.begin.
>
>  method="post" enctype="multipart/form-data" action="#">
>
> Then continue your custom form as usual.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/1yCGgKANssE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3 custom forms

2014-09-18 Thread Leonel Câmara
You can't this is a limitation on the way form.custom.begin is implemented.

See:
https://groups.google.com/d/msg/web2py/mfbbudQpZB0/7fR6WwGg_wQJ


Just don't use form.custom.begin and write the HTML directly.

Literally write this in your HTML instead of form.custom.begin.



Then continue your custom form as usual.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-09-17 Thread Jim Steil
Thanks, that worked great.

NOTE:

This line is incorrect:   buttonedit='glyphicon glyphicon-arrow-pencil',

Should be:  buttonedit='glyphicon glyphicon-pencil',

-Jim

On Wed, Sep 17, 2014 at 1:27 PM, Leonel Câmara 
wrote:

> Yes that's not right jim, bootstrap3 should only have the version
> glyphicon and bootstrap2 shouldn't. What you should do is send your own ui
> dict to grid, something like this on your grid call
>
>ui = dict(widget='',
>   header='',
>   content='',
>   default='',
>   cornerall='',
>   cornertop='',
>   cornerbottom='',
>   button='btn btn-default button',
>   buttontext='buttontext button',
>   buttonadd='glyphicon glyphicon-plus',
>   buttonback='glyphicon glyphicon-arrow-left',
>   buttonexport='glyphicon glyphicon-download',
>   buttondelete='glyphicon glyphicon-trash',
>   buttonedit='glyphicon glyphicon-arrow-pencil',
>   buttontable='glyphicon glyphicon-arrow-right',
>   buttonview='glyphicon glyphicon-arrow-zoom-in',
>   )
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/HWZ_4gyUSPo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-09-17 Thread Leonel Câmara
Yes that's not right jim, bootstrap3 should only have the version glyphicon 
and bootstrap2 shouldn't. What you should do is send your own ui dict to 
grid, something like this on your grid call

   ui = dict(widget='',
  header='',
  content='',
  default='',
  cornerall='',
  cornertop='',
  cornerbottom='',
  button='btn btn-default button',
  buttontext='buttontext button',
  buttonadd='glyphicon glyphicon-plus',
  buttonback='glyphicon glyphicon-arrow-left',
  buttonexport='glyphicon glyphicon-download',
  buttondelete='glyphicon glyphicon-trash',
  buttonedit='glyphicon glyphicon-arrow-pencil',
  buttontable='glyphicon glyphicon-arrow-right',
  buttonview='glyphicon glyphicon-arrow-zoom-in',
  )

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-09-17 Thread Jim S
Also, if I remove the "icon trash icon-trash" from the class on the image 
span (on the delete button) the proper delete image shows up.

-Jim

On Wednesday, September 17, 2014 1:15:58 PM UTC-5, Jim S wrote:
>
> Ok, for now I'll just hardcode it on my SQLFORM.grid calls.
>
> Another issue I'm having is that some of my buttons look like they have 
> overlayed images on them.  I've attached a sample.  The code that is 
> getting generated looks like this:
>
> 
>   "/infocenter/user/index/edit/auth_user/3059?_signature=4fd3e76ccc3017c25f56e3ee3db00f834b683818"
> >
>   >
>  Edit
>  
>   "/infocenter/user/index/delete/auth_user/3059?_signature=453319f27fb9445e1b0f76dcde5bdb1012b56b7f"
>  
> data-w2p_remove="tr" data-w2p_method="POST" data-w2p_disable_with=
> "default" data-w2p_confirm="default">
>  
>  Delete
>  
> 
>
>
> Any ideas why those double images are showing on the delete button and 
> nothing is showing on the edit button?
>
> -Jim
>
>
> On Wednesday, September 17, 2014 12:01:27 PM UTC-5, Leonel Câmara wrote:
>>
>> Officially not yet Jim. You can set response.formstyle but this may 
>> change so I wouldn't use it for now.
>>
>> See discussion here:
>> https://groups.google.com/forum/#!topic/web2py-developers/43xNoDmB0rU
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-09-17 Thread Jim S
Ok, for now I'll just hardcode it on my SQLFORM.grid calls.

Another issue I'm having is that some of my buttons look like they have 
overlayed images on them.  I've attached a sample.  The code that is 
getting generated looks like this:


 
 
 Edit
 
 
 
 Delete
 



Any ideas why those double images are showing on the delete button and 
nothing is showing on the edit button?

-Jim


On Wednesday, September 17, 2014 12:01:27 PM UTC-5, Leonel Câmara wrote:
>
> Officially not yet Jim. You can set response.formstyle but this may change 
> so I wouldn't use it for now.
>
> See discussion here:
> https://groups.google.com/forum/#!topic/web2py-developers/43xNoDmB0rU
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-09-17 Thread Leonel Câmara
Officially not yet Jim. You can set response.formstyle but this may change 
so I wouldn't use it for now.

See discussion here:
https://groups.google.com/forum/#!topic/web2py-developers/43xNoDmB0rU

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-09-17 Thread Jim S
Is there a way I can default all of my forms to bootstrap3_inline?

-Jim

On Saturday, August 9, 2014 2:13:38 AM UTC-5, Massimo Di Pierro wrote:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-29 Thread Joe Barnhart
I think there may be a change in operation for "contains()" in the DAL.  

With the last release, I can use an empty string as an argument to 
contains, and it will return all values (i.e. the empty string matches 
all).  In the trunk version the empty string matches nothing.  I don't know 
which is more "correct" but it does mean I need to change my code in 
numerous places to accommodate the change in usage.

-- Joe


On Saturday, August 9, 2014 12:13:38 AM UTC-7, Massimo Di Pierro wrote:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-28 Thread Richard
Massimo,

I downloaded the master zip and try the following 
http://codepen.io/ncerminara/full/omChv/ in order to get a full width 
desktop app layout.
I tried the following but this was not successful:



 
  ..
 
 
  ..
 
 
  ..
 

   


Should this be possible with the bs3 version?

Richard D

On Saturday, August 9, 2014 9:13:38 AM UTC+2, Massimo Di Pierro wrote:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-25 Thread Giacomo Dorigo
Hi Massimo,
I was reading this page in the manual:
http://web2py.com/books/default/chapter/29/12/components-and-plugins#Layout-plugins

*What do you think about putting the (presently) default bootstrap 2 layout 
in a plugin?*

In this way you will ship directly web2py with these:
static/plugin_layout_*default_bootstrap2*/
views/plugin_layout_*default_bootstrap2*/layout.html
and having the bootstrap 2 layout "encapsulated" like this it will be 
easier for us to test new bootstrap 3 as a layout plugin in existing 
applications (instead of having to create new apps from trunk), and also 
will be easier later to ship web2py with both bootstrap 2 and bootstrap 3 
implementations so that people can choose between them just by modifying 
*views/layout.html* as explained in the manual:

{{extend 'plugin_layout_name/layout.html'}}
{{include}}


PS
maybe you already did this, I didn't notice this post before so I didn't 
have time to download and test the master.zip yet.


On Saturday, August 9, 2014 9:13:38 AM UTC+2, Massimo Di Pierro wrote:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-24 Thread Rob_McC
Massimo:

I'm trying it out, and I like what I see so far.

The *Welcome* application HTML comments seem to through several validation 
errors.
http://127.0.0.1:8001/welcome/default/index



   1. [image: Error] *Line 99 , 
   Column 26*: Consecutive hyphens did not terminate a comment. -- is not 
   permitted inside a comment, but e.g. - - is.
   
   

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-22 Thread Miquel Fontanals
Hi Massimo,

Nice, now it works without any workarounds :)

However about point 1, when I set db.child.parent.writable=False :

-- bootstrap3_inline - the value misses the class .form-control-static  to 
vertical align the value with his label

-- bootstrap3_stacked - the html output is "Label: Value" 
but bs3 sets the label display to inline-block, so there is no whitespace 
between label and value when rendered in the browser. If I set the space 
after de label closing tag it's rendered as expected: 
"Label: Value"

I suspect that this happens for all writable=False elements (but not tested)

About the boolean / checkbox, nice to see the label after the checkbox but 
it have an ugly colon in it... checkbox label:
A newbe question: Is it possible to configure the colon visibility on field 
labels when using FORM/SQLFORM?

I don't have any list:string field in my model right now, if I need one or 
I've time I will test it :)

Miki

El divendres 22 d’agost de 2014 3:49:51 UTC+2, Massimo Di Pierro va 
escriure:
>
> Most of these issues have been addressed today. I could use some help with 
> the style of Field(.., 'list:string') and Field(...,'boolean')
>
> On Wednesday, 20 August 2014 15:33:58 UTC-5, Miquel Fontanals wrote:
>>
>> Hi
>>
>> I've found some issues testing an existing app
>>
>> 1.- Not bs3 related
>>
>> db.define_table("parent", Field('name'), format='%(name)s')
>> db.define_table("child", Field('parent', 'reference parent'))
>>
>> In current version when I create/edit the child using SQLFORM the field 
>> parent becomes a dropdown of parent names
>> In trunk the field parent is an input field (not select)
>>
>> If I set this in trunk:
>>
>> db.child.parent.requires=IS_IN_DB(db, db.parent.id, db.parent._format, 
>> zero=T('choose one'))
>>
>> the dropdown is ok but after that if on some other controler/function I 
>> set db.child.parent.writable=False the field only shows the ID, not the 
>> name (well the format...)
>>
>>
>> 2.- bootstrap3 and SQLFORM.grid
>> There is a problem when showing the hidden fields of search because the 
>> hidden class on bs3 uses !important...
>> bs3
>> .hidden {
>> display: none !important;
>> visibility: hidden !important;
>> }
>>
>> My workaround here is override this class in my own css
>> .hidden {
>> visibility: visible !important;
>> }
>>
>> And adding/redefining this js function (found on so)
>> $.fn.show = function() {
>> this.attr("style", "display: block !important");
>> return show.call(this);
>> };
>>
>> The problem here is that some elements are display:inline and others are 
>> display:block and I don't know how to handle both...
>>
>> Maybe is better to use 
>> jQuery(elem).removeClass('hidden').addClass('something')  than using 
>> jQuery.hide() / show()
>> Or another solution could be using a web2py custom class for the hidden 
>> elements used in grid (without the !important please...), so the 
>> jQuery.show() will work again
>>
>> 3.- formstyle bootstrap3 and date picker
>> The date fields don't have the css class date so the datepicker is not 
>> working.
>>
>> I'm new to web2py and developing my first app with tag R-2.9.5 from 
>> github, but using bs3 (copied views and static folder from default app from 
>> trunk over my existing app, there is a migration path for existing apps?), 
>> and I'm checking out the master branch whenever there are new commits to 
>> keep testing, and waiting for the bs3 release :)
>>
>> Oh, and I forget, I love it, thanks !!!
>>
>> Miki
>> (learning web2py and english at the same time...)
>>
>> El dissabte 9 d’agost de 2014 9:13:38 UTC+2, Massimo Di Pierro va 
>> escriure:
>>>
>>> Bootstrap 3 is in trunk now. Please help us test it.
>>> Also help us test that existing apps are not broken.
>>>
>>> Massimo
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-21 Thread Massimo Di Pierro
Most of these issues have been addressed today. I could use some help with 
the style of Field(.., 'list:string') and Field(...,'boolean')

On Wednesday, 20 August 2014 15:33:58 UTC-5, Miquel Fontanals wrote:
>
> Hi
>
> I've found some issues testing an existing app
>
> 1.- Not bs3 related
>
> db.define_table("parent", Field('name'), format='%(name)s')
> db.define_table("child", Field('parent', 'reference parent'))
>
> In current version when I create/edit the child using SQLFORM the field 
> parent becomes a dropdown of parent names
> In trunk the field parent is an input field (not select)
>
> If I set this in trunk:
>
> db.child.parent.requires=IS_IN_DB(db, db.parent.id, db.parent._format, 
> zero=T('choose one'))
>
> the dropdown is ok but after that if on some other controler/function I 
> set db.child.parent.writable=False the field only shows the ID, not the 
> name (well the format...)
>
>
> 2.- bootstrap3 and SQLFORM.grid
> There is a problem when showing the hidden fields of search because the 
> hidden class on bs3 uses !important...
> bs3
> .hidden {
> display: none !important;
> visibility: hidden !important;
> }
>
> My workaround here is override this class in my own css
> .hidden {
> visibility: visible !important;
> }
>
> And adding/redefining this js function (found on so)
> $.fn.show = function() {
> this.attr("style", "display: block !important");
> return show.call(this);
> };
>
> The problem here is that some elements are display:inline and others are 
> display:block and I don't know how to handle both...
>
> Maybe is better to use 
> jQuery(elem).removeClass('hidden').addClass('something')  than using 
> jQuery.hide() / show()
> Or another solution could be using a web2py custom class for the hidden 
> elements used in grid (without the !important please...), so the 
> jQuery.show() will work again
>
> 3.- formstyle bootstrap3 and date picker
> The date fields don't have the css class date so the datepicker is not 
> working.
>
> I'm new to web2py and developing my first app with tag R-2.9.5 from 
> github, but using bs3 (copied views and static folder from default app from 
> trunk over my existing app, there is a migration path for existing apps?), 
> and I'm checking out the master branch whenever there are new commits to 
> keep testing, and waiting for the bs3 release :)
>
> Oh, and I forget, I love it, thanks !!!
>
> Miki
> (learning web2py and english at the same time...)
>
> El dissabte 9 d’agost de 2014 9:13:38 UTC+2, Massimo Di Pierro va escriure:
>>
>> Bootstrap 3 is in trunk now. Please help us test it.
>> Also help us test that existing apps are not broken.
>>
>> Massimo
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-21 Thread Miquel Fontanals
Hi

I've found some issues testing an existing app

1.- Not bs3 related

db.define_table("parent", Field('name'), format='%(name)s')
db.define_table("child", Field('parent', 'reference parent'))

In current version when I create/edit the child using SQLFORM the field 
parent becomes a dropdown of parent names
In trunk the field parent is an input field (not select)

If I set this in trunk:
 
db.child.parent.requires=IS_IN_DB(db, db.parent.id, db.parent._format, 
zero=T('choose one'))

the dropdown is ok but after that if on some other controler/function I set 
db.child.parent.writable=False the field only shows the ID, not the name 
(well the format...)


2.- bootstrap3 and SQLFORM.grid
There is a problem when showing the hidden fields of search because the 
hidden class on bs3 uses !important...
bs3
.hidden {
display: none !important;
visibility: hidden !important;
}

My workaround here is override this class in my own css
.hidden {
visibility: visible !important;
}

And adding/redefining this js function (found on so)
$.fn.show = function() {
this.attr("style", "display: block !important");
return show.call(this);
};

The problem here is that some elements are display:inline and others are 
display:block and I don't know how to handle both...

Maybe is better to use 
jQuery(elem).removeClass('hidden').addClass('something')  than using 
jQuery.hide() / show()
Or another solution could be using a web2py custom class for the hidden 
elements used in grid (without the !important please...), so the 
jQuery.show() will work again

3.- formstyle bootstrap3 and date picker
The date fields don't have the css class date so the datepicker is not 
working.

I'm new to web2py and developing my first app with tag R-2.9.5 from github, 
but using bs3 (copied views and static folder from default app from trunk 
over my existing app, there is a migration path for existing apps?), and 
I'm checking out the master branch whenever there are new commits to keep 
testing, and waiting for the bs3 release :)

Oh, and I forget, I love it, thanks !!!

Miki
(learning web2py and english at the same time...)

El dissabte 9 d’agost de 2014 9:13:38 UTC+2, Massimo Di Pierro va escriure:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-13 Thread Ricardo Pedroso
I can make a patch in next friday/weekend, but you want a patch against what?

What I've attached was a simple app showing two bootstrap3 formstyle
alternatives.

Should I patch the formstyle_bootstrap3 in sqlhtml.py?

Ricardo


On 8/11/14, Massimo Di Pierro  wrote:
> Would you send me this as a patch? I too would prefer to default to NO
> col-lg-*
>
> On Sunday, 10 August 2014 17:25:51 UTC-5, Ricardo Pedroso wrote:
>>
>> On 8/10/14, Massimo Di Pierro  wrote:
>> > https://github.com/web2py/web2py/archive/master.zip
>> >
>> > note, you have to use formstyle. For auth forms this is now set by
>> default
>> > in db.py.
>> >
>> > form = SQLFORM(..., formstyle = SQLFORM.formstyles.bootstrap3)
>>
>> I only test SQLFORM.
>> I don't like to see the col-lg-'s hardcoded in the bootstrap3 formstyle
>>
>> I've attached a small app with two bootstrap3 formstyles.
>> One is for horizontal forms and the other is for vertical forms
>> It's more close to what I would like to have in web2py.
>>
>> Just unzip in web2py/applications folder. It will create an app named
>> "bs3"
>> Then:
>> http://localhost:8000/bs3
>>
>> Ricardo
>>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-10 Thread Massimo Di Pierro
Would you send me this as a patch? I too would prefer to default to NO 
col-lg-*

On Sunday, 10 August 2014 17:25:51 UTC-5, Ricardo Pedroso wrote:
>
> On 8/10/14, Massimo Di Pierro  wrote: 
> > https://github.com/web2py/web2py/archive/master.zip 
> > 
> > note, you have to use formstyle. For auth forms this is now set by 
> default 
> > in db.py. 
> > 
> > form = SQLFORM(..., formstyle = SQLFORM.formstyles.bootstrap3) 
>
> I only test SQLFORM. 
> I don't like to see the col-lg-'s hardcoded in the bootstrap3 formstyle 
>
> I've attached a small app with two bootstrap3 formstyles. 
> One is for horizontal forms and the other is for vertical forms 
> It's more close to what I would like to have in web2py. 
>
> Just unzip in web2py/applications folder. It will create an app named 
> "bs3" 
> Then: 
> http://localhost:8000/bs3 
>
> Ricardo 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-09 Thread Massimo Di Pierro
https://github.com/web2py/web2py/archive/master.zip

note, you have to use formstyle. For auth forms this is now set by default 
in db.py.

form = SQLFORM(..., formstyle = SQLFORM.formstyles.bootstrap3)
grid = SQLFORM.grid(..., formstyle = SQLFORM.formstyles.bootstrap3)
grid = SQLFORM.smartgrid(..., formstyle = SQLFORM.formstyles.bootstrap3)



On Saturday, 9 August 2014 03:41:15 UTC-5, eric cuver wrote:
>
> where i can find the web2py version with bootstrap
>
> Le samedi 9 août 2014 09:17:28 UTC+2, Massimo Di Pierro a écrit :
>>
>> also help us test the grid in trunk.
>>
>> On Saturday, 9 August 2014 02:13:38 UTC-5, Massimo Di Pierro wrote:
>>>
>>> Bootstrap 3 is in trunk now. Please help us test it.
>>> Also help us test that existing apps are not broken.
>>>
>>> Massimo
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-09 Thread eric cuver
where i can find the web2py version with bootstrap

Le samedi 9 août 2014 09:17:28 UTC+2, Massimo Di Pierro a écrit :
>
> also help us test the grid in trunk.
>
> On Saturday, 9 August 2014 02:13:38 UTC-5, Massimo Di Pierro wrote:
>>
>> Bootstrap 3 is in trunk now. Please help us test it.
>> Also help us test that existing apps are not broken.
>>
>> Massimo
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-09 Thread Massimo Di Pierro
also help us test the grid in trunk.

On Saturday, 9 August 2014 02:13:38 UTC-5, Massimo Di Pierro wrote:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3

2014-06-10 Thread Tim Richardson
See from Massimo: 
https://groups.google.com/d/msg/web2py/lvdb6d9QlRE/HFcXC_cMdSYJ


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3

2014-06-09 Thread Christopher Steel
Is something like this too ambitious? / impossible?...

This product works great for me. It is currently used by the Plone project, 
License is New MIT. Obviously it would take some work to make it work with 
and/or integrate with web2py but it works very well. 

It allows you to install one or more themes using zip files which are 
easily installable and / or upgradable in a fasion that is very similar to 
installing web2py applications

Here are some example themes (including one for an older bootstrap version) 
as examples how to create themes in the real world.

http://plonethemes.org/free-themes

Here is some propaganda from the project...

"Diazo allows you to apply a theme contained in a static HTML web page to a 
dynamic website created using any server-side technology. With Diazo, you 
can take an HTML wireframe created by a web designer and turn it into a 
theme for your favourite CMS, redesign the user interface of a legacy web 
application without even having access to the original source code, or 
build a unified user experience across multiple disparate systems, all in a 
matter of hours, not weeks."

Pypi listing 
diazo 1.0.5
https://pypi.python.org/pypi/diazo/1.0.5
License: New BSD 

Wikipedia
Diazo Software
http://en.wikipedia.org/wiki/Diazo_%28software%29

Diazo.org
Diazo theme engine guide
http://docs.diazo.org/en/latest/index.html

Probably a big up front integration time investment but once it is 
completed Bob is your Uncle.

C.


On Sunday, June 8, 2014 12:03:28 PM UTC-4, Massimo Di Pierro wrote:
>
> we did, than we reverted. There is no consensus on how to do it because 
> the grid is not customizable enough and hardcodes the bs2 classes. We are 
> working on it.
>
> On Sunday, 8 June 2014 00:48:12 UTC-5, Osswalt wrote:
>>
>> Any plan to embed Bootstrap 3 into web2py ?
>>
>> Greg
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3

2014-06-09 Thread Gael Princivalle
I'll be happy also when it will be available. I think today websites must 
be designed for mobile devices, and Bootstrap 3 fits to this requirement.

Il giorno domenica 8 giugno 2014 07:48:12 UTC+2, Osswalt ha scritto:
>
> Any plan to embed Bootstrap 3 into web2py ?
>
> Greg
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3

2014-06-08 Thread Massimo Di Pierro
we did, than we reverted. There is no consensus on how to do it because the 
grid is not customizable enough and hardcodes the bs2 classes. We are 
working on it.

On Sunday, 8 June 2014 00:48:12 UTC-5, Osswalt wrote:
>
> Any plan to embed Bootstrap 3 into web2py ?
>
> Greg
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap 3 custom checkbox widget

2014-01-24 Thread Annet
Hi Paolo,

Thanks for your reply.

What about
>
> return DIV(TAG[''](*opts, **attr), _class="checkbox")
>
>
Yes, that solves the problem. I now have both a radio and check boxes 
widget the
Bootstrap 3 way.


Kind regards,

Annet 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Bootstrap 3 custom checkbox widget

2014-01-23 Thread Paolo Caruccio
What about

return DIV(TAG[''](*opts, **attr))



Il giorno giovedì 23 gennaio 2014 19:45:20 UTC+1, Annet ha scritto:
>
> I have the following custom checkboxes widget:
>
>
> def bs3checkboxeswidget(field, value, **attributes):
>
> if isinstance(value, (list, tuple)):
> values = [str(v) for v in value]
> else:
> values = [str(value)]
>
> attr = OptionsWidget._attributes(field, {}, **attributes)
> attr['_class'] = attr.get('_class', 'web2py_checkboxeswidget')
>
> requires = field.requires
> if not isinstance(requires, (list, tuple)):
> requires = [requires]
> if requires and hasattr(requires[0], 'options'):
> options = requires[0].options()
> else:
> raise SyntaxError('widget cannot determine options of %s'
>   % field)
>
> options = [(k, v) for k, v in options if k != '']
> opts = []
>
> for k, v in options:
> if k in values:
> r_value = k
> else:
> r_value = []
> opts.append(LABEL(v, INPUT(_type='checkbox',
>_id='%s%s' % (field.name, k),
>_name=field.name,
>requires=attr.get('requires', None),
>hideerror=True, _value=k,
>value=r_value),
>  _for='%s%s' % (field.name, k)))
>
> if opts:
> opts.append(
> INPUT(requires=attr.get('requires', None),
>   _style="display:none;",
>   _disabled="disabled",
>   _name=field.name,
>   hideerror=False))
>
> return TAG[''](*opts, **attr)
>
>
> It generates:
>
> 
> opening_hours
> 
> 
> 
> event_list
> 
> 
> 
> timetable
> 
> 
>
> I want this to be enclosed by a div
>
> 
> 
> opening_hours
> 
> 
> 
> event_list
> 
> 
> 
> timetable
> 
> 
> 
>
> How do I code this?
>
>
> Kind regards,
>
> Annet
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3 skeleton app?

2013-11-18 Thread Arnon Marcus
Is it in the roadmap? (Could't see it on the official one..)
Is there a designated-version for it? (2.8 maybe? <...hope...>)
Can we get a guestimated-timeframe?
Lots of client-side libraries/frameworks that we have our eyes on for 
using, and who relied on bootstrap 2.x, are fast-converting to 3.0
We are scheduled to upgrade our web2py version in about a month or two, and 
it would be painful to convert our app twice..
Should we expect it to be ready by then? 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3 skeleton app?

2013-10-26 Thread elguavas

ahh, glad to hear. ;)  anything in a not too distant release, or anything 
in git or wherever for testing?

On Saturday, October 26, 2013 4:07:36 PM UTC+11, Massimo Di Pierro wrote:
>
> we are working on it. ;-)
>
> On Friday, 25 October 2013 21:20:47 UTC-5, elguavas wrote:
>>
>> hi there,
>>
>> is there available anywhere yet a web2py skeleton app with bootstrap 3 
>> integrated?
>>
>> thanks,
>> e.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3 skeleton app?

2013-10-25 Thread Massimo Di Pierro
we are working on it. ;-)

On Friday, 25 October 2013 21:20:47 UTC-5, elguavas wrote:
>
> hi there,
>
> is there available anywhere yet a web2py skeleton app with bootstrap 3 
> integrated?
>
> thanks,
> e.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-09-03 Thread Jason (spot) Brower
I agree.  I work with different designs and systems and the frameworks vary
greatly.
It would be nice to just let me select what I want.
Bootstrap 2.x
Bootstrap 3.x
Bare
Sass Based
etc...



On Tue, Sep 3, 2013 at 5:03 PM, José Ricardo Borba wrote:

> +1.
>
> Only for put more gas in the fire, more CSS frameworks to develop your own
> formstyles:
>
> http://usablica.github.io/front-end-frameworks/compare.html
>
> Regards,
>
>
> 2013/9/3 Vinicius Assef 
>
>> I Agree.
>>
>> On Tue, Sep 3, 2013 at 10:24 AM, Richard Vézina
>>  wrote:
>> > +1
>> >
>> > Richard
>> >
>> >
>> > On Fri, Aug 23, 2013 at 4:22 AM, Michele Comitini
>> >  wrote:
>> >>
>> >> IMHO I would be careful in adding support to presentation frameworks
>> >> inside main web2py distribution.
>> >> The scaffolding applications should be a projects on their own.
>> >> This way there could be different scaffolding apps targeting different
>> >> presentation frameworks to choose from.
>> >> The one scaffolding app distributed together with web2py would be
>> selected
>> >> using a criteria of maturity or whatever.
>> >> I think web2py community now is large and mature enough and would
>> benefit
>> >> from this separation.
>> >>
>> >> mic
>> >>
>> >>
>> >> 2013/8/22 Sebastián Tromer 
>> >>>
>> >>> According to Paul Irish 100% faster paint time with Bootstrap 3
>> >>>
>> >>> Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg
>> >>>
>> >>> El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro
>> >>> escribió:
>> 
>>  Why is 3 better than 2 other than the higher number? The buttons do
>> not
>>  look as nice.
>> 
>>  On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>> >
>> > not quite compatible with web2py yet.  Navbar are all messed up.
>> > Possibly other things as well.
>> >
>> > I think no more span-12, span-10, etc.   new syntax is col-lg-12,
>> etc.
>> >
>> >
>> >>> --
>> >>>
>> >>> ---
>> >>> You received this message because you are subscribed to the Google
>> Groups
>> >>> "web2py-users" group.
>> >>> To unsubscribe from this group and stop receiving emails from it,
>> send an
>> >>> email to web2py+unsubscr...@googlegroups.com.
>> >>> For more options, visit https://groups.google.com/groups/opt_out.
>> >>
>> >>
>> >> --
>> >>
>> >> ---
>> >> You received this message because you are subscribed to the Google
>> Groups
>> >> "web2py-users" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> an
>> >> email to web2py+unsubscr...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>> > --
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "web2py-users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to web2py+unsubscr...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-09-03 Thread José Ricardo Borba
+1.

Only for put more gas in the fire, more CSS frameworks to develop your own
formstyles:

http://usablica.github.io/front-end-frameworks/compare.html

Regards,


2013/9/3 Vinicius Assef 

> I Agree.
>
> On Tue, Sep 3, 2013 at 10:24 AM, Richard Vézina
>  wrote:
> > +1
> >
> > Richard
> >
> >
> > On Fri, Aug 23, 2013 at 4:22 AM, Michele Comitini
> >  wrote:
> >>
> >> IMHO I would be careful in adding support to presentation frameworks
> >> inside main web2py distribution.
> >> The scaffolding applications should be a projects on their own.
> >> This way there could be different scaffolding apps targeting different
> >> presentation frameworks to choose from.
> >> The one scaffolding app distributed together with web2py would be
> selected
> >> using a criteria of maturity or whatever.
> >> I think web2py community now is large and mature enough and would
> benefit
> >> from this separation.
> >>
> >> mic
> >>
> >>
> >> 2013/8/22 Sebastián Tromer 
> >>>
> >>> According to Paul Irish 100% faster paint time with Bootstrap 3
> >>>
> >>> Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg
> >>>
> >>> El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro
> >>> escribió:
> 
>  Why is 3 better than 2 other than the higher number? The buttons do
> not
>  look as nice.
> 
>  On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
> >
> > not quite compatible with web2py yet.  Navbar are all messed up.
> > Possibly other things as well.
> >
> > I think no more span-12, span-10, etc.   new syntax is col-lg-12,
> etc.
> >
> >
> >>> --
> >>>
> >>> ---
> >>> You received this message because you are subscribed to the Google
> Groups
> >>> "web2py-users" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send
> an
> >>> email to web2py+unsubscr...@googlegroups.com.
> >>> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >> --
> >>
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups
> >> "web2py-users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to web2py+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> > --
> >
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to web2py+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-09-03 Thread Vinicius Assef
I Agree.

On Tue, Sep 3, 2013 at 10:24 AM, Richard Vézina
 wrote:
> +1
>
> Richard
>
>
> On Fri, Aug 23, 2013 at 4:22 AM, Michele Comitini
>  wrote:
>>
>> IMHO I would be careful in adding support to presentation frameworks
>> inside main web2py distribution.
>> The scaffolding applications should be a projects on their own.
>> This way there could be different scaffolding apps targeting different
>> presentation frameworks to choose from.
>> The one scaffolding app distributed together with web2py would be selected
>> using a criteria of maturity or whatever.
>> I think web2py community now is large and mature enough and would benefit
>> from this separation.
>>
>> mic
>>
>>
>> 2013/8/22 Sebastián Tromer 
>>>
>>> According to Paul Irish 100% faster paint time with Bootstrap 3
>>>
>>> Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg
>>>
>>> El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro
>>> escribió:

 Why is 3 better than 2 other than the higher number? The buttons do not
 look as nice.

 On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>
> not quite compatible with web2py yet.  Navbar are all messed up.
> Possibly other things as well.
>
> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>
>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-09-03 Thread LightDot
I agree that this should be moved to contrib, as suggested. Perhaps even 
before 2.6.x is released.

Like I said earlier, I'd move the existing "bootstrap" too.

Regards

On Tuesday, September 3, 2013 3:24:39 PM UTC+2, Richard wrote:
>
> +1
>
> Richard
>
>
> On Fri, Aug 23, 2013 at 4:22 AM, Michele Comitini 
> 
> > wrote:
>
>> IMHO I would be careful in adding support to presentation frameworks 
>> inside main web2py distribution.
>> The scaffolding applications should be a projects on their own.
>> This way there could be different scaffolding apps targeting different 
>> presentation frameworks to choose from.
>> The one scaffolding app distributed together with web2py would be 
>> selected using a criteria of maturity or whatever.
>> I think web2py community now is large and mature enough and would benefit 
>> from this separation.
>>
>> mic
>>
>>
>> 2013/8/22 Sebastián Tromer >
>>
>>> According to *Paul Irish* 100% faster paint time with Bootstrap 3
>>>
>>> Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg
>>>
>>> El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro 
>>> escribió:
>>>
 Why is 3 better than 2 other than the higher number? The buttons do not 
 look as nice.

 On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>
> not quite compatible with web2py yet.  Navbar are all messed up. 
>  Possibly other things as well.
>
> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>
>
>  -- 
>>>  
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to web2py+un...@googlegroups.com .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  -- 
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-09-03 Thread Richard Vézina
+1

Richard


On Fri, Aug 23, 2013 at 4:22 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> IMHO I would be careful in adding support to presentation frameworks
> inside main web2py distribution.
> The scaffolding applications should be a projects on their own.
> This way there could be different scaffolding apps targeting different
> presentation frameworks to choose from.
> The one scaffolding app distributed together with web2py would be selected
> using a criteria of maturity or whatever.
> I think web2py community now is large and mature enough and would benefit
> from this separation.
>
> mic
>
>
> 2013/8/22 Sebastián Tromer 
>
>> According to *Paul Irish* 100% faster paint time with Bootstrap 3
>>
>> Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg
>>
>> El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro escribió:
>>
>>> Why is 3 better than 2 other than the higher number? The buttons do not
>>> look as nice.
>>>
>>> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:

 not quite compatible with web2py yet.  Navbar are all messed up.
  Possibly other things as well.

 I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.


  --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-08-23 Thread Michele Comitini
IMHO I would be careful in adding support to presentation frameworks inside
main web2py distribution.
The scaffolding applications should be a projects on their own.
This way there could be different scaffolding apps targeting different
presentation frameworks to choose from.
The one scaffolding app distributed together with web2py would be selected
using a criteria of maturity or whatever.
I think web2py community now is large and mature enough and would benefit
from this separation.

mic


2013/8/22 Sebastián Tromer 

> According to *Paul Irish* 100% faster paint time with Bootstrap 3
>
> Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg
>
> El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro escribió:
>
>> Why is 3 better than 2 other than the higher number? The buttons do not
>> look as nice.
>>
>> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>>
>>> not quite compatible with web2py yet.  Navbar are all messed up.
>>>  Possibly other things as well.
>>>
>>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>>
>>>
>>>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-22 Thread Sebastián Tromer
According to *Paul Irish* 100% faster paint time with Bootstrap 3

Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg

El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro escribió:
>
> Why is 3 better than 2 other than the higher number? The buttons do not 
> look as nice.
>
> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>
>> not quite compatible with web2py yet.  Navbar are all messed up. 
>>  Possibly other things as well.
>>
>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-08-20 Thread Anthony


> I'm not sure we should have created a formstyle called "boostrap", though. 
>> Instead, we should probably put a formstyle.py in contrib that includes 
>> several custom formstyles, including ones for Bootstrap 2 and Bootstrap 3. 
>> Then you would do:
>>
>> from gluon.contrib.formstyle import bootstrap3
>> form = SQLFORM(..., formstyle=bootstrap3)
>>
>>
> I think this should be the way to go.
> But it will not be enough, for example, I'm using bootstrap3 with web2py 
> in my personal feed reader/aggregator
> (you can check here http://feeds.uni.me/)
> and if you go to the register form, the "Verify Password" field doesn't 
> pass through the custom formstyle, we will have
> to do some css, js or server side dom manipulation, if we want to style 
> this fields (that feels a little bit hacky, for me).
>

Good point. In many places, Auth adds elements to SQLFORM's, and it cannot 
accommodate custom formstyles in those cases. We should probably re-think 
how that is handled so any formstyle can be applied to Auth forms.

Anthony 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-08-20 Thread Ricardo Pedroso
On Tue, Aug 20, 2013 at 10:15 PM, Anthony  wrote:

>
>
> I'm not sure we should have created a formstyle called "boostrap", though.
> Instead, we should probably put a formstyle.py in contrib that includes
> several custom formstyles, including ones for Bootstrap 2 and Bootstrap 3.
> Then you would do:
>
> from gluon.contrib.formstyle import bootstrap3
> form = SQLFORM(..., formstyle=bootstrap3)
>
>
I think this should be the way to go.
But it will not be enough, for example, I'm using bootstrap3 with web2py in
my personal feed reader/aggregator
(you can check here http://feeds.uni.me/)
and if you go to the register form, the "Verify Password" field doesn't
pass through the custom formstyle, we will have
to do some css, js or server side dom manipulation, if we want to style
this fields (that feels a little bit hacky, for me).

The custom formstyle that I'm using is this one:

def formstyle_bs3(form, fields):
''' bootstrap3 '''
table = FIELDSET()
for id, label, controls, help in fields:
if isinstance(controls, INPUT) and controls['_type'] == 'submit':
_help = P(help, _class='help-block')
controls.add_class('btn btn-default')
elif isinstance(controls, INPUT) and controls['_type'] ==
'checkbox':
_help = P(help, _class='help-block')
controls = DIV(controls, _class="checkbox")
elif isinstance(controls, CAT) and isinstance(controls[0], INPUT):
controls[0].add_class('form-control')
_help = P(help, _class='help-block')
else:
_help = P(help, _class='help-block')
controls.add_class('form-control')
table.append(DIV(label, controls, _help, _class="form_group"))
return table

It's not a complete and generic implementation, it's just for my specific
need.


Ricardo

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Anthony
On Tuesday, August 20, 2013 2:24:00 PM UTC-7, Niphlod wrote:

> BTW, a nice thing to have would be a global default formstyle that 
> propagates to all SQLFORM-related serializations.
>

++1

For now, you can do something like:

SQLFORM.formstyles.table3cols = SQLFORM.formstyles.bootstrap

or

SQLFORM.formstyles.table3cols = my_custom_formstyle

SQLFORM.formstyles.table3cols is the default formstyle, so if you overwrite 
it, you get the new formstyle as the default everywhere.

Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Anthony
On Tuesday, August 20, 2013 2:35:17 PM UTC-7, Paolo Caruccio wrote:

> @Anthony
> I never said that the scaffolding can't change, I said that web2py 
> currently can't apply bs3 per default without to change some core code but 
> your and Niphlod solutions have cleared my doubts.
>

Right. And to be clear, web2py doesn't even use the Bootstrap 2 formstyle 
by default, which is why there is no backward compatibility issue and we 
don't have to change any core framework code if we switch to Bootstrap 3. 
If someone is using the Bootstrap 2 formstyle in a Boostrap 2 app, it will 
continue to work (but they can't switch the app to Bootstrap 3 while 
continuing to use the Bootstrap 2 formstyle).

Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Anthony
On Tuesday, August 20, 2013 2:20:51 PM UTC-7, Niphlod wrote:

> indeed we have 
> https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L760
> the external contrib module was exactly what I proposed to @massimo, but 
> by the time we were discussing, a new release was issued (I seem to 
> remember it was around the time of 2.0.x).
>

Yes, I too originally suggested a contrib module: 
https://code.google.com/p/web2py/issues/detail?id=928#c11. Maybe we should 
do that now rather than creating a formstyle_bootstrap3 function in 
sqlhtml.py.

Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread HittingSmoke
I'm just glad to see this is being looked into. I think BS3 is an 
improvement over 2. I know it's not just a simple flip of the switch but it 
would be nice to see "official" support some time in the future.

On Monday, July 29, 2013 7:01:47 AM UTC-7, Niphlod wrote:
>
> just to inform everybody that 3.0 is coming out 
> http://twitter.github.io/bootstrap/
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
+1 for gluon.contrib.formstyle
We could extend the styles to other interesting frameworks and apply this 
styles on several web2py components and not only the forms.
Of course, as Niphlod said, we should have a default formstyle also.

Il giorno martedì 20 agosto 2013 23:35:43 UTC+2, LightDot ha scritto:
>
> Using a library from contrib sounds like a good approach and I wish this 
> was done before adding bootstrap. Perhaps it should be done now, for all 
> future formstyles?
>
> Even now, bootstrap is really just covering bootstrap-horizontal (there 
> are other form options within BS).
>
> Regards,
> Ales
>
> On Tuesday, August 20, 2013 11:15:50 PM UTC+2, Anthony wrote:
>>
>> On Tuesday, August 20, 2013 2:01:54 PM UTC-7, Paolo Caruccio wrote:
>>
>>> Anthony you are right about the scaffolding, But currently, web2py 
>>> renders forms with formstyle="bootstrap" which have css classes not used 
>>> anymore in bs3.
>>>
>>
>> This doesn't mean the scaffolding app has to remain on Bootstrap 2 
>> forever. I'm not sure we should have created a formstyle called "boostrap", 
>> though. Instead, we should probably put a formstyle.py in contrib that 
>> includes several custom formstyles, including ones for Bootstrap 2 and 
>> Bootstrap 3. Then you would do:
>>
>> from gluon.contrib.formstyle import bootstrap3
>> form = SQLFORM(..., formstyle=bootstrap3)
>>
>> In any case, the current "bootstrap" formstyle can continue to work with 
>> Bootstrap 2, and in that sense, it won't break backward compatibility. That 
>> doesn't mean the scaffolding app can't change to Bootstrap 3.
>>
>> Anthony
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread LightDot
Am I reading the book correctly? SQLFORM chapter doesn't mention 
formstyle=bootstrap. I haven't been able to find it mentioned anywhere else 
in the book either, not even in the section about modifying views.

So, could this be considered an experimental feature and thus moved to a 
contrib without breaking the backwards compatibility of web2py?

Regards,
Ales

On Tuesday, August 20, 2013 11:35:43 PM UTC+2, LightDot wrote:
>
> Using a library from contrib sounds like a good approach and I wish this 
> was done before adding bootstrap. Perhaps it should be done now, for all 
> future formstyles?
>
> Even now, bootstrap is really just covering bootstrap-horizontal (there 
> are other form options within BS).
>
> Regards,
> Ales
>
> On Tuesday, August 20, 2013 11:15:50 PM UTC+2, Anthony wrote:
>>
>> On Tuesday, August 20, 2013 2:01:54 PM UTC-7, Paolo Caruccio wrote:
>>
>>> Anthony you are right about the scaffolding, But currently, web2py 
>>> renders forms with formstyle="bootstrap" which have css classes not used 
>>> anymore in bs3.
>>>
>>
>> This doesn't mean the scaffolding app has to remain on Bootstrap 2 
>> forever. I'm not sure we should have created a formstyle called "boostrap", 
>> though. Instead, we should probably put a formstyle.py in contrib that 
>> includes several custom formstyles, including ones for Bootstrap 2 and 
>> Bootstrap 3. Then you would do:
>>
>> from gluon.contrib.formstyle import bootstrap3
>> form = SQLFORM(..., formstyle=bootstrap3)
>>
>> In any case, the current "bootstrap" formstyle can continue to work with 
>> Bootstrap 2, and in that sense, it won't break backward compatibility. That 
>> doesn't mean the scaffolding app can't change to Bootstrap 3.
>>
>> Anthony
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread LightDot
Using a library from contrib sounds like a good approach and I wish this 
was done before adding bootstrap. Perhaps it should be done now, for all 
future formstyles?

Even now, bootstrap is really just covering bootstrap-horizontal (there are 
other form options within BS).

Regards,
Ales

On Tuesday, August 20, 2013 11:15:50 PM UTC+2, Anthony wrote:
>
> On Tuesday, August 20, 2013 2:01:54 PM UTC-7, Paolo Caruccio wrote:
>
>> Anthony you are right about the scaffolding, But currently, web2py 
>> renders forms with formstyle="bootstrap" which have css classes not used 
>> anymore in bs3.
>>
>
> This doesn't mean the scaffolding app has to remain on Bootstrap 2 
> forever. I'm not sure we should have created a formstyle called "boostrap", 
> though. Instead, we should probably put a formstyle.py in contrib that 
> includes several custom formstyles, including ones for Bootstrap 2 and 
> Bootstrap 3. Then you would do:
>
> from gluon.contrib.formstyle import bootstrap3
> form = SQLFORM(..., formstyle=bootstrap3)
>
> In any case, the current "bootstrap" formstyle can continue to work with 
> Bootstrap 2, and in that sense, it won't break backward compatibility. That 
> doesn't mean the scaffolding app can't change to Bootstrap 3.
>
> Anthony
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
@Anthony
I never said that the scaffolding can't change, I said that web2py 
currently can't apply bs3 per default without to change some core code but 
your and Niphlod solutions have cleared my doubts. In fact I have ready a 
welcome app founded on bs3 and jQuery 2.0.3.   
@Niphold
Thank you. If I had known it before I would have saved a bit of time. 
Regarding the navbar with submenus, web2py already managed it before the 
official adoption by bs2. I used it in my application.

Il giorno martedì 20 agosto 2013 23:06:34 UTC+2, Niphlod ha scritto:
>
> +1 on Anthony and on the fact that having some pretty 
> "maintained-out-of-band kickass layouts" is somewhat missing in web2py.
> I'm waiting on the final release to test bs3, but for example the 
> structure of response.menu has been definitely a PITA to work with bs2 and 
> it's going to be even more PITA on bs3. 
> It's true that welcome hasn't hard constraint, but its also true that 
> probably users will have to rethink to their menu structure before 
> switching to bs3. This is somewhat a "conflict" between what has always 
> been a nested structure in web2py (historical superfish handled it 
> perfectly) and the new "flatty" layouts that favour a streamlined-flatty 
> menu structure, mainly because responsive templates had always some issues 
> displaying them (of course, this is not strictly a bs3 issue, but more of a 
> new "design fashion").
> Again, some examples on how to maintain submenus in bs3 are yet on the 
> interwebs (http://bootply.com/71520), but lets put this in kind words 
> don't expect to switch the layout from bs2 to bs3 to get instant adaptation.
>
> On Tuesday, August 20, 2013 10:34:50 PM UTC+2, Anthony wrote:
>>
>> On Tuesday, August 20, 2013 1:22:19 PM UTC-7, Paolo Caruccio wrote:
>>
>>> Unfortunately bs3 has dropped some components used by web2py, for 
>>> example submenus, has changed many classes and so on. In other words it's a 
>>> different framework that requires changes in web2py code which - currently- 
>>>  infringe the backward compatibility. Moreover IE7 and FF3.6 aren't 
>>> supported anymore. Of course it's possible create customized html layouts 
>>> based on bs3 but I don't think that web2py can apply for default this new 
>>> framework.
>>>
>>
>> Backward compatibility does not apply to the scaffolding app (it has 
>> changed many times in the past) -- when you upgrade, you don't have to 
>> upgrade your app (the scaffolding is just a starting point). There is also 
>> no hard requirement that the scaffolding layout/CSS must work on all 
>> historical versions of IE and FF. Not saying we should switch immediately, 
>> but these are not necessarily hard constraints.
>>
>> Anthony 
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Niphlod
BTW, a nice thing to have would be a global default formstyle that 
propagates to all SQLFORM-related serializations.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread LightDot
Web2py includes several formstyles even now (table3cols, table2cols, divs, 
ul and bootstrap). The default formstyle is table3cols, isn't it?

What needs to be done now is to add a new bootstrap3 formstyle. If forms 
include formstyle=bootstrap, the users will continue to get BS2 classes (as 
they should), if forms include formstyle=bootstrap3, they'll get BS3 
classes.

In hindsight, bootstrap should have been named bootstrap2... but that's 
probably just me being pedantic.

Regards,
Ales

On Tuesday, August 20, 2013 11:01:54 PM UTC+2, Paolo Caruccio wrote:
>
> Anthony you are right about the scaffolding, But currently, web2py renders 
> forms with formstyle="bootstrap" which have css classes not used anymore in 
> bs3. Therefore we should use jquery to adapt the rendered html but we could 
> see heavy flash of unstyled content phenomenon. Another way is to use the 
> server DOM manipulation in the controller or in the view or lastly modify 
> the web2py code but the latter way infringes the backward compatibility if 
> someone want build application working also on unsupported browsers by 
> using bs2. I'm testing bs3 since rc1 on web2py and this is my conclusion 
> but I could be wrong. 
>
> Il giorno martedì 20 agosto 2013 22:34:50 UTC+2, Anthony ha scritto:
>>
>> On Tuesday, August 20, 2013 1:22:19 PM UTC-7, Paolo Caruccio wrote:
>>
>>> Unfortunately bs3 has dropped some components used by web2py, for 
>>> example submenus, has changed many classes and so on. In other words it's a 
>>> different framework that requires changes in web2py code which - currently- 
>>>  infringe the backward compatibility. Moreover IE7 and FF3.6 aren't 
>>> supported anymore. Of course it's possible create customized html layouts 
>>> based on bs3 but I don't think that web2py can apply for default this new 
>>> framework.
>>>
>>
>> Backward compatibility does not apply to the scaffolding app (it has 
>> changed many times in the past) -- when you upgrade, you don't have to 
>> upgrade your app (the scaffolding is just a starting point). There is also 
>> no hard requirement that the scaffolding layout/CSS must work on all 
>> historical versions of IE and FF. Not saying we should switch immediately, 
>> but these are not necessarily hard constraints.
>>
>> Anthony 
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Niphlod
indeed we have 
https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L760
the external contrib module was exactly what I proposed to @massimo, but by 
the time we were discussing, a new release was issued (I seem to remember 
it was around the time of 2.0.x).

This doesn't mean the scaffolding app has to remain on Bootstrap 2 forever. 
> I'm not sure we should have created a formstyle called "boostrap", though. 
> Instead, we should probably put a formstyle.py in contrib that includes 
> several custom formstyles, including ones for Bootstrap 2 and Bootstrap 3. 
> Then you would do:
>
> from gluon.contrib.formstyle import bootstrap3
> form = SQLFORM(..., formstyle=bootstrap3)
>
> In any case, the current "bootstrap" formstyle can continue to work with 
> Bootstrap 2, and in that sense, it won't break backward compatibility. That 
> doesn't mean the scaffolding app can't change to Bootstrap 3.
>
> Anthony
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Anthony
On Tuesday, August 20, 2013 2:01:54 PM UTC-7, Paolo Caruccio wrote:

> Anthony you are right about the scaffolding, But currently, web2py renders 
> forms with formstyle="bootstrap" which have css classes not used anymore in 
> bs3.
>

This doesn't mean the scaffolding app has to remain on Bootstrap 2 forever. 
I'm not sure we should have created a formstyle called "boostrap", though. 
Instead, we should probably put a formstyle.py in contrib that includes 
several custom formstyles, including ones for Bootstrap 2 and Bootstrap 3. 
Then you would do:

from gluon.contrib.formstyle import bootstrap3
form = SQLFORM(..., formstyle=bootstrap3)

In any case, the current "bootstrap" formstyle can continue to work with 
Bootstrap 2, and in that sense, it won't break backward compatibility. That 
doesn't mean the scaffolding app can't change to Bootstrap 3.

Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Niphlod
Man, I'm such a clairvoyant!!
This was already brought up to @massimo in the past. I'd go with a new 
formstyle='bootstrap3' to handle all changes. It's unthinkable to have it 
otherwise and maintain all things working bs2-->bs3 without heavy FOUC. 
Don't loose your mind over it ^_^

On Tuesday, August 20, 2013 11:01:54 PM UTC+2, Paolo Caruccio wrote:
>
> Anthony you are right about the scaffolding, But currently, web2py renders 
> forms with formstyle="bootstrap" which have css classes not used anymore in 
> bs3. Therefore we should use jquery to adapt the rendered html but we could 
> see heavy flash of unstyled content phenomenon. Another way is to use the 
> server DOM manipulation in the controller or in the view or lastly modify 
> the web2py code but the latter way infringes the backward compatibility if 
> someone want build application working also on unsupported browsers by 
> using bs2. I'm testing bs3 since rc1 on web2py and this is my conclusion 
> but I could be wrong. 
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Niphlod
+1 on Anthony and on the fact that having some pretty 
"maintained-out-of-band kickass layouts" is somewhat missing in web2py.
I'm waiting on the final release to test bs3, but for example the structure 
of response.menu has been definitely a PITA to work with bs2 and it's going 
to be even more PITA on bs3. 
It's true that welcome hasn't hard constraint, but its also true that 
probably users will have to rethink to their menu structure before 
switching to bs3. This is somewhat a "conflict" between what has always 
been a nested structure in web2py (historical superfish handled it 
perfectly) and the new "flatty" layouts that favour a streamlined-flatty 
menu structure, mainly because responsive templates had always some issues 
displaying them (of course, this is not strictly a bs3 issue, but more of a 
new "design fashion").
Again, some examples on how to maintain submenus in bs3 are yet on the 
interwebs (http://bootply.com/71520), but lets put this in kind words 
don't expect to switch the layout from bs2 to bs3 to get instant adaptation.

On Tuesday, August 20, 2013 10:34:50 PM UTC+2, Anthony wrote:
>
> On Tuesday, August 20, 2013 1:22:19 PM UTC-7, Paolo Caruccio wrote:
>
>> Unfortunately bs3 has dropped some components used by web2py, for example 
>> submenus, has changed many classes and so on. In other words it's a 
>> different framework that requires changes in web2py code which - currently- 
>>  infringe the backward compatibility. Moreover IE7 and FF3.6 aren't 
>> supported anymore. Of course it's possible create customized html layouts 
>> based on bs3 but I don't think that web2py can apply for default this new 
>> framework.
>>
>
> Backward compatibility does not apply to the scaffolding app (it has 
> changed many times in the past) -- when you upgrade, you don't have to 
> upgrade your app (the scaffolding is just a starting point). There is also 
> no hard requirement that the scaffolding layout/CSS must work on all 
> historical versions of IE and FF. Not saying we should switch immediately, 
> but these are not necessarily hard constraints.
>
> Anthony 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
Anthony you are right about the scaffolding, But currently, web2py renders 
forms with formstyle="bootstrap" which have css classes not used anymore in 
bs3. Therefore we should use jquery to adapt the rendered html but we could 
see heavy flash of unstyled content phenomenon. Another way is to use the 
server DOM manipulation in the controller or in the view or lastly modify 
the web2py code but the latter way infringes the backward compatibility if 
someone want build application working also on unsupported browsers by 
using bs2. I'm testing bs3 since rc1 on web2py and this is my conclusion 
but I could be wrong. 

Il giorno martedì 20 agosto 2013 22:34:50 UTC+2, Anthony ha scritto:
>
> On Tuesday, August 20, 2013 1:22:19 PM UTC-7, Paolo Caruccio wrote:
>
>> Unfortunately bs3 has dropped some components used by web2py, for example 
>> submenus, has changed many classes and so on. In other words it's a 
>> different framework that requires changes in web2py code which - currently- 
>>  infringe the backward compatibility. Moreover IE7 and FF3.6 aren't 
>> supported anymore. Of course it's possible create customized html layouts 
>> based on bs3 but I don't think that web2py can apply for default this new 
>> framework.
>>
>
> Backward compatibility does not apply to the scaffolding app (it has 
> changed many times in the past) -- when you upgrade, you don't have to 
> upgrade your app (the scaffolding is just a starting point). There is also 
> no hard requirement that the scaffolding layout/CSS must work on all 
> historical versions of IE and FF. Not saying we should switch immediately, 
> but these are not necessarily hard constraints.
>
> Anthony 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Anthony
On Tuesday, August 20, 2013 1:22:19 PM UTC-7, Paolo Caruccio wrote:

> Unfortunately bs3 has dropped some components used by web2py, for example 
> submenus, has changed many classes and so on. In other words it's a 
> different framework that requires changes in web2py code which - currently- 
>  infringe the backward compatibility. Moreover IE7 and FF3.6 aren't 
> supported anymore. Of course it's possible create customized html layouts 
> based on bs3 but I don't think that web2py can apply for default this new 
> framework.
>

Backward compatibility does not apply to the scaffolding app (it has 
changed many times in the past) -- when you upgrade, you don't have to 
upgrade your app (the scaffolding is just a starting point). There is also 
no hard requirement that the scaffolding layout/CSS must work on all 
historical versions of IE and FF. Not saying we should switch immediately, 
but these are not necessarily hard constraints.

Anthony 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
Unfortunately bs3 has dropped some components used by web2py, for example 
submenus, has changed many classes and so on. In other words it's a 
different framework that requires changes in web2py code which - currently- 
 infringe the backward compatibility. Moreover IE7 and FF3.6 aren't 
supported anymore. Of course it's possible create customized html layouts 
based on bs3 but I don't think that web2py can apply for default this new 
framework.

Il giorno martedì 20 agosto 2013 21:36:04 UTC+2, HittingSmoke ha scritto:
>
> Bootstrap has gone to flat design for its default theme. This is generally 
> the direction web design is taking. It's more sleek and clean out of the 
> box. If people want a raised theme BS 3 offers themes to return to the 
> original design so the new version is more about choice and easier 
> customization, which is especially useful for a framework like web2py.
>
> On Thursday, August 1, 2013 12:04:49 AM UTC-7, Massimo Di Pierro wrote:
>>
>> Why is 3 better than 2 other than the higher number? The buttons do not 
>> look as nice.
>>
>> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>>
>>> not quite compatible with web2py yet.  Navbar are all messed up. 
>>>  Possibly other things as well.
>>>
>>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>>
>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: bootstrap 3

2013-08-20 Thread Richard Vézina
Like flat design better!

BS 3 is just look less like twitter and that a good thing to me...

Richard


On Tue, Aug 20, 2013 at 3:36 PM, HittingSmoke wrote:

> Bootstrap has gone to flat design for its default theme. This is generally
> the direction web design is taking. It's more sleek and clean out of the
> box. If people want a raised theme BS 3 offers themes to return to the
> original design so the new version is more about choice and easier
> customization, which is especially useful for a framework like web2py.
>
>
> On Thursday, August 1, 2013 12:04:49 AM UTC-7, Massimo Di Pierro wrote:
>>
>> Why is 3 better than 2 other than the higher number? The buttons do not
>> look as nice.
>>
>> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>>
>>> not quite compatible with web2py yet.  Navbar are all messed up.
>>>  Possibly other things as well.
>>>
>>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>>
>>>
>>>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-20 Thread HittingSmoke
Bootstrap has gone to flat design for its default theme. This is generally 
the direction web design is taking. It's more sleek and clean out of the 
box. If people want a raised theme BS 3 offers themes to return to the 
original design so the new version is more about choice and easier 
customization, which is especially useful for a framework like web2py.

On Thursday, August 1, 2013 12:04:49 AM UTC-7, Massimo Di Pierro wrote:
>
> Why is 3 better than 2 other than the higher number? The buttons do not 
> look as nice.
>
> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>
>> not quite compatible with web2py yet.  Navbar are all messed up. 
>>  Possibly other things as well.
>>
>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: bootstrap 3

2013-08-02 Thread LightDot
I think Niphlod has some valid points. As far as the design goes, I like 
Bootstrap 2 and 3 both, they are just different. Hm... I do quite like the 
looks of BS 2, perhaps even more than 3...

As I was starting some of the past web2py projects of mine, I've been 
constantly saying to myself: "I'll take the time and do a welcome app with 
Gumby [1] or Foundation [2] first, then go from there..."

And you can guess... there was never time for this. I seem to be in a 
period when every project is a rush. Anyway, I was trying to say that there 
are other things out there besides BS, some of the other projects are quite 
nice.

Regards,
Ales

[1] http://gumbyframework.com/
[2] http://foundation.zurb.com/

On Thursday, August 1, 2013 11:40:50 AM UTC+2, Niphlod wrote:
>
> I think the main reason to switch is the "mobile first" redesign (apart 
> from the fact that given the "push" that bootstrap has, several 
> features/plugins/etc will be built around that). On top of that, js plugins 
> have been improved and rewritten to take care of some bugs. I like the 
> improvements over the forms markup, as well to the choice to have one grid 
> system only.
>
> https://github.com/twbs/bootstrap/pull/6342 is the documented changelog.
>
> PS: rounded buttons with a "bevel-like" effect are so 2010 :-P
>
> On Thursday, August 1, 2013 9:04:49 AM UTC+2, Massimo Di Pierro wrote:
>>
>> Why is 3 better than 2 other than the higher number? The buttons do not 
>> look as nice.
>>
>> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>>
>>> not quite compatible with web2py yet.  Navbar are all messed up. 
>>>  Possibly other things as well.
>>>
>>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>>
>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-08-01 Thread Niphlod
I think the main reason to switch is the "mobile first" redesign (apart 
from the fact that given the "push" that bootstrap has, several 
features/plugins/etc will be built around that). On top of that, js plugins 
have been improved and rewritten to take care of some bugs. I like the 
improvements over the forms markup, as well to the choice to have one grid 
system only.

https://github.com/twbs/bootstrap/pull/6342 is the documented changelog.

PS: rounded buttons with a "bevel-like" effect are so 2010 :-P

On Thursday, August 1, 2013 9:04:49 AM UTC+2, Massimo Di Pierro wrote:
>
> Why is 3 better than 2 other than the higher number? The buttons do not 
> look as nice.
>
> On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>>
>> not quite compatible with web2py yet.  Navbar are all messed up. 
>>  Possibly other things as well.
>>
>> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-08-01 Thread Massimo Di Pierro
Why is 3 better than 2 other than the higher number? The buttons do not 
look as nice.

On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote:
>
> not quite compatible with web2py yet.  Navbar are all messed up.  Possibly 
> other things as well.
>
> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-07-31 Thread Niphlod
I think what you meant is "not compatible with the current welcome app". 
Lots of things changed but all changes are documented pretty well. I'd wait 
for the final release before implementing a new welcome app based on 
bootstrap 3.

On Wednesday, July 31, 2013 5:56:39 PM UTC+2, VP wrote:
>
> not quite compatible with web2py yet.  Navbar are all messed up.  Possibly 
> other things as well.
>
> I think no more span-12, span-10, etc.   new syntax is col-lg-12, etc.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-07-31 Thread VP
not quite compatible with web2py yet.  Navbar are all messed up.  Possibly 
other things as well.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-07-30 Thread samuel bonilla
graet i like use http://getbootstrap.com and 
http://foundation.zurb.com/ on web2py

El lunes, 29 de julio de 2013 09:01:47 UTC-5, Niphlod escribió:
>
> just to inform everybody that 3.0 is coming out 
> http://twitter.github.io/bootstrap/
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-07-29 Thread Massimo Di Pierro
+1

On Monday, 29 July 2013 14:03:11 UTC-5, Niphlod wrote:
>
> try it and report any findings: I didn't tried it yet. Anyway, bootstrap 
> is not "part of web2py". I assume that with the final release of bootstrap 
> 3 someone will present an "adjusted" welcome application that embeds it.
>
> On Monday, July 29, 2013 8:46:02 PM UTC+2, VP wrote:
>>
>> Can I simply swap with web2py's bootstrap files , expecting no technical 
>> glitches?
>>
>> On Monday, July 29, 2013 9:01:47 AM UTC-5, Niphlod wrote:
>>>
>>> just to inform everybody that 3.0 is coming out 
>>> http://twitter.github.io/bootstrap/
>>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-07-29 Thread Niphlod
try it and report any findings: I didn't tried it yet. Anyway, bootstrap is 
not "part of web2py". I assume that with the final release of bootstrap 3 
someone will present an "adjusted" welcome application that embeds it.

On Monday, July 29, 2013 8:46:02 PM UTC+2, VP wrote:
>
> Can I simply swap with web2py's bootstrap files , expecting no technical 
> glitches?
>
> On Monday, July 29, 2013 9:01:47 AM UTC-5, Niphlod wrote:
>>
>> just to inform everybody that 3.0 is coming out 
>> http://twitter.github.io/bootstrap/
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: bootstrap 3

2013-07-29 Thread VP
Can I simply swap with web2py's bootstrap files , expecting no technical 
glitches?

On Monday, July 29, 2013 9:01:47 AM UTC-5, Niphlod wrote:
>
> just to inform everybody that 3.0 is coming out 
> http://twitter.github.io/bootstrap/
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.