[web2py] Re: URL of an external website

2014-03-29 Thread villas
@Niphlod My point was simply this: if I set a='myapp' I would expect 'myapp' to replace the appname from r or anywhere else. This behaviour also caused difficulty for the OP. I just mentioned it in case it was a bug. Thanks for commenting. -- Resources: - http://web2py.com -

[web2py] Feature Request: IS_IN_SET with list:string field type

2014-03-29 Thread Jason Brower
I would love to have a list set with strings but I am able to define if they should be of a certain string type. Does this already exist and I did it wrong, or would this be a good idea to implement. BR, Jason Brower -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Feature Request: IS_IN_SET with list:string field type

2014-03-29 Thread Jason Brower
I forgot, this is my code: db.define_table('opening_time', Field('restaurant', 'reference restaurant'), Field('start_time', 'time'), Field('end_time', 'time'), Field('days', 'list:string') ) db.opening_time.days.requires = IS_IN_SET(('Monday', 'Tuesday',

[web2py] Re: Feature Request: IS_IN_SET with list:string field type

2014-03-29 Thread Niphlod
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Validators multiple=True ... On Saturday, March 29, 2014 1:51:35 PM UTC+1, Encompass solutions wrote: I forgot, this is my code: db.define_table('opening_time', Field('restaurant', 'reference restaurant'),

[web2py] Dynamically Creating a Form

2014-03-29 Thread horridohobbyist
Is there a way for me to dynamically add form elements, such as INPUT fields or SELECT fields, to a form? I'm not sure how to do this. I'd like to add these elements only under certain conditions. Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Dynamically Creating a Form

2014-03-29 Thread Tim Richardson
FORMs are just HTML helpers, so you manipulate them after creating them. You can therefore just treat them like python lists, but there is functionality which may be more helpful: http://web2py.com/books/default/chapter/29/05/the-views#Server-side-DOM-and-parsing On Sunday, 30 March 2014

Re: [web2py] Re: URL of an external website

2014-03-29 Thread Jonathan Lundell
On 29 Mar 2014, at 5:04 AM, villas villa...@gmail.com wrote: My point was simply this: if I set a='myapp' I would expect 'myapp' to replace the appname from r or anywhere else. This behaviour also caused difficulty for the OP. I just mentioned it in case it was a bug. Thanks for

[web2py] Problems with login_bare

2014-03-29 Thread ninni . iovino
Dear users, I'm writing because i have a problem with function login_bare. I'm developing a mobile app and data are shared by json i'm using something like this response.view = 'generic.json' import gluon.contrib.simplejson, collections json_data = request.body.read()

[web2py] Re: Installation Error Windows Vista Home

2014-03-29 Thread egigi
Here #41 the workaround / solution: http://code.google.com/p/web2py/issues/detail?id=1809 Il giorno venerdì 28 marzo 2014 16:26:27 UTC+1, egigi ha scritto: Could someone help me about this error? I'm trying to install the framework just downloaded but something doesn't work fine:

[web2py] sending serial data from web2py

2014-03-29 Thread Jayesh Adhikari
Iam a newbie, I just wanted to know if I can make use of web2py to create login Send sms by clicking a button on web2py with gsm modem attached to same computer recieve sms store sms details in database? Thanks in advance! -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Keep menu floating on top

2014-03-29 Thread Ariya Owam-aram
In layout.html add class: navbar-fixed-top !-- Navbar == -- div class=navbar navbar-inverse navbar-fixed-top div class=flash{{=response.flash or ''}}/div div class=navbar-inner div class=container-full button

[web2py] Re: New Windows Vista Install problem

2014-03-29 Thread egigi
Il giorno venerdì 28 marzo 2014 19:35:51 UTC+1, Dave S ha scritto: On Thursday, March 27, 2014 2:41:14 PM UTC-7, User wrote: Did you install web2py source version or web2py_win.zip? What python version are you using? And when you run it, what are you doing specifically? On

[web2py] handbook, Configuring layout

2014-03-29 Thread Frank
Hi, I’m too newbie to know if this is a typo or an error but, here  http://web2py.com/books/default/chapter/29/03/overview#Configuring-the-layout when Massimo writes “(…) In fact, the static/base.css stylesheet is well documented and described in Chapter 5 (…), I can’t find any reference to this

[web2py] Web Editor Blank Screen

2014-03-29 Thread James Ryan
Hi guys, Having an issue with the web editor. Other's have experienced this problem before with no resolution: https://groups.google.com/forum/#!topic/web2py/fIuUAqdSieQ https://groups.google.com/forum/#!topic/web2py/SxYJX90zszY http://comments.gmane.org/gmane.comp.python.web2py/120843 I'm

Re: [web2py] sending serial data from web2py

2014-03-29 Thread António Ramos
pyserial maybe? 2014-03-29 5:01 GMT+00:00 Jayesh Adhikari jayeshadhik...@gmail.com: Iam a newbie, I just wanted to know if I can make use of web2py to create login Send sms by clicking a button on web2py with gsm modem attached to same computer recieve sms store sms details in database?

[web2py] Get text portion of IS_IN_SET when using as a dict

2014-03-29 Thread Jim S
I have this field in my table: Field('exceed_by', length=1, requires=IS_IN_SET({'P':'Percentage', 'A':'Amount'})), In my controller code I want to get the label for my field, as in record = db.table_name(1) print record.exceed_by I want it to print 'Percentage' or 'Amount' depending on

[web2py] Re: New Windows Vista Install problem

2014-03-29 Thread Massimo Di Pierro
Can you please try the latest nightly build? http://web2py.com/examples/static/nightly/web2py_win.zip On Friday, 28 March 2014 14:06:37 UTC-5, egigi wrote: Il giorno venerdì 28 marzo 2014 19:35:51 UTC+1, Dave S ha scritto: On Thursday, March 27, 2014 2:41:14 PM UTC-7, User wrote: Did

[web2py] json and URL

2014-03-29 Thread Martin Weissenboeck
Let's say I have URL(f=myfunction, vars=dict(x=1)) or v = {f:myfunction, vars:{x:1}} URL(**v) That works fine. Now I do j = json.dumps(v) I store j in Field(url, requires=IS_JSON()) Now I read this field and call URL(**fieldvalue). I get an error: type

[web2py] Re: sending serial data from web2py

2014-03-29 Thread 黄祥
had you already read this chapter? http://web2py.com/books/default/chapter/29/08/emails-and-sms#Sending-SMS-messages best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] web2py and python3

2014-03-29 Thread Shawn McElroy
I am curious how much interest has been garnered for python 3 support. I have read about people askign about it for quite some time. And have seen that it may very well be a different project all together (web3py ?). Python 3 seems to really have picked up a lot more in the last couple years.