Re: [web2py] 'exceptions.SyntaxError' No fields to update when login on heroku + facebook

2013-03-09 Thread Leonardo M. Rocha
Mic: On Fri, Mar 8, 2013 at 9:56 PM, Michele Comitini wrote: > Even if you can modify tools.py, my suggestion is to modify your db.py > code. Remember that you can do many things sub-classing the OAuthAccount > class! > I tried with subclassing again, copied your code and but no luck at all.

[web2py] Re: gluon.http.HTTP default headers aren't `**response.headers`?

2013-03-09 Thread Niphlod
Don't know the exact reason, but HTTP() doesn't inspect "current" to fill out headers. either you pass them explicitely, or set response.status = 500 and return the body (in this case response.headers gets filled with the "current" ones) -- --- You received this message because you are

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread BlueShadow
Thanks Alfonso de la Guarda Reyes. I got a step further with that. psql -U dbuser -d testdb this command works now but web2py still throws an error. still this: invalid function (default/TestPostgres) which doesn't help me at all. I got no clue where to look to solve this. On Saturday, March 9,

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread LightDot
That's a different problem. And this one is about web2py :) Do you have a function in conrollers/default.py called TestPostgres..? The easiest way to help you would be if you simply post the code (controller, view and possibly model) that's giving you problems. Regards, Ales On Saturday, March

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread BlueShadow
its the welcome app except for the DAL line. (I created a New simple application named it TestPostgres and changed the db.py: db = DAL('postgres://dbuser:testpw@localhost/testdb') ) everything else stayed the same. I created a testdb so that cant be the problem. On Saturday, March 9, 2013 2:23:3

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread Alfonso de la Guarda
Hi, Well... Lightdot is right that is nothing about postgresql in the DAL now, is more related to the app construction... if yu post your model, controller and view we can surely reproduce that and give a solution. Saludos, Alfonso de la Guarda Twitter: @alfonso

[web2py] plugin jqmobile shows a white screen

2013-03-09 Thread Martin Weissenboeck
I wanted to learn more about the jqmobile plugin, but I always get a white (or on the simulated mobile device a black) screen. I am using web2py 2.4.2 on Ubuntu server. Maybe somebody likes to try it? These are my steps... 1. Cretae a new application jqmobiletest 2. Try https://mysever/admin/plu

Re: [web2py] 'exceptions.SyntaxError' No fields to update when login on heroku + facebook

2013-03-09 Thread Michele Comitini
Leo, Good that you found the cause. I will update the ticket, because SyntaxError is quite misleading. If you can follow https://code.google.com/p/web2py/issues/detail?id=1369 tnx mic Il giorno sabato 9 marzo 2013 12:54:51 UTC+1, Leo Rocha ha scritto: > > Mic: > > On Fri, Mar 8, 2013 at 9:56 P

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread Alfonso de la Guarda
Hi... In you defaultlpy there is no exist TestPostgres function and neither a view, that's the error, you have 2 options: 1. Create one TestPostgres function (and view) 2. Change the data function to crud the database Saludos, Alfonso de la Guarda Twitter: @al

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread LightDot
How are you trying to access your application, what URL are you using? I don't think you have an error anywhere really. Assuming you're doing this on the localhost and using the rocket web server that comes with web2py, try: http://127.0.0.1:8000/TestPostgres/default/index BTW, if you look at

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread BlueShadow
thats what I did: http://85.214.201.75/TestPostgres/default/index the app is on my server where I got the postgres db installed On Saturday, March 9, 2013 3:08:12 PM UTC+1, LightDot wrote: > > How are you trying to access your application, what URL are you using? > > I don't think you have an erro

[web2py] Cool tool for external data manipulation

