[web2py] Re: Bootstrap is really killing web2py

2014-07-27 Thread lyn2py
+1 On Sunday, July 27, 2014 6:41:24 AM UTC+8, sasogeek wrote: So... I'm not really sure what this whole conversation is about, as to whether it's an issue of web2py coming with bs2 by default or some difficulty in implementing bs3. I use bs3 just fine in my web2py apps and really haven't

[web2py] Creating a mobile friendly site -- How?

2014-07-27 Thread LoveWeb2py
Hello everyone, I'm working on www.handymancharles.com I'm using web2py for the site and I really love it! When I try to access the site on my mobile phone it looks horrible though. I know that if I create a default web2py app it is ready for mobile devices, but how could I make this current

[web2py] Re: Classic Error with Rocket - can't launch web2py any more

2014-07-27 Thread Massimo Di Pierro
Does this help? http://askubuntu.com/questions/135573/gconf-error-no-d-bus-daemon-running-how-to-reinstall-or-fix On Saturday, 26 July 2014 03:44:06 UTC-5, Dansant vzw wrote: I finally tried it and received the following message: web2py Web Framework Created by Massimo Di Pierro, Copyright

[web2py] Re: Creating a mobile friendly site -- How?

2014-07-27 Thread Massimo Di Pierro
It looks horrible about of the CSS that you use. Your divs have a fixed width and are not fluid. try rewrite it using twitter bootstrap or semantic-ui. On Sunday, 27 July 2014 10:34:17 UTC-5, LoveWeb2py wrote: Hello everyone, I'm working on www.handymancharles.com I'm using web2py for the

[web2py] Re: pre-populating the form in custom form

2014-07-27 Thread Massimo Di Pierro
db.table.field.default = 'value' On Thursday, 24 July 2014 11:02:23 UTC-5, Luis Garcia wrote: Hi! I am working with web2py and I am trying to pre-populate a form. In normal circumstances I do form.vars.field = value. But now, I am working with a custom form, and I realized that this does

[web2py] Re: Help! Invalid request when the url has special characters in it. e.g. - abcd%2Bfdf.jpg

2014-07-27 Thread Massimo Di Pierro
web2py does not like these urls: www.somedomain.com/abcd%2Bfdf.jpg http://www.google.com/url?q=http%3A%2F%2Fwww.somedomain.com%2Fabcd%252Bfdf.jpgsa=Dsntz=1usg=AFQjCNGhIM-oma8uJzKUwhBvqLi9CuobUQ The easiest solution is to change the file name. of you can try this: 1) in default.py define def

[web2py] Re: Bootstrap MENU (li_class)

2014-07-27 Thread Massimo Di Pierro
You can make your menu to contain links: response.menu = [('name',None,A('name',_href=URL('index'),_class=btn)),] On Thursday, 24 July 2014 12:26:51 UTC-5, Louis Amon wrote: I'm trying to build a MENU styled with Boostrap. I'd like my li items to have the class btn. How can I do that

[web2py] Re: What can cause some of my extra fields to be missing from auth.user?

2014-07-27 Thread Massimo Di Pierro
The computed fields are missing if computation fails. Try pass a function to compute=myfunc and use a try except within the function to determine if the function is being called and if it fails. Normally it fails silently if a parameter required for the computation is missing. On Thursday, 24

[web2py] Re: GAE Python Dev Server won't serve static assets on Windows - MIME type error

2014-07-27 Thread Massimo Di Pierro
This appears to be a bug in the windows SDK: https://code.google.com/p/googleappengine/issues/detail?id=11001 Your workaround only works for the welcome static folder structure but it is not general. On Friday, 25 July 2014 17:21:14 UTC-5, Russ King wrote: It appears that this issue will

Re: [web2py] Re: Creating a mobile friendly site -- How?

