[web2py] Jessica McKellar talking about windows and the future of Python

2013-09-12 Thread Bruno Rocha
Hi, I found this talk interesting http://www.youtube.com/watch?v=d1a4Jbjc-vU&feature=share Jessica McKeller talks about how "windows OS" is important to the future of Python, and how it is complicated to use Python on windows nowadays. And I think that *web2py is the only framework that does a g

[web2py] Re: Scheduler as upstart job

2013-09-12 Thread ajith c t
Thank you for the response, will try everything you said and post it if every thing goes correct On Thursday, 12 September 2013 00:34:31 UTC+5:30, Niphlod wrote: > > > > On Wednesday, September 11, 2013 5:44:00 PM UTC+2, ajith c t wrote: >> >> sorry I am not executing the code in the load balance

[web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-12 Thread Niphlod
usually this is due to gluon not being in sys.path directly. BTW: we should adopt something standard in imports too throughout all the code. Either we do from gluon.module import something or from module import something I vote for the 1st option. Il giorno giovedì 12 settembre 2013 03:52:18

[web2py] Table field isn't set to be unique, but results in error "title is not unique"

2013-09-12 Thread Andreas Wienes
Hi, I got a problem with one of my database tables. The field 'title' isn't set to be unique. But inserting a row using filter_fields() ends with error "title is not unique". db.define_table('task', Field('title', unique=False), Field('description', 'text', notnull=True), format='%(title

[web2py] Re: Table field isn't set to be unique, but results in error "title is not unique"

2013-09-12 Thread rochacbruno
Your "title" field was unique in the past, so you changed it to non-unique in model definition? If so, the sad news is that SQLite does not support the "ALTER TABLE" command for columns, it means once defined, the column attributes cant be changed. The only solution I know is to install an app

[web2py] Ajax via onclick or http via redirect for link tracking of external links

2013-09-12 Thread Tim Richardson
Not strictly a web2py question. We have an app which serves embedded videos to identified, logged in users. The videos are hosted on vimeo. We'd like to know if a user clicks on a link, and record that in a table. I could send the link destination back to a web2py controller function which woul

Re: [web2py] Ajax via onclick or http via redirect for link tracking of external links

2013-09-12 Thread Vinicius Assef
I prefer the 1st one. On Thu, Sep 12, 2013 at 8:58 AM, Tim Richardson wrote: > Not strictly a web2py question. > We have an app which serves embedded videos to identified, logged in users. > The videos are hosted on vimeo. We'd like to know if a user clicks on a > link, and record that in a table

[web2py] Re: Table field isn't set to be unique, but results in error "title is not unique"

2013-09-12 Thread Andreas Wienes
Thanks a lot Bruno. That worked for me. -- 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

[web2py] Re: Jessica McKellar talking about windows and the future of Python

2013-09-12 Thread Massimo Di Pierro
:-) On Thursday, 12 September 2013 02:00:39 UTC-5, rochacbruno wrote: > > Hi, > > I found this talk interesting > http://www.youtube.com/watch?v=d1a4Jbjc-vU&feature=share > > Jessica McKeller talks about how "windows OS" is important to the future > of Python, and how it is complicated to use Py

[web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-12 Thread Massimo Di Pierro
I agree. Less ambiguitiy On Thursday, 12 September 2013 02:18:32 UTC-5, Niphlod wrote: > > usually this is due to gluon not being in sys.path directly. > > BTW: we should adopt something standard in imports too throughout all the > code. Either we do > from gluon.module import something > or >

[web2py] Re: conditional in smartgrid that refer to the boolean type of field

2013-09-12 Thread Niphlod
db.invoice_header.is_authorized is a Field. it's not a record fetched from the db... you'd likely want to check if any record of the table has an is_authorized field thjat carries True as a value, not the field definition ^_^ tl;dr: if you have a bunch of rows in that table and users should be

[web2py] Raspberry Pi and web2py: No 19x.16x.xxx.xx option

2013-09-12 Thread Zachary Burrows
Hello all, I have web2py installed on my Raspberry Pi. I have downloaded the source code from the website as well as trying to follow this instructable: http://www.instructables.com/id/Raspberry-Pi-GPIO-home-automation/ Neither of these install methods include the option to launch a public se

[web2py] Re: Raspberry Pi and web2py: No 19x.16x.xxx.xx option

2013-09-12 Thread Niphlod
what ip address gets assigned to the raspberry ? (see the output of ifconfig). No matter what, you can always run web2py using 0.0.0.0, that means "accept connections listening on all ip addresses" On Thursday, September 12, 2013 11:28:39 PM UTC+2, Zachary Burrows wrote: > > Hello all, > > I ha

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-12 Thread Niphlod
so let's go for all imports done prefixing them with gluon or the other one ? I'll put it in the roadmap ^_^ On Thursday, September 12, 2013 11:26:17 PM UTC+2, Michele Comitini wrote: > > +1 > > > > 2013/9/12 Massimo Di Pierro > > >> I agree. Less ambiguitiy >> >> >> On Thursday, 12 September 201

[web2py] Re: Address format for all countries

2013-09-12 Thread Alex Glaros
a programmer is working to assist me, so cancel my request for help. let me know if interested in seeing code when done thanks, Alex Glaros On Wednesday, September 11, 2013 2:39:02 PM UTC-7, Alex Glaros wrote: > > I’d like help in building a universal address function for all countries. > I’

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-12 Thread Michele Comitini
+1 2013/9/12 Massimo Di Pierro > I agree. Less ambiguitiy > > > On Thursday, 12 September 2013 02:18:32 UTC-5, Niphlod wrote: >> >> usually this is due to gluon not being in sys.path directly. >> >> BTW: we should adopt something standard in imports too throughout all >> the code. Either we d

[web2py] Re: Raspberry Pi and web2py: No 19x.16x.xxx.xx option

2013-09-12 Thread Zachary Burrows
I will check ifconfig and let you know what IP it gets assigned. I assumed that I needed to log on to the same IP address that is displayed in my browser on the Pi. Is this not the case? I have tried the 0.0.0.0 this way with no luck. -Zach On Thursday, September 12, 2013 2:33:11 PM UTC-7, N

[web2py] web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-12 Thread Massimo Di Pierro
Web2py 2.6.1 is finally OUT. It needs some more testing. READ BELOW BEFORE UPGRADING Attention all users: For pre 2.6 applications to work with web2py >=2.6, you must copy static/js/web2py.js, controllers/appadmin.py, and views/appadmin.html from the welcome app to your own apps (all of th

[web2py] "Are you sure" prompt

2013-09-12 Thread Ruud Schroen
Hi, I'm currently building my own blog system, and i have a function which allows a post to be deleted by its poster. But i would like web2py to prompt a windows first saying "Are you sure?" When you click yes it should delete the item, if you click no.. then nothing happens How would i go ab

[web2py] Re: conditional in smartgrid that refer to the boolean type of field

2013-09-12 Thread 黄祥
thank you so much for your detail explaination, niphlod. it works well, now. e.g. def __grid_1(header, detail): is_authorized = lambda row : row.is_authorized == True is_not_authorized = lambda row : row.is_authorized == False if is_not_authorized: grid = SQLFORM.smartgrid(header, linked_tables=[d

Re: [web2py] How to pass web2py view python variable into javascript

2013-09-12 Thread sonu kumar
Hi Jason, Thanks for reply. But I don't want pass controller variable into view javascript. I have python variable defined in view itself and now want to pass this variable to javascript. here is code: {{x = [86, 2, 31, 153, 192, 245, 435, 459]}} Now I want to call this x variable in javascript

[web2py] Re: "Are you sure" prompt

2013-09-12 Thread Massimo Di Pierro
def yourpage(): form = SQLFORM.confirm('are you sure?') if form.accepted: redirect(.) return dict(form=form) On Thursday, 12 September 2013 15:47:18 UTC-5, Ruud Schroen wrote: > > Hi, > > I'm currently building my own blog system, and i have a function which > allows a post to be

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-12 Thread Michele Comitini
+1 Thank you Massimo! Il giorno venerdì 13 settembre 2013 00:27:37 UTC+2, Massimo Di Pierro ha scritto: > > Web2py 2.6.1 is finally OUT. It needs some more testing. > > READ BELOW BEFORE UPGRADING > > Attention all users: For pre 2.6 applications to work with web2py > >=2.6, you must copy

[web2py] simple controller question

2013-09-12 Thread Alex Glaros
Anybody see anything wrong with the second controller below that gets called by the first one? The error is that no data gets written to table IdeaComment, but if I substitute "smartgrid" for "factory", all suggestions instead of just the one selected in the first controller get displayed, and

Re: [web2py] How to pass web2py view python variable into javascript

2013-09-12 Thread rochacbruno
in the view.html var x = {{="[86, 2, 31, 153, 192, 245, 435, 459]"}}; just call the x in your java Script window context now! On Thursday, September 12, 2013 6:54:00 PM UTC-3, sonu kumar wrote: > > Hi Jason, > Thanks for reply. > But I don't want pass controller variable into view javascript.

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-12 Thread Massimo Di Pierro
Thank you. The majority of the improvements in this version come from you (Michele) and niphlod (Simone). Massimo On Thursday, 12 September 2013 18:53:50 UTC-5, Michele Comitini wrote: > > +1 > > Thank you Massimo! > > > Il giorno venerdì 13 settembre 2013 00:27:37 UTC+2, Massimo Di Pierro ha >

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-12 Thread Roberto Perdomo
Great news!. Thanks to everybody for do a better web2py every day. El sep 12, 2013 8:21 PM, "Massimo Di Pierro" escribió: > Thank you. The majority of the improvements in this version come from you > (Michele) and niphlod (Simone). > > Massimo > > On Thursday, 12 September 2013 18:53:50 UTC-5, M

[web2py] conditional in smartgrid that refer to the boolean type of field

2013-09-12 Thread 黄祥
hi, is it possible to have conditional in smartgrid that refer to the boolean type of field? e.g. *default.py* def invoice(): is_authorized = db.invoice_header.is_authorized==True # for testing, print the value in the html output if db.invoice_header.is_authorized==True: grid = SQLFORM.smartgri

[web2py] Re: All SOAPed up

2013-09-12 Thread Dave S
On Wednesday, August 21, 2013 11:58:36 AM UTC-7, Dave S wrote: > > One thing I haven't figured out yet is if web2py has logging of its > activity (startup, requests seen, etc) other than what I might record in my > app's DB. > > Finally looked a second time at Chapter 14, and found the httpserv

[web2py] Re: how can a form have a dynamic number of form fields based on dropdown list selection?

2013-09-12 Thread Dave S
On Monday, August 12, 2013 7:07:14 AM UTC-7, Michael Beller wrote: > > Update ... > > I found one problem: when I was dynamically adding form fields as html > elements, I wasn't adding them as field objects to the form object on the > postback so w2p didn't know about the fields for validation.

[web2py] Re: Address format for all countries

2013-09-12 Thread Carlos Zenteno
I would be interested in seeing the complete code when done. 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

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-12 Thread Massimo Di Pierro
And thanks to you Roberto, who also contributed with many patches! On Thursday, 12 September 2013 19:55:38 UTC-5, Roberto Perdomo wrote: > > Great news!. > > Thanks to everybody for do a better web2py every day. > El sep 12, 2013 8:21 PM, "Massimo Di Pierro" > > > escribió: > >> Thank you. The m

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-12 Thread Vinicius Assef
congrats, guys. It's becoming much better. On Fri, Sep 13, 2013 at 12:02 AM, Massimo Di Pierro wrote: > And thanks to you Roberto, who also contributed with many patches! > > > On Thursday, 12 September 2013 19:55:38 UTC-5, Roberto Perdomo wrote: >> >> Great news!. >> >> Thanks to everybody for