Re: [web2py] Need help

2010-12-19 Thread Kenneth Lundström
Have you tried to upgrade to 1.90.2 that uses the new DAL interface? Kenneth https://groups.google.com/forum/#!topic/pymysql-users/vrnKcoE6ZD0

Re: [web2py] Need help

2010-12-19 Thread sushanth
Hi Kenneth, Current web2py using : 1.90.2 Yes,i have tried.

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread blackthorne
Great app I would suggest you to use a technology agnostic name so that PHP, Ruby, Java, ... Guys don't go away and to consider some kind of extra value into your app against stack overflow website. Another thing, consider sharing functionality of questions for twitter at leata. Good work, congr

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread berubejd
I started receiving this traceback on the console after the upgrade: Traceback (most recent call last): File "web2py.py", line 20, in File "gluon/widget.py", line 781, in start File "gluon/shell.py", line 194, in run File "", line 1, in File "applications\Jellybean_Kingdom\controllers\

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread selecta
self reference with IS_IN_DB pointing to self Field('parent', 'reference mytable', requires = IS_EMPTY_OR(IS_IN_DB(db,'mytable.id','%(name)s'))), this does not work any more On Dec 18, 8:38 pm, mdipierro wrote: > This is a major - major release mostly because it includes the new > DAL. > > It

[web2py] Computed fields - change of behavoiur OR advice needed

2010-12-19 Thread Kuba Kucharski
Looks like I have a problem. I want to compute field like this and it works FINE: Field('logo_small','upload',writable=False,readable=False,widget=uploadWidget,compute=lambda r: THUMB(r)), def THUMB(r): try: image=r['logo'] except: #yes, None is deleting my thumbnail

Re: [web2py] Need help

2010-12-19 Thread Martin.Mulone
I dont't understand this line: seems to me that dogs_teamname is not defined db.users.team.requires = IS_IN_DB(db, 'dogs.teamname', ' dogs_teamname')

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread Martin.Mulone
Great!, I will test tomorrow!.

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Martin.Mulone
I like it, congrats good app!. I have a sugestion, Do you consider to make janrain authetication?, because I don't like to put info of my google account. A bit late for exhibition also :).

[web2py] Re: csvstudio: for those who need to handle csv files

2010-12-19 Thread Martin.Mulone
+1

[web2py] Re: Computed fields - change of behavoiur OR advice needed

2010-12-19 Thread Kuba Kucharski
or do I really have to go with onaccept= in every form I created.. and disable compute field

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
fixing this in trunk. On Dec 19, 4:05 am, berubejd wrote: > I started receiving this traceback on the console after the upgrade: > > Traceback (most recent call last): >   File "web2py.py", line 20, in >   File "gluon/widget.py", line 781, in start >   File "gluon/shell.py", line 194, in run >

Re: [web2py] Need help

2010-12-19 Thread sushanth
Sorry typo mistake dogs.names is defined.

Re: [web2py] Need help

2010-12-19 Thread sushanth
Sorry typo mistake dogs.teamname is defined.

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
fixing in trunk. On Dec 19, 5:28 am, selecta wrote: > self reference with IS_IN_DB pointing to self > > Field('parent', 'reference mytable', requires = > IS_EMPTY_OR(IS_IN_DB(db,'mytable.id','%(name)s'))), > > this does not work any more > > On Dec 18, 8:38 pm, mdipierro wrote: > > > This is a

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread mdipierro
+1 really nice! I second the two suggestions proposed: - use janrain - make the name py agnostic - you need a better logo/css/js (*) Would be nice if pyStack, pyForum and Instant Press had similar CSS conventions and a swicth to use the same CAS login. I could integrate them with the LMS I am wor

[web2py] Re: Computed fields - change of behavoiur OR advice needed

2010-12-19 Thread mdipierro
I would take "compute=lambda r: THUMB(r)" out of the table definition and add db.table.logo_small.compute=THUMB in the controller action where you have insert/update forms. On Dec 19, 5:34 am, Kuba Kucharski wrote: > Looks like I have a problem. I want to compute field like this and it > works

[web2py] Re: Need help