2014-07-27 Thread Austin Taylor
Thanks, Massimo. I'll give that a try. Would it be possible to just have a mobile site and redirect the user based on their agent string? On Sun, Jul 27, 2014 at 12:00 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: It looks horrible about of the CSS that you use. Your divs have a

[web2py] Re: Help building a query to use in SQLFORM.grid

2014-07-27 Thread Massimo Di Pierro
First of all I would recommend that you do not call your table items but item since db.items is a method. Also value is a reserver keyword in SQL so call the Field val. What you want to do is discussed here:

Re: [web2py] Re: Creating a mobile friendly site -- How?

2014-07-27 Thread Marco Mansilla
I guess you could check if the browser is mobile or not, and based on that apply a different css style to the site. Still it would be easier go with Massimo's suggestion. Marco. Thanks, Massimo. I'll give that a try. Would it be possible to just have a mobile site and redirect the user based

[web2py] Re: What can cause some of my extra fields to be missing from auth.user?

2014-07-27 Thread Anthony
He's saying the value is there when viewing the record via db.auth_user[auth.user_id] (so it has been computed) but it doesn't show up in auth.user. On Sunday, July 27, 2014 12:17:09 PM UTC-4, Massimo Di Pierro wrote: The computed fields are missing if computation fails. Try pass a function

[web2py] Re: GAE Python Dev Server won't serve static assets on Windows - MIME type error

2014-07-27 Thread James Awford
if using Python 2.7.7 then it is probably the mime type regression, move to 2.7.8 or backwards. On Saturday, July 26, 2014 12:21:14 AM UTC+2, Russ King wrote: It appears that this issue will affect web2py on windows development and basically all the css files get ignored so its rather

[web2py] Re: What can cause some of my extra fields to be missing from auth.user?

2014-07-27 Thread Massimo Di Pierro
This works for me: from gluon.tools import Auth db = DAL() auth = Auth(db) auth.settings.extra_fields['auth_user'] = [Field('test',compute=lambda row: row.email)] auth.define_tables() db.auth_user.insert(email='massimo.dipie...@gmail.com',password=CRYPT()('test')[0]) 1L user =

[web2py] where did created_by fields go?

2014-07-27 Thread Alex Glaros
signature fields such as created_by have disappeared in db.py, setting is: db._common_fields.append(auth.signature) how do I get signature fields back? thanks Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: GAE Python Dev Server won't serve static assets on Windows - MIME type error

2014-07-27 Thread Russ King
Many thanks python 2.7.8 fixed as you suggested. Russ On Sunday, 27 July 2014 18:09:14 UTC+1, James Awford wrote: if using Python 2.7.7 then it is probably the mime type regression, move to 2.7.8 or backwards. On Saturday, July 26, 2014 12:21:14 AM UTC+2, Russ King wrote: It appears

[web2py] Re: How to prevent interactive shell from 303 error with redirect in model file.

2014-07-27 Thread Mark Li
Thanks a lot, Anthony! I was not aware of request.global_settings.cmd_options, and yes it works in differentiating between the http request and shell. I've posted up a ticket for this as well: https://code.google.com/p/web2py/issues/detail?id=1957 On Saturday, July 26, 2014 8:27:48 PM UTC-7,

[web2py] Re: where did created_by fields go?

2014-07-27 Thread Massimo Di Pierro
I do not understand. When did they disappear? How did you make them disappear? On Sunday, 27 July 2014 16:03:48 UTC-5, Alex Glaros wrote: signature fields such as created_by have disappeared in db.py, setting is: db._common_fields.append(auth.signature) how do I get signature fields back?

[web2py] Re: Bootstrap is really killing web2py

2014-07-27 Thread Moustafa Mahmoud
That would be really Great, Also It will be a great Idea to have Web2py Power decoupled from any Front End Framework, even as a separate project . On Wednesday, July 23, 2014 9:53:17 AM UTC+2, Massimo Di Pierro wrote: we should have a new web2py version by mid August, including bs3. On