[web2py] Re: How to download multiple files with one click?

2011-06-26 Thread weheh
Understood. Thanks! On Jun 26, 1:25 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I do not believe this is possible at all (except by downloading a zipped file). The JS in the browser is not allowed to initiate downloads because it has no access to local filesystem. Downloads must

[web2py] Re: How to download multiple files with one click? [closed]

2011-06-26 Thread weheh
On Jun 26, 1:25 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I do not believe this is possible at all (except by downloading a zipped file). The JS in the browser is not allowed to initiate downloads because it has no access to local filesystem. Downloads must explicitly initiated

[web2py] how to use contrib/login_methods/linkedin_account.py

2011-06-26 Thread Luis Goncalves
Hello! I've been trying to use login via linkedin using the contrib/login_methods/linkedin_account.py module. Off the bat, I got the error : AttributeError: 'module' object has no attribute 'LinkedIn' (this is the same problem Kuba mentioned on nov 12 2010) the reason is that

[web2py] URGENT: Clarification on Auth

2011-06-26 Thread Pystar
I am using Facebook's Registration plugin which allows users to either register or login into a 3rd party site using their facebook account. I would like to know if its possible to get the signed data from facebook and do a manual insert into the user table and still have auth working? or in other

[web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-26 Thread szimszon
Code updated to support python2.5 in generating the md5 checksum. Thanks Peter.

[web2py] vhosts - apache - multiple domains - virtual hosts

2011-06-26 Thread Olympus Runner
Hi, I have one server and one IP address. I use Ubuntu 10.04 with Apache and Web2py. I have the default installation working. I have the following domain names: castle.example.com www.demonstration.com So here is my problem... I want to use Apache and Virtual Hosts for multiple domains. I want

[web2py] Re: web2py with Eclipse

2011-06-26 Thread sebastian
what about the functions defined in the models ? (global functions)

Re: [web2py] vhosts - apache - multiple domains - virtual hosts

2011-06-26 Thread Kenneth Lundström
Hello, I think the best way is to let Apache take care of sort out web2py domains and non web2py domains. If you want to have a PHP site on one vhost and the rest are web2py then you need two vhost files. All web2py domains are pointed towards webpy. Web2py with routes.py takes care of

[web2py] Re: Populate a simple form (without a database)

2011-06-26 Thread Martin Weissenboeck
Thank you very much! Martin 2011/6/25 Anthony abasta...@gmail.com First, I think you want FORM(INPUT(_name='n')), otherwise you'll have an empty form. If you want to pre-populate a form using form.vars.fieldname=somevalue, you have to do that after the form is created, but *before* you call

[web2py] Remote Interfacing with Web2Py

2011-06-26 Thread Arnon Marcus
Hi everybody, I'm searching for a way to interface into a web2py application, that does not use any of the built-in function-decorators. I want to write a service that would run locally, and interact with the web2py server, located on our company server, and serve as a common bridge for multiple

[web2py] Re: Remote Interfacing with Web2Py

2011-06-26 Thread Massimo Di Pierro
Please do not use exec_environment. Can you tell us more what kind of interface you need? What is the purpose? There are various way to interface and which one you use depend on the purpose: 1) web2py.py -S app -M -N -R yourcode.py 2) From your code db =

[web2py] Re: Cannot operate on a closed database

2011-06-26 Thread Massimo Di Pierro
I found the cause it this problem. It is not a bug in web2py but something to be careful about in your programs. You have a models/meteo.py which imports modules/meteo.py. models/meteo.py does current.database = db and modules/mete.py does db = current.database the problem is that the

[web2py] Re: URGENT: Clarification on Auth

2011-06-26 Thread Pystar
Still awaiting my response thanks guys On Jun 26, 8:36 am, Pystar aitoehi...@gmail.com wrote: I am using Facebook's Registration plugin which allows users to either register or login into a 3rd party site using their facebook account. I would like to know if its possible to get the signed data

[web2py] web2py 1.97.1 is OUT

2011-06-26 Thread Massimo Di Pierro
Not many changes but lots of small bug fixes that make things work better. generic fields are now disabled by default for old app and only enabled on localhost for new apps. This is a security improvement that was discussed extensively here, was release in 1.96.x but was still not working as it

[web2py] Re: how to use contrib/login_methods/linkedin_account.py

2011-06-26 Thread Luis Goncalves
An update (getting closer, but still problems): It seems there are a couple more errors in linkedin_account.py: There is an extraneous command which must have been left over from sample code: profile = self.api.GetProfile(profile).public_url = http://www.linkedin.com/in/ozgurv;

[web2py] Re: how to download an audio file

2011-06-26 Thread Anthony
On Sunday, June 26, 2011 1:10:48 AM UTC-4, weheh wrote: p.s. Massimo - is this anywhere in the doc? If not, I can put it in there for the community. Which chapter should it be in? I would never have figured this out without your response!!! For static file requests, it looks like

[web2py] Re: how to use contrib/login_methods/linkedin_account.py