2010-12-19 Thread mdipierro
The second issue should now be resolved in trunk. That was a typo in web2py. The first of the two issue is a mysql error. I cannot tell if the query is malformed (can you check the query from mysql logs?) or if indeed the table is not there. Massimo On Dec 19, 1:50 am, sushanth wrote: > Hi, > >

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
All the issues raised should now be fixed in 1.90.3 On Dec 19, 10:14 am, mdipierro wrote: > fixing in trunk. > > On Dec 19, 5:28 am, selecta wrote: > > > self reference with IS_IN_DB pointing to self > > > Field('parent', 'reference mytable', requires = > > IS_EMPTY_OR(IS_IN_DB(db,'mytable.id',

[web2py] Deploying application on GAE using the deploy button

2010-12-19 Thread Hybride
Hi everyone, I've come along a long way thanks to everyone's help here. I've successfully managed to deploy my application to GAE using the command line (python2.5 ./appcfg.py update ../web2py), however, am trying to get the administration panel to work with it (Google App Engine Deployment Interf

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread czamb
Thanks for the fast reply. Unfortunately, after upgrade to 1.90.3 and restart, the same result as before: Traceback (most recent call last): File "c:\web2py\gluon\main.py", line 453, in wsgibase session._try_store_on_disk(request, response) File "c:\web2py\gluon\globals.py", line 402, in _

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread pbreit
It would be great to see some polished core apps like Forums, CMS and Blog.

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
Looks like you are trying store on a session something that is not pickable. Can you show us what objects are your storing in the session? It will help me figure out what is wrong. Massimo On Dec 19, 11:47 am, czamb wrote: > Thanks for the fast reply. > Unfortunately, after upgrade to 1.90.3 an

Re: [web2py] Re: Computed fields - change of behavoiur OR advice needed

2010-12-19 Thread Kuba Kucharski
that is a good solution indeed, thanks for the fast response -- Kuba

[web2py] Re: Run Web2py as a Service? on Ubuntu Lucid?

2010-12-19 Thread ghoulmann
SO what to do then? It appears no web2py.pid file is being created. On Dec 18, 3:27 pm, ghoulmann wrote: > Thanks Kenneth. When I look in the specified dir I see that no web2py > existed. I thought maybe you meant changing the value $PIDDIR, so I > tried that. I changed it to /root/$name and I en

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Anthony
Added to the web2py powered-by list (http://web2py.com/poweredby). Excellent work. Thanks for sharing this (and pyForum). Anthony On Dec 19, 12:47 am, Julio Schwarzbeck wrote: > Dear community, > > I am pleased to inform the release the first (beta) revision of > pyStack.com, an open source qu

[web2py] tagging widget from plugin_wiki doesn't work when encapsulated in another custom form view

2010-12-19 Thread czamb
Hello there, The tagging widget (from plugin_wiki) does not create the proper lines from form.custom.begin and .end when encapsulated in another form it seems. This behavior only occurred when the tagging widget was used inside another custom form for editing an entry (generated also by SQLFORM.fa

[web2py] Re: tagging widget from plugin_wiki doesn't work when encapsulated in another custom form view

2010-12-19 Thread czamb
One more remark: as a result the tagging submit button submits the outer form and tagging functionality cannot be achieved inside the outer edit form. On Dec 19, 7:30 pm, czamb wrote: > Hello there, > > The tagging widget (from plugin_wiki) does not create the proper lines > from form.custom.beg

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Anthony
Overall, I like the design, but visually, I think the comments look somewhat "heavy". I think the gray background makes the comments stand out too much (relative to the actual question answers). Comments are also taking up a lot of vertical space because the check/X icons are on their own line and

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Julio Schwarzbeck
Sure thanks Massimo, and folks that have taken the time to review the app, please don't refrain from (constructive) criticism, I am not the kind that gets "offended" by such posts, I welcome them in fact, now having said that, here's some of my comments (not responses) regarding some of what I've r

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread weheh
Congrats. Very nice app. Suggestions: I agree with Anthony that the ui format makes it a little hard to easily distinguish between answers and comments. Consequently, there is a lack of central focus in the answer. I sometimes use Yahoo! answers and you could look there for some ideas. Also, the ic

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Julio Schwarzbeck
Hey Massimo, what's up, you've asked me to contact you via mail, man this release took me a while :) but it's been a smooth ride as far as schema design and coding, for the past couple of weeks I've been usimng my "lunch time" lol to "wrap up" and tie all the loose ends, and working for a financial

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Julio Schwarzbeck
On Dec 19, 10:55 am, Anthony wrote: > > Also, could use some tooltips with the icons that appear under some of > the questions. > > Anthony > Totally agreed, I was relying on the alt property of the IMG tag but apparently that does not work in all browsers.

Re: [web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-12-19 Thread Andrew Thompson
On 11/22/2010 7:57 PM, db-py wrote: Thanks! I will give it a try.. On Nov 22, 5:28 pm, Phyo Arkar wrote: i have not tried as FCGI tho. Did you get fcgi working with nginx? I've got them talking, but I keep getting the welcome app at / instead of the app I want. This worked in lighttpd:

Re: [web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Branko Vukelic
> - Original Message - > From: Julio Schwarzbeck > Sent: 12/19/10 08:26 PM > To: web2py-users > Subject: [web2py] Re: Say hello to pyStack.com > in any case, please continue testing if you can, I will release some > "common" usernames that you can use (each one with its own access > level

[web2py] NameError: global name 'ktable' is not defined

2010-12-19 Thread pandaluv
Traceback (most recent call last): File "/home/felix/Desktop/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home/felix/Desktop/web2py/applications/SGE/controllers/ incidents.py", line 174, in File "/home/felix/Desktop/web2py/gluon/globals.py", line

[web2py] Re: NameError: global name 'ktable' is not defined

2010-12-19 Thread mdipierro
Fixing in 1.90.4. I apologize and wish people had tested this more on trunk but looks like very few users test trunk. Massimo On Dec 19, 2:38 pm, pandaluv wrote: > Traceback (most recent call last): >   File "/home/felix/Desktop/web2py/gluon/restricted.py", line 188, in > restricted >     exec c

Re: [web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread Gary Herron
In 1.90.3, my SQLFORM calls are failing with Traceback(most recent call last): File"/home/gherron/Dropbox/projects/web2py/gluon/restricted.py",line188,inrestricted execccodeinenvironment File"/home/gherron/Dropbox/projects/web2py/applications/ServeITS/controllers/default.py",line233,in

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
Thanks Gary, just fixed it in 1.90.4 On Dec 19, 3:06 pm, Gary Herron wrote: > In  1.90.3, my SQLFORM calls are failing with > > Traceback(most recent call last): >     > File"/home/gherron/Dropbox/projects/web2py/gluon/restricted.py",line188,inrestricted >      execccodeinenvironment >     > Fil

[web2py] Re: NameError: global name 'ktable' is not defined

2010-12-19 Thread pandaluv
=D great! On Dec 19, 6:06 pm, mdipierro wrote: > Fixing in 1.90.4. I apologize and wish people had tested this more on > trunk but looks like very few users test trunk. > > Massimo > > On Dec 19, 2:38 pm, pandaluv wrote: > > > Traceback (most recent call last): > >   File "/home/felix/Desktop/we

Re: [web2py] Re: NameError: global name 'ktable' is not defined

2010-12-19 Thread rochacbruno
I always test trunk, but I think there are users who has some difficult using hg to pull trunk. If possible to include a .zip version of trunk available to download I guess more people would test it. Google code has a download tab. Maybe the commit script could zip and upload it just after

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Anthony
On Dec 19, 2:35 pm, Julio Schwarzbeck wrote: > On Dec 19, 10:55 am, Anthony wrote: > > > Also, could use some tooltips with the icons that appear under some of > > the questions. > > > Anthony > > Totally agreed, I was relying on the alt property of the IMG tag but > apparently that does not work

[web2py] country / state / city of the current visitor?

2010-12-19 Thread Carlos
Hi, Is it possible (and how) to know the country / state / city related to the current visitor in my website?. I'm mostly interested (for the moment) in Mexico. Thanks, Carlos

[web2py] Re: NameError: global name 'ktable' is not defined

2010-12-19 Thread mdipierro
I know you do and some people do. The fact is that some bugs are very rare. This for example has the following story the new DAL broke inline requirements for self referential fields. This was never supposed to work (requirements should be specified after table definition if table has self ref

[web2py] pootle2py

2010-12-19 Thread mdipierro
I came across this: http://www.reddit.com/r/Python/comments/eoflx/pootle2py/ http://code.google.com/p/pootle2py/

[web2py] Re: NameError: global name 'ktable' is not defined

2010-12-19 Thread pandaluv
=D okay now, I undestand On Dec 19, 6:25 pm, mdipierro wrote: > I know you do and some people do. The fact is that some bugs are very > rare. This for example has the following story > > the new DAL broke inline requirements for self referential fields. > This was never supposed to work (requ

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread ma...@rockiger.com
+10 pyStack is pretty awesome. I suppord the registration and naming suggestions, though. Marco

[web2py] I get this a lot when stopping a queue mid-stream

2010-12-19 Thread weheh
When I stop my background queue job to inspect the state of the queue records *from within web2py admin*, I often can't get to the db record of interest because of the following error: File "C:\web2py\gluon\sql.py", line 1537, in __allocate raise RuntimeError, "Using a recursive select but e

[web2py] party time

2010-12-19 Thread mdipierro
I am thinking of organizing a party between Christmas and New Year's eve. Who is in Chicago or willing to come anyway? I may be able to accommodate a few people - if you offer to help with cleaning. ;-)

Re: [web2py] party time

2010-12-19 Thread Michele Comitini
Too far for me! But I can send you some cleaning produtcs ;-) 2010/12/19 mdipierro : > I am thinking of organizing a party between Christmas and New Year's > eve. > > Who is in Chicago or willing to come anyway? I may be able to > accommodate a few people - if you offer to help with cleaning. ;

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread berubejd
This issue is resolved in 1.90.3. Thanks! On Dec 19, 2:05 am, berubejd wrote: > I started receiving this traceback on the console after the upgrade: > > Traceback (most recent call last): >   File "web2py.py", line 20, in >   File "gluon/widget.py", line 781, in start >   File "gluon/shell.py",

[web2py] layout.html and static/css suggestion

2010-12-19 Thread weheh
Anyone doing customization of their web2py layout knows that they are going to heavily modify both the layout.html and static/css files. This can result in breakage of the admin utility. It is good policy, I think, to segregate the admin app from the user's app sufficiently that the developer can c

[web2py] Re: party time

2010-12-19 Thread weheh
Wish I could come, but it's too far for me, too. I'll send some "clean" thoughts your way ;-) On Dec 19, 5:18 pm, mdipierro wrote: > I am thinking of organizing a party between Christmas and New Year's > eve. > > Who is in Chicago or willing to come anyway? I may be able to > accommodate a few pe

Re: [web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Michele Comitini
I like it! +1 2010/12/19 ma...@rockiger.com : > +10 > pyStack is pretty awesome. > I suppord the registration and naming suggestions, though. > Marco

[web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-12-19 Thread GoldenTiger
What do you want? aktzero app as init app? did you change routes.py? Indeed, I am seeing your server is very fast, from Linode, yesterday I signed up a VPS on dreamhost, but now I thinks your web2py on Linode runs faster than my web2py on Dreamhost (http://www.web2py.es/ examples) how many

[web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-12-19 Thread GoldenTiger
What do you want? aktzero app as init app? did you change routes.py? Indeed, I am seeing your server is very fast, from Linode, yesterday I signed up a VPS on dreamhost, but now I thinks your web2py on Linode runs faster than my web2py on Dreamhost (http://www.web2py.es/ examples) how many

[web2py] Re: country / state / city of the current visitor?

2010-12-19 Thread villas
One idea is: get their IP address and then use a lookup service. This link might provide a starting point for you... http://geobytes.com/iplocator.htm -David On Dec 19, 9:22 pm, Carlos wrote: > Hi, > > Is it possible (and how) to know the country / state / city related to > the current visitor

[web2py] Problem when trying to upload a file in web2py 1.90.4

2010-12-19 Thread Charis
I have the following error message when i try to upload a file in web2py 1.90.4. This feature was working fine for me with the previews versions. Traceback (most recent call last): File "/home/charis/Desktop/Dropbox/BioSP_v0.6/gluon/restricted.py", line 188, in restricted exec ccode in envir

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-19 Thread mdipierro
I cannot reproduce the problem. What db? On Dec 19, 6:39 pm, Charis wrote: > I have the following error message when i try to upload a file in > web2py 1.90.4. This feature was working fine for me with the previews > versions. > > Traceback (most recent call last): >   File "/home/charis/Desktop/

[web2py] Re: pootle2py

2010-12-19 Thread GoldenTiger
Error ticket for "appootle": ... File "C:/web2py/web2py.es/applications/appootle/controllers/ default.py", line 86, in items _updated_statistic(_prj.project_language.id) NameError: global name '_prj' is not defined ... ERROR IS '_prj' IN LINE 86: _updated_statistic(_prj.project_language.id)

[web2py] Re: pootle2py

2010-12-19 Thread mdipierro
I do not know who the author is and if he is here. Perhaps you can report an issue with google code. On Dec 19, 10:03 pm, GoldenTiger wrote: > Error ticket for "appootle": > ... >   File "C:/web2py/web2py.es/applications/appootle/controllers/ > default.py", line 86, in items >     _updated_statis

[web2py] Re: pootle2py

2010-12-19 Thread pbreit
This project is cool: https://github.com/berk/tr8n

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Julio Schwarzbeck
Just a quick piece of info. I've renamed the app to QA-Stack.com to make it more application and programming language agnostic, read more info here when you have time http://www.pyforum.org/pyforum/default/view_topic/576 Also thank you all for your comments and suggestions, there are several chang

Re: [web2py] party time

2010-12-19 Thread Jason Brower
Ahh shucks. That would have been nice. Best Regards, jason brower - Original message - > I am thinking of organizing a party between Christmas and New Year's > eve. > > Who is in Chicago or willing to come anyway? I may be able to > accommodate a few people - if you offer to help with cle

[web2py] Re: country / state / city of the current visitor?

2010-12-19 Thread Richard
instead of relying on an external service you can try this: http://code.google.com/p/pygeoip/ http://www.maxmind.com/app/ip-location There is free data and more accurate paid data. I am experimenting with the free data at the moment.

[web2py] Re: jquery UI Widgets: wijmo

2010-12-19 Thread Richard
many of the widgets require a commercial license

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread sushanth
Found mysql two issues in new dal.py First issues mysql VARCHAR length should be 0 to 255,but web2py default varchar value was set to length = 512,if some forgot to declare varchar length he will get error message key too long. Second issue After creating FK in the model if we declare db.d

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
I think I have fixed the former issue length now defaults to 255 for mysql. I am not sure how to fix the second issue and I will wait to form a suggestion from Denes. Massimo On Dec 19, 11:55 pm, sushanth wrote: > Found mysql two issues in new dal.py > > First issues > > mysql VARCHAR length sh

[web2py] how to read headers

2010-12-19 Thread rāma
This is rather daunting. An sms gateway put their variables in their header rather than urlencode it. I am not sure how to get my app to fetch the header variables from the request sent by the server. I tried mimicking using urllib2 by sending headers to my app. But, request.headers always return

[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread mdipierro
What should the 'reference' string to be in the case the they is more than one field? On Dec 19, 11:55 pm, sushanth wrote: > Found mysql two issues in new dal.py > > First issues > > mysql VARCHAR length should be 0 to 255,but web2py default varchar value was > set to length = 512,if some forgot

[web2py] Re: how to read headers

2010-12-19 Thread mdipierro
they are in request.env so header called blablabla would be in request.env.http_blablabla On Dec 20, 12:09 am, rāma wrote: > This is rather daunting. An sms gateway put their variables in their > header rather than urlencode it. I am not sure how to get my app to > fetch the header variables fro

[web2py] SSLError: The read operation timed out on file upload?

2010-12-19 Thread Dan
Hi, I'm using web2py with the Rocket webserver over SSL. Every now and than I'm getting this error message when I'm uploading a file. If I'm trying to upload the same file some seconds later everything is working. Any hints on that strange error? Should I migrate to lighttp? Error traceback Tra

[web2py] How to mail.send() asynchronously?

2010-12-19 Thread cjrh
There is enough of a delay when calling mail.send() that I want to find ways to send the mail asynchronously.Has anyone else tried this, or looked into other methods of minimizing the time cost for mail sending?

[web2py] Re: how to read headers

2010-12-19 Thread rāma
Thanks a bunch! Its working On Dec 20, 2:32 pm, mdipierro wrote: > they are in request.env > > so header called blablabla would be in request.env.http_blablabla > > On Dec 20, 12:09 am, rāma wrote: > > > > > This is rather daunting. An sms gateway put their variables in their > > header rather t