Re: [web2py] Re: Form input prolem

2014-01-23 Thread Marin Pranjić
INPUT(_name='password', _type='password') because INPUT(_password='password') is a nonsense. On Wed, Jan 22, 2014 at 8:14 PM, Lucas Schreiber lucas.schreiber.pri...@gmail.com wrote: Hi, i thought the form worked good, but unfortunally i was wrong. name = form.vars.name contains the data

[web2py] Re: error creating table using sql server

2014-01-23 Thread Tim Richardson
Hi Stifan, what version of web2py are you using? And what platform are you running it on? Also, it may be interesting to know what version of mssql you are using. On Thursday, 23 January 2014 11:53:03 UTC+11, 黄祥 wrote: hello folks, is there any adjustment for table when change database

[web2py] Re: error creating table using sql server

2014-01-23 Thread 黄祥
hi tim, i'm running on windows 7 32 bit, with web2py 2.8.2 and sql server express 2012 32 bit with advance service. the application and database is fresh (no data exists and for application create new and copy paste the files). best regards, stifan -- Resources: - http://web2py.com -

[web2py] Web2py License

2014-01-23 Thread John Catalano
We are in an opensource shy team that is very concerned about licensing. I see that the Web2py license is LGPL3, but does Web2py carry any other license implications such as GPL, GPL2 in it's parts? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Web2py License

2014-01-23 Thread Alan Etkin
We are in an opensource shy team that is very concerned about licensing. I see that the Web2py license is LGPL3, but does Web2py carry any other license implications such as GPL, GPL2 in it's parts? Given that there is contributed code included with the default package, and they have

[web2py] good eBooks web2py for beginners?

2014-01-23 Thread Cristiano Araujo
hello world, can u give me reference about some good books for web2py development? -- 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

[web2py] Re: Weird problems generating menu from database

2014-01-23 Thread web2pygroup
After disabling the key constraints none of those errors about it have appeared. I am grateful for the assistance and will return it anyway I can. I will post a summary here for anyone attempting this also. Thanks a million! On Wednesday, January 22, 2014 12:03:26 PM UTC-6, web2pygroup

[web2py] Re: good eBooks web2py for beginners?

2014-01-23 Thread Paolo Valleri
have you already checked http://web2py.com/book ? while a few how-to are published on web2pyslices.com regards Paolo On Thursday, January 23, 2014 1:15:56 PM UTC+1, Cristiano Araujo wrote: hello world, can u give me reference about some good books for web2py development? -- Resources: -

[web2py] Re: How to change SQLFORM values after submission and then show the form again?

2014-01-23 Thread Horst Horst
The controller is pretty lengthy, find a stripped-down version below. Yes, I'm using several custom buttons which submit the form via JS, there's a Save, a Save As, and a Translate button, identified by a hidden, JS-generated form variable. The Translate button translates some form content

