[web2py] Re: Stuck: 'thread._local' object has no attribute 'request'

2012-08-30 Thread Daniel Gonzalez
Sorry, I meant "model file" On Friday, August 31, 2012 8:54:24 AM UTC+2, Daniel Gonzalez wrote: > > python 2.7.2. Not in GAE. > I have several non-standard modules which my application uses, but the > problem is happening in the module file, which if I understand correctly is > one of the first

[web2py] Re: Issue rendering URL inside an A

2012-08-30 Thread Daniel Gonzalez
Version 2.0.3 (2012-08-31 00:31:48) stable On Friday, August 31, 2012 8:33:20 AM UTC+2, Massimo Di Pierro wrote: > > Sorry. Now I understand the issue. Yet I cannot reproduce it. I tried with > your code and from shell. I get: > > >>> print DIV(A('click > me',callback=URL('mycallback'),target="

[web2py] Re: Stuck: 'thread._local' object has no attribute 'request'

2012-08-30 Thread Daniel Gonzalez
python 2.7.2. Not in GAE. I have several non-standard modules which my application uses, but the problem is happening in the module file, which if I understand correctly is one of the first files to be loaded by web2py. On Friday, August 31, 2012 8:40:37 AM UTC+2, Massimo Di Pierro wrote: > > Al

[web2py] Re: Stuck: 'thread._local' object has no attribute 'request'

2012-08-30 Thread Massimo Di Pierro
All your problems in this and other threads are consistent with memory corruption. Which python version are you using? Are you using any module which is not in the standard library? I do not think this is a web2py issue although web2py may trigger it. On Friday, August 31, 2012 1:20:55 AM UTC-5,

[web2py] Re: Stuck: 'thread._local' object has no attribute 'request'

2012-08-30 Thread Massimo Di Pierro
Are you running on GAE? Can I see your app? On Friday, August 31, 2012 1:20:55 AM UTC-5, Daniel Gonzalez wrote: > > I am having trouble understanding what is happening here: > > 'thread._local' object has no attribute > 'request' > > Traceback (most recent call last): > File "/home/gonvaled/tm

[web2py] Re: Stuck: 'thread._local' object has no attribute 'request'

2012-08-30 Thread Massimo Di Pierro
Can you show use the file that contains request = curre On Friday, August 31, 2012 1:20:55 AM UTC-5, Daniel Gonzalez wrote: > > I am having trouble understanding what is happening here: > > 'thread._local' object has no attribute > 'request' > > Traceback (most recent call last): > File "/ho

[web2py] Re: Issue rendering URL inside an A

2012-08-30 Thread Massimo Di Pierro
Sorry. Now I understand the issue. Yet I cannot reproduce it. I tried with your code and from shell. I get: >>> print DIV(A('click me',callback=URL('mycallback'),target="me"),_id="me") click me The "#null" is correct. In your case the current URL is prepended. Not sure why. What web2py version?

[web2py] Re: Issue rendering URL inside an A

2012-08-30 Thread Daniel Gonzalez
Mmmm. Sure, I have no issues with the quotes. What about the#null at the end? This is the full rendered html: Testing error with URL and A http://localhost:8000/problem_A_URL/default/index#null"; onclick="ajax(' /problem_A_URL/default/mycallback',[],'me');return false">click me /problem_A_U

[web2py] IS_IN_DB limited to parentID==0

2012-08-30 Thread Annet
I defined the following table: db.define_table('nav', Field('name',length=32), ... Field('parentID','reference nav',requires=IS_IN_DB(db,'nav.id','%(name)s',zero=T('select a value' In the form I'd like to have a drop box which only contains the navs that have a parentID==0 I gu

[web2py] Stuck: 'thread._local' object has no attribute 'request'

2012-08-30 Thread Daniel Gonzalez
I am having trouble understanding what is happening here: 'thread._local' object has no attribute 'request' Traceback (most recent call last): File "/home/gonvaled/tmp/web2py/gluon/restricted.py", line 209, inrestricted exec ccode in environment File "/home/gonvaled/tmp/web2py/applicat

[web2py] Re: Issue rendering URL inside an A

2012-08-30 Thread Massimo Di Pierro
Daniel. That is not a problem. That is the correct behavior. Quotes within quotes must be escaped. On Friday, August 31, 2012 1:13:01 AM UTC-5, Daniel Gonzalez wrote: > > The problem is still there in Version 2.0.3 (2012-08-31 00:31:48) stable > You can reproduce it with the following minimal ap

[web2py] Re: Issue rendering URL inside an A

2012-08-30 Thread Daniel Gonzalez
The problem is still there in Version 2.0.3 (2012-08-31 00:31:48) stable You can reproduce it with the following minimal application: https://github.com/gonvaled/web2py-tests/tree/master/problem_A_URL On Thursday, August 30, 2012 10:13:11 PM UTC+2, Anthony wrote: > > I think the issue is not in th

Re: [web2py] Sites not working on http://web2py.com/poweredby

2012-08-30 Thread Jemes Hsu
I guess its better to have a section to showcase just a few high profile websites created using web2py, and the rest labelled clearly they are community driven. Just a suggestion. On Friday, August 31, 2012 1:50:55 PM UTC+8, rochacbruno wrote: > > 3 of them are hosted on my server. unfortunatell

[web2py] Re: Error running web2py in OS X Mountain Lion

2012-08-30 Thread Jemes Hsu
That's fast. Anyway I'm using the source now instead of app. Thanks On Friday, August 31, 2012 1:26:18 PM UTC+8, Massimo Di Pierro wrote: > > Should now be fixed. > > On Thursday, August 30, 2012 11:26:06 PM UTC-5, Jemes Hsu wrote: >> >> Just downloaded the Mac app package. The error when I run th

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Massimo Di Pierro
ace.js does that. Yes it is odd. I am not sure why. Also there is no flash because of the box that now flashes green. We may move from ace to codemirror. On Friday, 31 August 2012 00:42:14 UTC-5, Annet wrote: > > I am still having this issue: > > On Thursday, 30 August 2012 18:03:36 UTC+2, Annet

Re: [web2py] Sites not working on http://web2py.com/poweredby

2012-08-30 Thread Bruno Rocha
3 of them are hosted on my server. unfortunatelly I got problems migrating my VPS and I am working on this. Bruno Rocha http://rochacbruno.com.br mobile Em 31/08/2012 02:25, "Jemes Hsu" escreveu: --

[web2py] Re: Problem starting web2py (2.0.3) (No module named plural_rules)

2012-08-30 Thread Massimo Di Pierro
it is there now. On Friday, 31 August 2012 00:34:39 UTC-5, Daniel Gonzalez wrote: > > Hi there, > > Testing with: Version 2.0.3 (2012-08-31 00:11:28) stable > > I can not start web2py: > > Traceback (most recent call last): > File "web2py.py", line 18, in > import gluon.widget > File "/ho

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Annet
I am still having this issue: On Thursday, 30 August 2012 18:03:36 UTC+2, Annet wrote: > > > Please can you post a concrete example? >> > > In: > > Editing file "init/models/db.py" > > ... when I click the save button, normally a flash showed up in the > top-right corner: > > file saved on Thu

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Massimo Di Pierro
I just downloaded it myself, unziped and VERSION says 2.0.3. I am not sure what is wrong. try another clean download in its own folder. many sure you only have one web2py running. On Friday, 31 August 2012 00:00:32 UTC-5, Andrew W wrote: > > Still 2.0.2. > > On Friday, August 31, 2012 3:31:20 P

[web2py] Problem starting web2py (2.0.3) (No module named plural_rules)

2012-08-30 Thread Daniel Gonzalez
Hi there, Testing with: Version 2.0.3 (2012-08-31 00:11:28) stable I can not start web2py: Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget File "/home/gonvaled/tmp/web2py/gluon/__init__.py", line 15, in from globals import current File "/home/

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Michael Toomim
This is awesome! Thanks for the example! On Thursday, August 30, 2012 1:56:09 PM UTC-7, Anthony wrote: > > > > db.define_table('person', Field('name'), Field('email')) > db.define_table('dog', Field('name'), Field('owner', 'reference person')) > db.executesql([SQL code returning person.name and do

Re: [web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Massimo Di Pierro
Did you get it form github? I just added it now. Sorry. On Friday, August 31, 2012 12:21:20 AM UTC-5, rochacbruno wrote: > > Now I got this: > > bcr@vaiubuntu:~/projects/web2py203$ python web2py.py -a 1234 > Traceback (most recent call last): > File "web2py.py", line 18, in > import gluon.w

[web2py] Re: Error running web2py in OS X Mountain Lion

2012-08-30 Thread Massimo Di Pierro
Should now be fixed. On Thursday, August 30, 2012 11:26:06 PM UTC-5, Jemes Hsu wrote: > > Just downloaded the Mac app package. The error when I run the app: > > OSError: [Errno 20] Not a directory: > '~/web2py/web2py.app/Contents/Resources/lib/python2.5/site-packages.zip/gluon/contrib/rules' > >

[web2py] 2.02 examples won't open for editing: [Errno 2] No such file or directo

2012-08-30 Thread Adi
[Errno 2] No such file or directory: '/Users/adnan/web2py-branch9/applications/examples/languages' traceback: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "/Users/adnan/web2py-branch9/gluon/restricted.py", line 209, in restricted exec ccode in environme

[web2py] KeyError: 'index_name`' when upgrading to 2.0.2

2012-08-30 Thread Jim S
Traceback (most recent call last): File "C:\dev\web2py\gluon\restricted.py", line 209, in restricted exec ccode in environment File "C:/dev/web2py/applications/infocenter/models/db.py" , line 88, in auth.define_tabl

[web2py] Sites not working on http://web2py.com/poweredby

2012-08-30 Thread Jemes Hsu
http://animalsystem.com.br http://ourway.ir http://movu.ca http://www.miaudota.com.br http://todo.kz/web2py/ The above are some I found, I do not check all. I'm new to web2py, and I encounter the above in my first few click and this gives not good feeling about web2py. --

[web2py] Error running web2py in OS X Mountain Lion

2012-08-30 Thread Jemes Hsu
Just downloaded the Mac app package. The error when I run the app: OSError: [Errno 20] Not a directory: '~/web2py/web2py.app/Contents/Resources/lib/python2.5/site-packages.zip/gluon/contrib/rules' --

[web2py] Problem upgrading to 2.0.2 -KeyError: 'index_name`'

2012-08-30 Thread Jim S
Getting this traceback: Traceback (most recent call last): File "C:\dev\web2py\gluon\restricted.py", line 209, in restricted exec ccode in environment File "C:/dev/web2py/applications/infocenter/models/db.py" , line 88, in

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Juan Diego Romero González
The problem I have with the admin application comes from this import. from gluon.languages import (regex_language, read_possible_languages, lang_sampling, read_dict, write_dict, read_plural_dict, write_plural_di

[web2py] Re: Date format in CRUD forms

2012-08-30 Thread CrisP
Thank you that was really helpful. On Saturday, August 18, 2012 8:52:22 AM UTC-7, Simon Carr wrote: > > I have created a short video on how to change the default Ajax date format > in Web2Py. This in turn allows the Calendar widget to return what ever date > format you want. > > http://www.youtu

Re: [web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Bruno Rocha
Now I got this: bcr@vaiubuntu:~/projects/web2py203$ python web2py.py -a 1234 Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget File "/home/bcr/projects/web2py203/gluon/__init__.py", line 15, in from globals import current File "/home/bcr/projects/

Re: [web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Massimo Di Pierro
My bad. I think this is now fixed. please check it again. On Thursday, 30 August 2012 23:43:19 UTC-5, rochacbruno wrote: > > Reverted to old checkout and it worked again, so the passwd it not wrong.. > > On Fri, Aug 31, 2012 at 1:41 AM, Massimo Di Pierro > > > wrote: > >> I do not think this is

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-30 Thread Annet
Thanks for fixing the issue. > Fixed in trunk but you should not use Auth without auth.define_tables() > (that is really causing the problem). My auth_user table contains a field that references a table node, so I have to define the table node before defining the auth_ tables. Since I prefer

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Andrew
Still 2.0.2. On Friday, August 31, 2012 3:31:20 PM UTC+12, Massimo Di Pierro wrote: > > Can you please try again the windows binary and let me know if the problem > persists. > > On Thursday, 30 August 2012 21:13:18 UTC-5, Andrew wrote: >> >> Well, perhaps not. >> The Download page says 2.0.3, bu

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Ramkrishan Bhatt
Congtras all of you . Is CMS is also completed? On Thursday, 30 August 2012 09:11:34 UTC+5:30, Massimo Di Pierro wrote: > > After 5 months. It is done. This is the most waited and the most > feature-packed release. > > I am sure we'll find some corners that need to be ironed but it is > consider

Re: [web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Bruno Rocha
Reverted to old checkout and it worked again, so the passwd it not wrong.. On Fri, Aug 31, 2012 at 1:41 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I do not think this is related. Sure this worked before? Looks like > legitimate wrong password. > > > On Thursday, 30 August 2012 2

Re: [web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Massimo Di Pierro
I do not think this is related. Sure this worked before? Looks like legitimate wrong password. On Thursday, 30 August 2012 23:27:57 UTC-5, rochacbruno wrote: > > TICKET ID > > 127.0.0.1.2012-08-31.01-09-21.3e3284ec-20dd-4076-9a0b-889f72a85cf7 > Failure to connect, tried 5 times: > Traceback (mo

Re: [web2py] Cannot install on computer

2012-08-30 Thread Massimo Di Pierro
The web2py_win.zip should also work now. On Thursday, 30 August 2012 23:19:20 UTC-5, lukedc wrote: > > Nevermind, sir. I just tried it and it works. I just had to try is again, > using 7 zip, and it works. Thank you so much for your help. Both of you > sirs were very helpful. Thank you so much,

Re: [web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Bruno Rocha
TICKET ID 127.0.0.1.2012-08-31.01-09-21.3e3284ec-20dd-4076-9a0b-889f72a85cf7 Failure to connect, tried 5 times: Traceback (most recent call last): File "/home/bcr/projects/web2py21/gluon/dal.py", line 6722, in __init__ self._adapter = ADAPTERS[self._dbname](*args) File "/home/bcr/projects/web2py

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
Nevermind, sir. I just tried it and it works. I just had to try is again, using 7 zip, and it works. Thank you so much for your help. Both of you sirs were very helpful. Thank you so much, it was very nice of you. Have a good day,Luke On Thursday, August 30, 2012 10:58:32 PM UTC-5, Massimo Di

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
The error continues: from globals import current File "C:\Users\Luke\Downloads\web2pyy_src\web2py\gluon\globals.py", line 24, in Would you like more of the error? Thank you so much for your help, Luke On Thursday, August 30, 2012 11:03:16 PM UTC-5, lukedc wrote: > > The error continues: > >

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
The error continues: File "C:\users\downloads\web2py_src\web2py\gluon\_init__.py", line 15, in On Thursday, August 30, 2012 11:01:57 PM UTC-5, lukedc wrote: > > Hi Mr. Massimo, > > Thank you so much for your help again. I get: > > Traceback (most recentl call last): > File "web2py.py", line 18

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
Hi Mr. Massimo, Thank you so much for your help again. I get: Traceback (most recentl call last): File "web2py.py", line 18, in (module) import gluon.widget" Luke On Thursday, August 30, 2012 10:58:32 PM UTC-5, Massimo Di Pierro wrote: > > Thanks for being so patient. > This is not an error:

Re: [web2py] Cannot install on computer

2012-08-30 Thread Massimo Di Pierro
Thanks for being so patient. This is not an error: "No handlers could for found for logger "web2py" what error do you get after that? massimo On Thursday, 30 August 2012 22:53:07 UTC-5, lukedc wrote: > > Hi sir, > > Thank you so much. I have tried that, but it does not work. I says, "No > hand

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
Hi sir, Thank you so much. I have tried that, but it does not work. I says, "No handlers could for found for logger "web2py"" Then it gives an error. What should I do? Thank you so much for your time and help. it is very nice of you, Luke On Thursday, August 30, 2012 10:47:21 PM UTC-5, Massim

Re: [web2py] Cannot install on computer

2012-08-30 Thread Massimo Di Pierro
There is no installation. download web2py_src.py unzip web2py_src.py cd web2py C:/Python27/python.exe web2py.py you may be able to just click on web2py.py from the window. Not sure because I am not a window user. On Thursday, 30 August 2012 22:42:07 UTC-5, lukedc wrote: > > Ok thank you so

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
Ok thank you so much. I am trying the source code. Do you know where instructions for the source code is? Thank you so much sir, you are all very helpful. Luke On Thursday, August 30, 2012 10:33:18 PM UTC-5, Massimo Di Pierro wrote: > > We have a problem with the windows and osx builds. Please t

Re: [web2py] Cannot install on computer

2012-08-30 Thread Massimo Di Pierro
We have a problem with the windows and osx builds. Please try again. Worst case use the source version. If you have python installed it as easy as downloading, unzipping, and running web2py.py. On Thursday, 30 August 2012 22:31:08 UTC-5, lukedc wrote: > > Hi sir, > > Thank you so much for your

[web2py] Re: problem upgrading from 1.994 to latest version on mac os

2012-08-30 Thread Massimo Di Pierro
Can you please try again and tell me if the problem persists? On Thursday, 30 August 2012 21:15:09 UTC-5, greaneym wrote: > > I don't see any mac os upgrade or install instructions, so looked on the > group for posts related. Looks like all I need to do is > replace /Applications/web2py/web2py.

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Massimo Di Pierro
Can you please try again the windows binary and let me know if the problem persists. On Thursday, 30 August 2012 21:13:18 UTC-5, Andrew wrote: > > Well, perhaps not. > The Download page says 2.0.3, but when I start it says 2.0.2. in the app > ? Perhaps the windoes exe has not been updated. >

Re: [web2py] Cannot install on computer

2012-08-30 Thread lukedc
Hi sir, Thank you so much for your help. I have windows 7, the web2py is the latest, it is on the site. 2.0.3. I have python installed. I download the web2py, and get the folder. I then open the folder, and get the web2py.exe file, and double click on it. I just get the cmd screen real quick

[web2py] urgent mysql, postgresql, firebird, ... users.

2012-08-30 Thread Massimo Di Pierro
Can you please try trunk and make sure it does not break your apps? I have simplified the logic for driver but I am unable to test it on all available databases. I only tested on sqlite. --

[web2py] Please connect with paypal.

2012-08-30 Thread khwan
# db.py file # ## Global Variables definition # domain='www.sandbox.paypal.com' protocol='https://localhost/paypal' user=None passwd = None realm=None head

Re: [web2py] Re: How to call controller function upon onClick from html?

2012-08-30 Thread Amit
As I told you I have created my own custom html without extending layout.html. I am not sure how to load JQuery in that? Please check the whole html file in attachement once and suggest me how to support JQuery in the html. Regards, Amit On Thu, Aug 30, 2012 at 4:53 PM, Anthony wrote: > The qu

Re: [web2py] Re: relatively new to web2py, question about documentation

2012-08-30 Thread ian douglas
Excellent, thanks! On Aug 30, 2012 6:21 PM, "Massimo Di Pierro" wrote: > In the next 24 hours we will move the entire book to github. Most of the > new features will be documented over the week-end. I trust in less than one > month they will all be documented (mind some are experimental). This is

Re: [web2py] Re: How to turn retrieved rows into a SELECT?

2012-08-30 Thread lyn2py
I finally figured out how. Just remove user_signature=True and it works On Thursday, August 30, 2012 9:48:21 PM UTC+8, Richard wrote: > > Will try to do a dummy app ASAP. > > Richard > > On Wed, Aug 29, 2012 at 10:07 PM, lyn2py >wrote: > >> Ok noted on your points below. I would like to clarify.

[web2py] problem upgrading from 1.994 to latest version on mac os

2012-08-30 Thread greaneym
I don't see any mac os upgrade or install instructions, so looked on the group for posts related. Looks like all I need to do is replace /Applications/web2py/web2py.app with the new version? I saved the old version and also have backups. Something is not right. Tried the download twice. Bot

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Andrew
Well, perhaps not. The Download page says 2.0.3, but when I start it says 2.0.2. in the app ? Perhaps the windoes exe has not been updated. On Friday, August 31, 2012 2:09:29 PM UTC+12, Andrew wrote: > > The Issue is still there in 2.0.3 > > On Thursday, August 30, 2012 11:40:07 PM UTC+12, S

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Andrew
The Issue is still there in 2.0.3 On Thursday, August 30, 2012 11:40:07 PM UTC+12, Sridhar wrote: > > Hi Team, > > Thanks a ton for the new features and improvements! > > I'm just getting started and was trying to run web2py.exe on Windows 7 > after downloading it from > http://www.web2py.com/e

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Massimo Di Pierro
:-) On Thursday, 30 August 2012 17:43:16 UTC-5, Mike Girard wrote: > > This seems like a good place to say that leaving php/Drupal for > Python/web2py has been like getting out of jail. This is great software > with a supernaturally patient and helpful community. > > On Wednesday, August 29, 20

[web2py] Re: Firebird - accessing DB leads to a ticket

2012-08-30 Thread Massimo Di Pierro
Please check trunk. On Thursday, 30 August 2012 19:27:23 UTC-5, villas wrote: > > With trunk I now get this: > Traceback (most recent call last): > File "C:\Users\David\web2py\gluon\dal.py", line 6726, in __init__ > self._adapter = ADAPTERS[self._dbname](*args) > File "C:\Users\David\web2p

[web2py] Re: relatively new to web2py, question about documentation

2012-08-30 Thread Massimo Di Pierro
In the next 24 hours we will move the entire book to github. Most of the new features will be documented over the week-end. I trust in less than one month they will all be documented (mind some are experimental). This is the next priority. On Thursday, 30 August 2012 18:29:13 UTC-5, ian douglas

Re: [web2py] Re: KeyError: 'index_name`' when upgrading to 2.0.3

2012-08-30 Thread Massimo Di Pierro
Can you check if this works now with trunk? On Thursday, 30 August 2012 18:05:34 UTC-5, Jim S wrote: > > Wow, I'm really losing it. I'm referring to line number 726 instead of > 727 in C:\dev\web2py\gluon\dal.py in create_table. > > Sorry for the sloppy reporting. > > -Jim > > > On Thu, Aug 30,

Re: [web2py] Cannot install on computer

2012-08-30 Thread Bruno Rocha
Which version of web2py? which version of windows? BTW: You have not to install web2py, web2py is executable, no need to install! If you downloaded the windows version .exe you just need to run it (if it is not working, please tell us your version of windows and web2py) If you download the sourc

[web2py] Firebird - accessing DB leads to a ticket

2012-08-30 Thread villas
With trunk I now get this: Traceback (most recent call last): File "C:\Users\David\web2py\gluon\dal.py", line 6726, in __init__ self._adapter = ADAPTERS[self._dbname](*args) File "C:\Users\David\web2py\gluon\dal.py", line 3208, in __init__ self.driver = fdb NameError: global name 'fdb'

[web2py] Cannot install on computer

2012-08-30 Thread lukedc
Hi everyone, I know that this is a dumb question, but i could not find an answer to it anywhere i looked. I am just instaling web2py, but when I click on the web2py.exe, it does not work. just a quick cmd screen comes up and then goes away real quick. What should I do? I don't know how to ins

[web2py] Re: Multiple tables or a single big one?

2012-08-30 Thread Cliff Kachinske
It almost comes down to a matter of personal preference and where you want your complexity. One join more or less doesn't mean much. But you will want to index your foreign key on the second table. That will slow things a bit on inserts. You want to make sure your auth_user table has ON DEL

[web2py] relatively new to web2py, question about documentation

2012-08-30 Thread ian douglas
Hey all, Let me echo others and say "congrats" to everyone who helped get v2.0.x out the door over the past few days. I'm pretty new to the web2py framework, and have been going through the fourth edition of the web2py "book" ( http://web2py.com/book) over the past week or so. It seems I've

Re: [web2py] Re: KeyError: 'index_name`' when upgrading to 2.0.3

2012-08-30 Thread Jim Steil
Wow, I'm really losing it. I'm referring to line number 726 instead of 727 in C:\dev\web2py\gluon\dal.py in create_table. Sorry for the sloppy reporting. -Jim On Thu, Aug 30, 2012 at 5:25 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > In which file? A web2py file? > > On Thursda

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Mike Girard
This seems like a good place to say that leaving php/Drupal for Python/web2py has been like getting out of jail. This is great software with a supernaturally patient and helpful community. On Wednesday, August 29, 2012 11:41:34 PM UTC-4, Massimo Di Pierro wrote: > > After 5 months. It is done.

Re: [web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Niphlod
sent On Friday, August 31, 2012 12:27:23 AM UTC+2, Massimo Di Pierro wrote: > > Can you send me one of those thickets? > > On Thursday, 30 August 2012 16:44:50 UTC-5, Marin Pranjić wrote: >> >> Admin app silently raises tickets in 1.99.7 >> >> On Aug 30, 2012 11:39 PM, "Massimo Di Pierro" >> wro

Re: [web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Massimo Di Pierro
Can you send me one of those thickets? On Thursday, 30 August 2012 16:44:50 UTC-5, Marin Pranjić wrote: > > Admin app silently raises tickets in 1.99.7 > > On Aug 30, 2012 11:39 PM, "Massimo Di Pierro" > > > wrote: > > Are you saying upgrade works now or does not work? If it does not work, > wh

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Mike Girard
I hadn't put my fields in order nor told it about my aliases. Now that i have, it's dreamy. You are my hero. On Thursday, August 30, 2012 6:03:26 PM UTC-4, Anthony wrote: > > On Thursday, August 30, 2012 5:24:34 PM UTC-4, Mike Girard wrote: >> >> It's screaming invalid literals anyway. Think I'l

[web2py] Re: KeyError: 'index_name`' when upgrading to 2.0.3

2012-08-30 Thread Massimo Di Pierro
In which file? A web2py file? On Thursday, 30 August 2012 16:51:52 UTC-5, Jim S wrote: > > Sorry, I had a debug line in db.py. The actual offending line there is > 726. > > -Jim > > On Thursday, August 30, 2012 4:44:40 PM UTC-5, Jim S wrote: >> >> Hi – sorry if this gets there multiple times, bu

[web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Niphlod
problem is that parse_version returns a tuple as new_version and that tuple is passed to a simple "%s" to show the button in admin (that thing was fixed in trunk just today). Honestly I don't know what string returned web2py.com in days where web2py version was 1.99.7 .. is it possible tha

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Anthony
On Thursday, August 30, 2012 5:24:34 PM UTC-4, Mike Girard wrote: > > It's screaming invalid literals anyway. Think I'll skip it. > Tell us more. If something isn't working, we'd rather fix it than skip it. :-) Anthony --

Re: [web2py] Re: Versioning static files or other options for browser cache reloading

2012-08-30 Thread Yarin
Got it- I'll be upgrading to 2 so not an issue- thanks On Thursday, August 30, 2012 5:52:00 PM UTC-4, Niphlod wrote: > > Installed fine. On trunk it's ok for all cases, but for vanilla 1.99.7 the > check for ? in globals.py isn't there, so both 2nd and 4th are not working. > Incidentally, I had

Re: [web2py] Re: Versioning static files or other options for browser cache reloading

2012-08-30 Thread Niphlod
Installed fine. On trunk it's ok for all cases, but for vanilla 1.99.7 the check for ? in globals.py isn't there, so both 2nd and 4th are not working. Incidentally, I had a different scaffolding app for 1.99.7 that didn't use response.include_files(), so that's because it was working for me in

[web2py] Re: KeyError: 'index_name`' when upgrading to 2.0.3

2012-08-30 Thread Jim S
Sorry, I had a debug line in db.py. The actual offending line there is 726. -Jim On Thursday, August 30, 2012 4:44:40 PM UTC-5, Jim S wrote: > > Hi – sorry if this gets there multiple times, but I’ve posted twice in the > past 6 hours and it hasn’t shown up yet: > > > > I’m getting the follow

Re: [web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Marin Pranjić
Admin app silently raises tickets in 1.99.7 On Aug 30, 2012 11:39 PM, "Massimo Di Pierro" wrote: Are you saying upgrade works now or does not work? If it does not work, what version are you upgrading from? and can you check form chrome console what error you get? On Thursday, 30 August 2012 1

[web2py] KeyError: 'index_name`' when upgrading to 2.0.3

2012-08-30 Thread Jim Steil
Hi - sorry if this gets there multiple times, but I've posted twice in the past 6 hours and it hasn't shown up yet: I'm getting the following: Traceback (most recent call last): File "C:\dev\web2py\gluon\restricted.py", line 209, in restricted exec ccode in environment File "C:/dev/web

[web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Massimo Di Pierro
Are you saying upgrade works now or does not work? If it does not work, what version are you upgrading from? and can you check form chrome console what error you get? On Thursday, 30 August 2012 16:33:27 UTC-5, Tim Richardson wrote: > > +1 on the checking for upgrade not working --

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Niphlod
Sure you didn't forget db.yourtable.id ? Happened to me while testing . NB: "select * from person" will return (id, name, email) rows. if you passed fieldnames=[db.person.name, db.person.email] with select * from person that's the error you're facing. On Thursday, August 30, 2012 11:24:34 PM

[web2py] web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Tim Richardson
+1 on the checking for upgrade not working --

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Mike Girard
It's screaming invalid literals anyway. Think I'll skip it. On Thursday, August 30, 2012 5:07:19 PM UTC-4, Niphlod wrote: > > right doc location. executesql is a method of dal, so click here and there > and you'll end up at > http://www.web2py.com/examples/static/epydoc/web2py.gluon.dal.DAL-cla

[web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread howesc
you'll probably want to make a new directory or sub-directory to install your second copy of web2py. then using your existing config as an example, make a new virtural host entry (if you want to use a subdoamain), or use a mod_rewrite url to map urls to the new directory. 99% of the challenge

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Niphlod
right doc location. executesql is a method of dal, so click here and there and you'll end up at http://www.web2py.com/examples/static/epydoc/web2py.gluon.dal.DAL-class.html#executesql On Thursday, August 30, 2012 11:00:30 PM UTC+2, Mike Girard wrote: > > Sorry, didn't mean to have people running

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread paolo.vall...@gmail.com
Hi Massimo, no, I do not have multiple models, I have defined the string connection only once in db.py, that's all. I have a few try...except but in other places, I do not thing they are connected. I will try to make a simple app ables to reproduce the problem as soon as possible. Paolo 2012/8/30

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Massimo Di Pierro
I made a mistake in the announcement. We do not have "GIS support". What I meant is "Spatialite and PostGIS support" for Slite and postgresql geographical functionalities. massimo On Wednesday, 29 August 2012 22:41:34 UTC-5, Massimo Di Pierro wrote: > > After 5 months. It is done. This is the m

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Mike Girard
Sorry, didn't mean to have people running errands for me. Where is the docstring? Was poking around here http://www.web2py.com/examples/static/epydoc/index.html and couldn't find what I was looking for. Too much newbieness i know: Python AND Web2py. On Thursday, August 30, 2012 4:56:09 PM UTC

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread Massimo Di Pierro
Can you make a simple app to reproduce this? Do you have try except anywhere? Do you have multiple models wich define the same db = DAL(...) connection? On Thursday, 30 August 2012 15:49:01 UTC-5, Paolo wrote: > > Hi Bruno, a simple db with sqlite without modules > > db = DAL('sqlite://sto

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Anthony
On Thursday, August 30, 2012 4:31:37 PM UTC-4, Mike Girard wrote: > > So today's announcement of the new release included a suggestion that an > executesql result can be returned as Rows. If this is true, can I see a > usage example? A little puzzled by 'fields=,columns='? db.define_table('pers

[web2py] Re: Usage example for 'executesql(...,fields=,columns=) allows parsing of results in Rows'

2012-08-30 Thread Niphlod
directly from the docstring ... Added 2012-08-24 "fields" optional argument. If not None, the results cursor returned by the DB driver will be converted to a DAL Rows object using the db._adapter.parse() method. This requires specifying the "fields" argument as a lis

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Cliff Kachinske
This is the best Christmas ever. So many shiny new toys. Thanks to Massimo and all who contributed. Cliff Kachinske --

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Massimo Di Pierro
All bugs reported today have been fixed in 2.0.3 out now (except a minor issue with markmin that we are investigating). If you find other issues, please continue report them. We'd rather fix them sooner rather than later. Thanks for all your help and testing. Massimo On Wednesday, 29 August

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread paolo.vall...@gmail.com
Hi Bruno, a simple db with sqlite without modules db = DAL('sqlite://storage.sqlite', lazy_tables=True ) sorry, but I've just discovered that the same problem is happened even with lazy_tables=False Paolo 2012/8/30 Bruno Rocha : > How are you defining the db connection? are you using models or m

Re: [web2py] "Tweet this" and web2py forms. How do I design this?

2012-08-30 Thread Pystar
But I am only using web2py inbuilt Auth. Can I use Auth and still allow users grant permission to my app using OAuth? And does the twitter API cap limit of 100k users count if I do? On Thursday, August 30, 2012 9:36:39 PM UTC+1, rochacbruno wrote: > > It is only possible if you have implemented

Re: [web2py] Re: Versioning static files or other options for browser cache reloading

2012-08-30 Thread Bruno Rocha
I think it is now working, I checked the source and there is: if isinstance(item,str): f = item.lower().split('?')[0] if f.endswith('.css'): s += css_template % item elif f.endswith('.js'): s += js_template % item elif f.

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread Bruno Rocha
How are you defining the db connection? are you using models or modules? which db? --

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-30 Thread Anthony
On Thursday, August 30, 2012 4:01:39 PM UTC-4, Massimo Di Pierro wrote: > > Fixed in trunk but you should not use Auth without auth.define_tables() > (that is really causing the problem). Perhaps this is less important with lazy tables (though I assume there is still some efficiency gain), but

  1   2   3   >