2011-06-26 Thread Luis Goncalves
One more clue: In the infinite loop, every loop through the linkedin grant access (/oas/oauth/authorize) page has a new oauth_token, such as https://www.linkedin.com/uas/oauth/authorize?oauth_token=f9eef16e-4f45-4f5e-aa5f-82ab18ad3a16 L.

Re: [web2py] Re: web2py with Eclipse

2011-06-26 Thread Pierre Thibault
2011/6/26 sebastian sebastianov...@gmail.com what about the functions defined in the models ? (global functions) Pydev won't see them because they are imported implicitly by web2py. You can use the if 0: trick so the static code analyzer will not complain: if 0: from

Re: [web2py] Re: Cannot operate on a closed database

2011-06-26 Thread Manuele Pesenti
On 26/06/2011 20:03, Massimo Di Pierro wrote: Hope this makes sense. thanks a lot I got it now :) Manuele

[web2py] Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J.
I just updated to trunk; I also modified the auth table and added an extra few fields, I added Field('key','string') as well I added auth.signature Each time I try to login now Login fails with invalid login. Is there something I have to do enable this? Thanks. David

[web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J.
By the way I forgot to mention this is only for existing users; Not new ones; I created a new user and I can login with that account. On 6/26/11 3:50 PM, David J. wrote: I just updated to trunk; I also modified the auth table and added an extra few fields, I added Field('key','string') as

[web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J.
I noticed the password in the last user I added is in plain text and no longer encrypted/hashed? On 6/26/11 3:50 PM, David J. wrote: I just updated to trunk; I also modified the auth table and added an extra few fields, I added Field('key','string') as well I added auth.signature Each

[web2py] Re: web2py 1.97.1 is OUT

2011-06-26 Thread apple
{{=LOAD(f='list.load', ajax=True, vars=dict(table='customer'))}} Works fine but if I change to ajax=False then it gives a restricted error. On Jun 26, 7:29 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Not many changes but lots of small bug fixes that make things work better.

Re: [web2py] Re: Remote Interfacing with Web2Py

2011-06-26 Thread Jason Brower
Massimo is right and I support him. No exec unless ABSOLUTELY needed, and I mean it. :P Running the web2py as a service does a good job. From what you say, you could do as massimo says and create a service to handle that special communication. Basically, I am just seconding Massimo cause he

Re: [web2py] LessCSS -- really interesting CSS compiler

2011-06-26 Thread Jason Brower
As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others. I am personally planning to use the python code in my css generation as I need to do a bit of math and want variables

Re: [web2py] Bounties

2011-06-26 Thread Jason Brower
In email On 06/24/2011 02:00 PM, villas wrote: I notice that group member Dwayne was offering a 'bounty' to the project for information etc. I really like this idea and I wonder what others thought. It provides an incentive to provide more functionality and gives people an excuse to

[web2py] how strongly coupled are LOAD with web2py_ajax.html and web2py_ajax.js ?

2011-06-26 Thread Sebastian E. Ovide
Hi All, just wondering how strongly coupled are the web2py LOAD with the ajax componetnts present in the applications... (web2py_ajax.html and web2py_ajax.js for example) I mean, would an old application that works fine with an old web2py, still work on a newer web2py version which has changed

[web2py] Re: experimental in trunk... common_fields and precints

2011-06-26 Thread villas
The tables defined with a request_tenant field have the multi-tenant feature. If you want a 'global' table, then define it before you start using the request_tenant field.

[web2py] Re: web2py 1.97.1 is OUT

2011-06-26 Thread Massimo Di Pierro
Can you call the list.load action directly? Do you get a ticket? On Jun 26, 3:01 pm, apple simo...@gmail.com wrote: {{=LOAD(f='list.load', ajax=True, vars=dict(table='customer'))}} Works fine but if I change to ajax=False then it gives a restricted error. On Jun 26, 7:29 pm, Massimo Di

[web2py] Re: how strongly coupled are LOAD with web2py_ajax.html and web2py_ajax.js ?

2011-06-26 Thread Massimo Di Pierro
There should be no coupling at all. Anyway all changes to LOAD and or web2py_ajax (and I mean intentional changes, not bugs) are implemented with backward compatibility in mind. On Jun 26, 3:36 pm, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: Hi All, just wondering how strongly coupled

[web2py] Re: how strongly coupled are LOAD with web2py_ajax.html and web2py_ajax.js ?

2011-06-26 Thread Anthony
The new version of web2py_ajax.html/web2py_ajax.js should work the same as the old web2py_ajax.html, so you shouldn't need to update if you don't want to. Most of the original file was separated into a .js file in static (a) so the content can be cached by browsers instead of being sent on

[web2py] Re: experimental in trunk... common_fields and precints

2011-06-26 Thread Chris S
So does that mean tables defined before: db._common_fields=[Field('request_precinct',default=request.env.http_host,writable=False,readable=False)] Don't get populated with the common field? If so that's great, lets you define which tables get fields, or even have several levels of common fields.

[web2py] Re: experimental in trunk... common_fields and precints

2011-06-26 Thread Massimo Di Pierro
correct On Jun 26, 4:05 pm, Chris S sanders.ch...@gmail.com wrote: So does that mean tables defined before: db._common_fields=[Field('request_precinct',default=request.env.http_host,w ritable=False,readable=False)] Don't get populated with the common field? If so that's great, lets you

[web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread villas
Try changing the field name 'key' which is likely to cause issues because it has been a reserved word.

Re: [web2py] Re: how strongly coupled are LOAD with web2py_ajax.html and web2py_ajax.js ?

2011-06-26 Thread Sebastian E. Ovide
great ! On Sun, Jun 26, 2011 at 10:01 PM, Anthony abasta...@gmail.com wrote: In general, when you upgrade to a new web2py version, you shouldn't need to update your applications, though you may want to in order to take advantage of some new features (or bug/security fixes). -- Sebastian

Re: [web2py] Re: Web2py plus standard LAMP server functionality?

2011-06-26 Thread villas
Windows: C:\WINDOWS\system32\drivers\etc\hosts

[web2py] A mvc-mini-profiler for GAE

2011-06-26 Thread mikech
http://bjk5.com/post/6944602865/google-app-engine-mini-profiler

Re: [web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J
Still not working I actually reset s password on a test account and it worked. So something else must be causing this error On Jun 26, 2011 5:33 PM, villas villa...@gmail.com wrote: Try changing the field name 'key' which is likely to cause issues because it has been a reserved word.

[web2py] Re: web2py 1.97.1 is OUT

2011-06-26 Thread apple
yes. works fine if I just type it in the url box. On Jun 26, 9:57 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you call the list.load action directly? Do you get a ticket? On Jun 26, 3:01 pm, apple simo...@gmail.com wrote: {{=LOAD(f='list.load', ajax=True,

Re: [web2py] Re: web2py with Eclipse

2011-06-26 Thread Sebastian E. Ovide
Thanks Pierr, I was trying to do that but it is not working... actually I have a bunch of imports insede that if 0 trick that solve all the web2py dependencies errors... the only errors stil there are those due to functions in my model files (as for example the models of my plugins) I've tried

Re: [web2py] Re: web2py with Eclipse

2011-06-26 Thread Sebastian E. Ovide
add info: from applications.soso.models import my_db_helper_here eclipse give this error: Unresolved import: my_db_helper_here Unused import: my_db_helper_here On Sun, Jun 26, 2011 at 11:43 PM, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: Thanks Pierr, I was trying to do that but

[web2py] Re: web2py 1.97.1 is OUT

2011-06-26 Thread Massimo Di Pierro
How about you specify the controller? {{=LOAD('default','list.load', ajax=False, vars=dict(table='customer'))}} On Jun 26, 5:18 pm, apple simo...@gmail.com wrote: yes. works fine if I just type it in the url box. On Jun 26, 9:57 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote:

[web2py] Re: web2py 1.97.1 is OUT

2011-06-26 Thread apple
no difference. with ajax=True it works. with ajax=False it throws a restricted error. On Jun 26, 11:50 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: How about you specify the controller? {{=LOAD('default','list.load', ajax=False, vars=dict(table='customer'))}} On Jun 26, 5:18 pm,

[web2py] Re: web2py 1.97.1 is OUT

2011-06-26 Thread Massimo Di Pierro
I cannot reproduce this. I just tried this and it works: def index(): load = LOAD(f='test.load',ajax=False,vars=dict(table='customer')) return locals() def test(): return 'hello world' Would you send me a minimalist app so I can reproduce it. It is not a good idea to call an action

Re: [web2py] Re: web2py with Eclipse

2011-06-26 Thread Pierre Thibault
2011/6/26 Sebastian E. Ovide sebastian.ov...@gmail.com add info: from applications.soso.models import my_db_helper_here eclipse give this error: Unresolved import: my_db_helper_here Unused import: my_db_helper_here Is the web2py folder in your path? I guess you are missing a level. Try

[web2py] Re: LessCSS -- really interesting CSS compiler

2011-06-26 Thread Joe Barnhart
I guess we could roll our own. But I see it more like jQuery and other add-ins. Life would be very difficult if we tried to duplicate _everything_ in Python! This looks easy to use, it's pretty small, and sort of... well... elegant for lack of a better word. It is aesthetically pleasing as

[web2py] Re: LessCSS -- really interesting CSS compiler

2011-06-26 Thread Massimo Di Pierro
I agree. Moreover when we move stuff like this to the client our apps get faster, when we move it to the server they get slower. On Jun 26, 10:55 pm, Joe Barnhart joe.barnh...@gmail.com wrote: I guess we could roll our own.  But I see it more like jQuery and other add-ins.  Life would be very

Re: [web2py] Re: experimental in trunk... common_fields and precints

2011-06-26 Thread Jason (spot) Brower
I just found this thread. This is an awesome feature I could see using a lot in the future. BR, Jason On Mon, Jun 27, 2011 at 12:09 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: correct On Jun 26, 4:05 pm, Chris S sanders.ch...@gmail.com wrote: So does that mean tables defined