2013-03-09 Thread Alfonso de la Guarda
Hi, Reading the planet of PSF i have notice this project: https://github.com/eyeseast/python-tablefu Looks great and goes very good with web2py, maybe we can integrate, for my side i wish to try develop excel support Saludos, Alfonso de la Guarda Twitter: @alf

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread Cliff Kachinske
Web2py can't find your file. Is the path to the app /web2py/applications/TestPostgres/default/index What happens if you just do http://85.214.201.75 Have you changed the default routes.py files? On Saturday, March 9, 2013 9:32:19 AM UTC-5, BlueShadow wrote: > > thats what I did: > http://85.2

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread BlueShadow
I have changed the default routes.py because I got two apps running on that ip. So when you just use my ip it gets to another app. On Saturday, March 9, 2013 3:52:15 PM UTC+1, Cliff Kachinske wrote: > > Web2py can't find your file. > > Is the path to the app > /web2py/applications/TestPostgres/

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread LightDot
Don't you think it's a routes issue then..? ;) Regards, Ales On Saturday, March 9, 2013 3:56:27 PM UTC+1, BlueShadow wrote: > > I have changed the default routes.py because I got two apps running on > that ip. So when you just use my ip it gets to another app. > > On Saturday, March 9, 2013 3:52

[web2py] Is it possible to deploy using Tornado on GAE?

2013-03-09 Thread curiouslearn
Hello, I have a couple of questions: is it possible to do asynchronous i/o using web2py (would I need to use the Tornado server )? If so, is there a simple example of this somewhere? Can such an app (that uses Tornado) be deployed on GAE or other SAAS systems such as Dotcloud, Openshift etc.?

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread BlueShadow
it was a routing issue thanks lightdot. To me it doesnt make sense that if you give the complete path its overritten by the router but well learned something new. thanks guys for all the help. On Saturday, March 9, 2013 3:59:19 PM UTC+1, LightDot wrote: > > Don't you think it's a routes issue t

Re: [web2py] postgres getting started ("hello world")

2013-03-09 Thread Niphlod
when you set routes (probably you used the default_application) you can't distinguish from a request coming to /a/b/c/d if is a /default_app/a/b/c/d or an /application/b/c/d . default_applications means that you'd like to have /testpostgres/default/index as an actual /default_app/testpostgre

[web2py] Re: plugin jqmobile shows a white screen

2013-03-09 Thread Massimo Di Pierro
Your step 2 is wrong because the posted plugin online is old and broken (I need to fix it). now a working version of plugin jquery comes with web2py. It is in admin. On Saturday, 9 March 2013 07:44:52 UTC-6, mweissen wrote: > > I wanted to learn more about the jqmobile plugin, but I always get a

[web2py] Re: Cool tool for external data manipulation

2013-03-09 Thread Massimo Di Pierro
Hello Alfonso. Have you seen gluon/contrib/spreadsheet? Not quite the same but similar and integrated with web2py. We could extend the features. On Saturday, 9 March 2013 08:35:06 UTC-6, Alfonso de la Guarda Reyes wrote: > > Hi, > > Reading the planet of PSF i have notice this project: > > http

[web2py] Re: Cool tool for external data manipulation

2013-03-09 Thread Massimo Di Pierro
http://127.0.0.1:8000/examples/spreadsheet On Saturday, 9 March 2013 08:35:06 UTC-6, Alfonso de la Guarda Reyes wrote: > > Hi, > > Reading the planet of PSF i have notice this project: > > https://github.com/eyeseast/python-tablefu > > Looks great and goes very good with web2py, maybe we can in

[web2py] Re: [web2py-dev] Re: Cool tool for external data manipulation

2013-03-09 Thread Alfonso de la Guarda
Massimo, In fact that tool is really great, but my intention with the post was about importing data, which could be painfull sometimes... By example, right now i am using a custom module for read surveys from excel and need some extra working for validation and data access, after that the informa

Re: [web2py] Re: Problem with uploading large file web2py version 2.3.2

2013-03-09 Thread Ricardo Pedroso
On Sat, Mar 9, 2013 at 4:27 AM, Massimo Di Pierro wrote: > I cannot reproduce the problem. I was able to reproduce it with web2py Version 2.4.2-stable+timestamp.2013.03.09.00.16.49 I attach a small sample that demonstrate the issue. Just drop the attachment in controllers in an empty application