[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread LightDot
AFAIK, the server name should be mysql.server, not username.pythonanywhere.com. The rest seems correct, including the username$default for the db name, which might seem odd to some. BTW, localhost is often used for a server name on various hosting providers, meaning that you are making a local

[web2py] Re: good eBooks web2py for beginners?

2014-01-23 Thread villas
This is good... http://killer-web-development.com/ -- 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

[web2py] Re: forgot password not working anymore

2014-01-23 Thread Bastiaan van der Veen
Still not working for me, the forgot password form behaves exactly the same as before, the forgot username is fully functional Op woensdag 15 januari 2014 21:01:04 UTC+1 schreef pa...@cancamusa.net: I have the same problem, and it doesn't work remotely. Just for reference, I saw it is

[web2py] Re: How to change SQLFORM values after submission and then show the form again?

2014-01-23 Thread Anthony
One question -- in case the translate button is pressed, do you need to call .validate and run the onvalidation function, or is validation unnecessary in that case (if the latter, you can just move all the translate logic to before validation). Anthony On Thursday, January 23, 2014 8:01:54 AM

[web2py] Baffling Problem with Email Verification

2014-01-23 Thread horridohobbyist
I'm using @auth.requires_login() to have a user register himself. I've modified the code in db.py to: mail=auth.settings.mailer mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = 'drsommers4stressrel...@gmail.com' mail.settings.login = 'drsommers4stressrelief:password' I got

[web2py] Re: web2py fails when mysql tables already exist

2014-01-23 Thread NeoToren
Had this problem deploying MySQL and the W2P recipe in the book: Migration problems can also be fixed for all tables at once: db = DAL(...,fake_migrate_all=True) Solved it immediately ! On Thursday, January 12, 2012 12:29:29 AM UTC-5, Lewis wrote: web2py has failed when the authuser table

[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread NeoToren
*Thank you LightDot !* Your answer solved the problem immediately and elegantly: When deploying to W2P with MySQL to PythonAnywhere = PA (and as LightDot mentioned - possibly other hosting sites as well) - the DAL db connection definition should be (*Italic* is LightDot elegant suggestion):

[web2py] Re: error creating table using sql server

2014-01-23 Thread Niphlod
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Gotchas Start reading at *MSSQL has problems with circular references in tables that have ONDELETE CASCADE* On Thursday, January 23, 2014 12:18:58 PM UTC+1, 黄祥 wrote: hi tim, i'm running on windows 7 32 bit,

[web2py] Importing Data / Force Record ID #s To Remain As Specified in the CSV

2014-01-23 Thread Mark Billion
I know that this is a dumb question, but I have a database with static data entry ids 17 to 100. When I download the CSV, it has the x.id field and the corresponding number. However, when I create a new database and upload the data using the db admin, it automatically renumbers these entries.

[web2py] Bootstrap 3 custom checkbox widget div/div

2014-01-23 Thread Annet
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)

[web2py] A correction needed in the web2py book

2014-01-23 Thread Wei Wang
Hi, There is an error in this section of the Reference Manual book: http://web2py.com/books/default/chapter/29/04/the-core#response Specifically, this: response.stream(file, chunk_size, request=request, attachment=False, filename=None, headers=None) does not match the function signature in

[web2py] How to reverse proxy with web2py?

2014-01-23 Thread Wei Wang
Hi, I am writing a web2py application, that pulls HTML output from another web app (specifically, Splunk web, if anyone cares). Here is the function that I have arrived at the moment: import requests as http def splunk(): kwargs = dict(verify=False) svc =

[web2py] Re: Bootstrap 3 custom checkbox widget div/div

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

[web2py] Re: error creating table using sql server

2014-01-23 Thread 黄祥
got it, thank you so much for the reference niphlod best regards, stifan -- 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

Re: [web2py] A correction needed in the web2py book

2014-01-23 Thread Richard Vézina
If you are familiar with Github, you can commit the change here : https://github.com/mdipierro/web2py-book :) Richard On Thu, Jan 23, 2014 at 1:48 PM, Wei Wang ww9riv...@gmail.com wrote: Hi, There is an error in this section of the Reference Manual book:

[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread 黄祥
cool, why not add this configuration into web2py book? best regards, stifan -- 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

[web2py] Re: forgot password not working anymore

2014-01-23 Thread pang
If there's no error message it may be something different. Please copy the error trace, and tell us your web2py version number. El jueves, 23 de enero de 2014 16:09:44 UTC+1, Bastiaan van der Veen escribió: Still not working for me, the forgot password form behaves exactly the same as

Re: [web2py] A correction needed in the web2py book

2014-01-23 Thread Wei Wang
Thanks. I didn't know the book is in Github. I forked it and edited the file, which is here: g...@github.com:ww9rivers/web2py-book.git -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Baffling Problem with Email Verification

2014-01-23 Thread Jaime Sempere
This could be related: https://groups.google.com/forum/#!searchin/web2py/gmail/web2py/CU_1qWYixjI/A2IuDsRDJ_oJ (Although you said that email works in another app which is weird) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Baffling Problem with Email Verification

2014-01-23 Thread horridohobbyist
Sorry, my bad. I failed to see some lines in db.py that negated my code fragment. On Thursday, 23 January 2014 17:22:07 UTC-5, Jaime Sempere wrote: This could be related: https://groups.google.com/forum/#!searchin/web2py/gmail/web2py/CU_1qWYixjI/A2IuDsRDJ_oJ (Although you said that email

Re: [web2py] A correction needed in the web2py book

2014-01-23 Thread Richard Vézina
Make a pull request!! :) Richard On Thu, Jan 23, 2014 at 4:28 PM, Wei Wang ww9riv...@gmail.com wrote: Thanks. I didn't know the book is in Github. I forked it and edited the file, which is here: g...@github.com: ww9rivers/web2py-book.git -- Resources: - http://web2py.com -

[web2py] Re: foreign key reference and not null mutually exclusive. by design, or a bug?

2014-01-23 Thread User
Thanks. Here is the issue in case anyone is interested: http://code.google.com/p/web2py/issues/detail?id=1395 On Wednesday, January 22, 2014 3:39:56 PM UTC-5, Anthony wrote: This is a bug, and an issue has been created. Yes, you should be able to make the change directly in the database.

[web2py] Debugging with apache and mod_wsgi

2014-01-23 Thread Colin Lee
I am running apache2 under ubuntu 12.04 with mod_wsgi. I have a single WSGI Daemon which both the *:80 and *:443 virtual servers use. I would like to be able to debug applications but apache hangs and needs to be restarted if I call a controller function with a breakpoint in it. It's basically

[web2py] How much can be cached?

2014-01-23 Thread Jaime Sempere
I would like to cache every row of my database table, in order to be able to do updates based in the key query. This would be my table: channel :string (Unique) id_playing: integer tstart: integer duration:integer order: integer The querys are like