[web2py] select() - How to fetch specific fields?

2013-03-09 Thread jjg0
Hello again, I have another problem I've run into maybe someone can help with. Let's say I have a table of blog posts and all I want to do is print out all the titles. I'll make up a really simple example: MODEL: db.define_table('myBlog', Field('title'), Field('body', 'text'), Field('created_

[web2py] Re: Upgrading to 2.4.2. breaks virtual field

2013-03-09 Thread Kenneth
Hi, anybody have any ideas where to start solving this? Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. Traceback (most recent call last): File "/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/applications/economy/control

[web2py] Re: [web2py-dev] Re: Cool tool for external data manipulation

2013-03-09 Thread Niphlod
I don't think it's a popular usecase enough to include it.. nice though, I used tablib until now (server-side) and handsontable is the nicest lib to display/edit excel-like data using javascript. -- --- You received this message because you are subscribed to the Google Groups "web2py-use

Re: [web2py] Re: Problem with uploading large file web2py version 2.3.2

2013-03-09 Thread Massimo Di Pierro
Thank you Ricardo. This helps a lot. I will fix it asap. massimo On Saturday, 9 March 2013 10:10:19 UTC-6, Ricardo Pedroso wrote: > > On Sat, Mar 9, 2013 at 4:27 AM, Massimo Di Pierro > > wrote: > > I cannot reproduce the problem. > > I was able to reproduce it with web2py > Version 2.4.2-sta

[web2py] Re: select() - How to fetch specific fields?

2013-03-09 Thread Massimo Di Pierro
It does not break you simply get None. On Saturday, 9 March 2013 10:38:57 UTC-6, jjg0 wrote: > > Hello again, I have another problem I've run into maybe someone can help > with. > > Let's say I have a table of blog posts and all I want to do is print out > all the titles. I'll make up a really

[web2py] Re: select() - How to fetch specific fields?

2013-03-09 Thread Niphlod
nope Rows isn't a Storage() where you can retrieve what you want (fortunately ^_^) the example posted lands into a ('Row' object has no attribute 'body') like it's *supposed* to be. PS: @jjg0 the only way it doesn't break is if you don't have any rows on the table --> your for loop never g

[web2py] Re: Problem with smartgrid no GUI Bread Crums or missing buttons for links

2013-03-09 Thread Dan Kozlowski
Still can't get this work. I just built a new test app and have the same problem. Does anyone which CSS the buttons would be in ? On Monday, March 4, 2013 9:06:17 PM UTC-6, Dan Kozlowski wrote: > > Does anyone have this same problem with a smart grid ? Running on Linux. > Thanks > > 1.) the wo

[web2py] routes.py redirects router

2013-03-09 Thread BlueShadow
I got my routes.py derived from the router.example.py which works like a charm. for my 2 webapplications. Now I want it to do a couple extra things: redirect from myURL.com to www.myURL.com redirect from myip to www.myURL2.com/s?ie=UTF8 thanks for your help -- --- You received this message be

[web2py] Re: Problem with smartgrid no GUI Bread Crums or missing buttons for links

2013-03-09 Thread Niphlod
here https://github.com/web2py/web2py/blob/master/applications/welcome/static/css/web2py.css#L183 On Saturday, March 9, 2013 9:06:01 PM UTC+1, Dan Kozlowski wrote: > > Still can't get this work. I just built a new test app and have the same > problem. Does anyone which CSS the buttons would be in

[web2py] Problem setting PluginManager options

2013-03-09 Thread Alan Etkin
I'm trying to test my new plugin by setting some options in db.py, but those values are not preserved by PluginManager when the plugin is initialized at the plugin model. Is it a problem with my code or a PluginManager issue?. db.py: # auth.enable_record_versioning(db) # add this to your app

[web2py] reference field set to be null or in db but now the form does not display a dropdown with the values

2013-03-09 Thread memo
I have the below stated table definition: I want the field f_building_complex to be either NULL or to be referenced to the t_building_complexes. Thus I have added the requires=.. But now the sqlform displays a text box instead of a dropdown. What to do? Thanks db.define_table('t_addresses',

Re: [web2py] Re: database shootout

2013-03-09 Thread Michele Comitini
I have been using postgresql years before it had its actual name and I found their statement "The world's most advanced open source database", always true. Not anymore, I think now they could remove the "open source" words. ;-) ;-) Use postgresql. The people leading a free software project and

Re: [web2py] Re: database shootout

2013-03-09 Thread Cliff Kachinske
I love the IDEA of Fedora, but I don't use it. Fedora is Red Hat's experimental, community-based product. It's bleeding edge. That means stuff is often broken and changes in direction are not impossible. This is not what I need, especially for a production server. On Friday, March 8, 2013 6:

[web2py] 'Rows' object has no attribute '_db'

2013-03-09 Thread Jamie Jernigan
Hi , I'm new to Web2py and I've been struggling with this the last couple of days. I'm getting 'Rows' object has no attribute '_db' on: query= db((db.MONITOR_CODES.MC_ID==db.MC_VALID_RESPONSES.MC_ID)&(db.MC_VALID_RESPONSES.COMPLIANCE_FLAG=='N')).select(db.MONITOR_CODES.MC_DESCR, db.MC_VAL

[web2py] web2py app not working on gae

2013-03-09 Thread curiouslearn
I am trying to learn how to deploy a web2py app on GAE. I downloaded a fresh install of web2py from the web2py site today and then changed the app.yaml file according to instructions in given in the web2py book. Then I tried running the app on the development server using the GoogleAppEngineLau

[web2py] Re: reference field set to be null or in db but now the form does not display a dropdown with the values

2013-03-09 Thread Anthony
If you put the validator in a list, you lose the dropdown -- so just take it out of the list. Also, use IS_EMPTY_OR (IS_NULL_OR has been deprecated). Anthony On Saturday, March 9, 2013 4:37:32 PM UTC-5, memo wrote: > > I have the below stated table definition: > I want the field f_building_compl

[web2py] Re: GAE DB vs NDB

2013-03-09 Thread Christian Foster Howes
i've not used NDB, but i use the GAE datastore quite a lot. lucky for me the projects i'm working on are OK with paying to use GAE so quota per-se is not a concernbut overall cost is. some things that i have done: - i moved sessions to the DB, counter-intuitive i know, but they kept gettin

[web2py] Re: Is it possible to deploy using Tornado on GAE?

2013-03-09 Thread Christian Foster Howes
greetings, i don't know much about asynchronous i/o in web servers. GAE provides its own web server. there is no file writing in GAE (unless you use the blobstore), and most google API calls that you make can be made asynchronously with the proper settings. overall i am very satisfied with GA

[web2py] Re: web2py under GAE: disabling indexes

2013-03-09 Thread Christian Foster Howes
Massimo, Scott, i filed https://code.google.com/p/web2py/issues/detail?id=1373 with a patch against trunk. Looks like my first patch on this thread made it to the latest release, but the second patch did not. If that can be applied i think we'll be all set. perhaps i now need to start submit

[web2py] Re: 'Rows' object has no attribute '_db'

2013-03-09 Thread Massimo Di Pierro
Can you show the complete traceback On Saturday, 9 March 2013 17:13:24 UTC-6, Jamie Jernigan wrote: > > Hi , > > I'm new to Web2py and I've been struggling with this the last couple of > days. I'm getting > 'Rows' object has no attribute '_db' > > > on: > > query= > db((db.MONITOR_CODES.MC_ID=

[web2py] session vs cookies performance

2013-03-09 Thread Jaime Sempere
Hi, I have an application for facebook where I need to store some variables. The application is like a little forum but with just one page and everything is loaded via Ajax calls, so I need to store for example, the user that is logged in, the page of the forum where he is right now... etc. N