[web2py] Re: Image store with open does not work on GAE

2013-02-03 Thread Sebastian Cambeo
OK, I created a minimal scenario for reproducing the error: append these lines to the welcome db.py, create test.jpg in root folder and deploy directly to GAE: db.define_table('table1', Field('image', 'upload'), ) db.table1.insert(image = open('test.jpg', 'rb')) Then call welcome/appadmin

[web2py] Re: RuntimeError: Unable to handle upload

2013-02-03 Thread Alan Etkin
Yes. That is what I meant. I even chased down the call in the code to see where you got it. Tried this in a console and it works, I could not reproduce the error. # myfile is an open file object file_id=db.mytable.insert(myupload=db.mytable.myupload.store(myfile,

[web2py] Web2py Ajax Problem

2013-02-03 Thread Apoorve Mohan
Hi I am firing Ajax calls from a webpage. If any AJAX call hangs in between then the others also hangs until the hanged AJAX returns. Is this a Web2py Bug or my applications bug Below is my code: {{extend 'layout.html'}} script type=text/javascript setInterval(test1,1000); function

[web2py] Re: Record versioning on delete CASCADE

2013-02-03 Thread Felipe Meirelles
Good point. But in my point of view you wont use record versioning at all your tables, just in the ones that have sensitive data. And yet, you dont use ondelete cascade in all tables too... I still think record versioning should have this standard behaviour. On Sunday, February 3, 2013 1:14:21

[web2py] How to make contains case sensitive?

2013-02-03 Thread Andriy
db.define_table( 'event', (info, 'list:string', default=[]) ) events=db(db.event.info.contains( ['red', 'blue'] )).select() - returns events if 'Red' or 'Blue' in event.info. But I need case sensitive cross search of two lists. In the book it says that .like has case_sensitive=True option.

[web2py] Team search

2013-02-03 Thread sasogeek
I'm in search of a team to help me build an app, one that can potentially compete with Facebook Twitter and Google, and possibly even Youtube depending on how people use it. I don't know where to start from to search for people familiar with web2py to help me so I was thinking maybe the google

[web2py] Re: Regarding one Ajax call blocked by another Ajax call

2013-02-03 Thread Anthony
By default, the session file is locked upon each request, so a new request from the same client is blocked until the previous request is completed and the session file is unlocked (see herehttp://web2py.com/books/default/chapter/29/04#session). To avoid this problem, you can do one of the

Re: [web2py] LinkedIn?

2013-02-03 Thread Marin Pranjić
Bump, one more try On Sat, Feb 2, 2013 at 12:07 PM, Marin Pranjić marin.pran...@gmail.comwrote: Hello, I am using this http://code.google.com/p/python-linkedin/ as a linkedin api but I don't like it. I guess the API has changed and it's not maintained anymore. Is there a better one?

[web2py] Re: having a problem with the online editor

2013-02-03 Thread JFroles
throwing Uncaught ReferenceError: CodeMirror is not defined On Saturday, February 2, 2013 8:51:58 PM UTC-5, Niphlod wrote: then try to install firebug in firefox and turn on the console to see the error in javascript (there should be one) On Saturday, February 2, 2013 8:24:13 PM UTC+1,

[web2py] Re: having a problem with the online editor

2013-02-03 Thread Niphlod
do you have an application/admin/static/codemirror folder with some files and folders in it ? On Sunday, February 3, 2013 6:48:46 PM UTC+1, JFroles wrote: throwing Uncaught ReferenceError: CodeMirror is not defined On Saturday, February 2, 2013 8:51:58 PM UTC-5, Niphlod wrote: then try to

[web2py] Re: having a problem with the online editor

2013-02-03 Thread JFroles
Yep. Before the CodeMirror error its also giving: Uncaught SyntaxError: Unexpected token : the error is pointing to codemirror.js line 1523 which is showing up as this. 1517 function TextMarker() { this.set = []; } 1518 TextMarker.prototype.clear = operation(function() { 1519 var min =

[web2py] Re: How to make contains case sensitive?

2013-02-03 Thread Massimo Di Pierro
Please open a ticket about this and we will look into alterantives. On Sunday, 3 February 2013 07:38:22 UTC-6, Andriy wrote: db.define_table( 'event', (info, 'list:string', default=[]) ) events=db(db.event.info.contains( ['red', 'blue'] )).select() - returns events if 'Red' or 'Blue' in

[web2py] Problem with modules and database

2013-02-03 Thread Sebastian Bonta
Hi All, I now this should have been probably answered before but I wasn't able to find a solution and since I'm newbie I'm not able to understand why this is not working as I expect. I've tried many things and now I'm giving up after trying to simulate the Movuca schema which I liked. Here's

[web2py] simulate a join in google app engine

2013-02-03 Thread Hallak Sidali
how to simulate a join in google app engine using web2py -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more

[web2py] Re: contribute: db diagram for web2py appadmin

2013-02-03 Thread Paolo Caruccio
first post updated with latest version. Il giorno venerdì 1 febbraio 2013 21:21:28 UTC+1, Massimo Di Pierro ha scritto: Can you post a link to the latest? On Thursday, 31 January 2013 08:31:53 UTC-6, Paolo Caruccio wrote: first post updated: replaced following files db_diagram.html

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread sasogeek
Can i have an example of the full code... like replace your_html with an example code On Sunday, 3 February 2013 03:16:30 UTC, Massimo Di Pierro wrote: {{form gluon.contrib.autolinks import expand_html}} {{=XML(expand_html(your_html),cache.ram('mycachekey',lambda:dict(),3600)}} will do what

[web2py] has anybody tried this for web2py - amazon?

2013-02-03 Thread Massimo Di Pierro
https://hub.turnkeylinux.org/amazon/launch/web2py/ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options,

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread Massimo Di Pierro
{{extend 'layout.html'}} {{html = Did you watch this video?br/ http://www.youtube.com/watch?v=HEheh1BH34Q }} {{form gluon.contrib.autolinks import expand_html}} {{=XML(expand_html(your_html),cache.ram('mycachekey',lambda:dict(),3600)}} On Sunday, 3 February 2013 17:40:59 UTC-6, sasogeek

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread sasogeek
type 'exceptions.RuntimeError' Missing BeautifulSoup On Monday, 4 February 2013 00:02:17 UTC, Massimo Di Pierro wrote: {{extend 'layout.html'}} {{html = Did you watch this video?br/ http://www.youtube.com/watch?v=HEheh1BH34Q }} {{form gluon.contrib.autolinks import expand_html}}

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread Massimo Di Pierro
Yes. I forgot. Assuming you are running web2py from source you need to... easy_install beautifulsoup On Sunday, 3 February 2013 18:54:25 UTC-6, sasogeek wrote: type 'exceptions.RuntimeError' Missing BeautifulSoup On Monday, 4 February 2013 00:02:17 UTC, Massimo Di Pierro wrote: {{extend

[web2py] Re: Is there a way to display field label or field value (vs. field name) in smartgrid breadcrumb?

2013-02-03 Thread Michael Beller
I can't find any way around this and it looks like this is not the desired behavior for the grid breadcrumbs. One option is to change my field name but that renders the label property not needed. Is there are way to control or modify the breadcrumbs? On Saturday, February 2, 2013 2:15:48 PM

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread sasogeek
Is installing beautiful soup all I need to do? cos I still get the same error after installing it... On Monday, 4 February 2013 01:09:12 UTC, Massimo Di Pierro wrote: Yes. I forgot. Assuming you are running web2py from source you need to... easy_install beautifulsoup On Sunday, 3

[web2py] Updating data in auth.user.(data)

2013-02-03 Thread Jason Brower
When I change data in auth_user.first_name for example that data doesn't change in the auth.user.first_name. In otherwords, it seems that when I make a change to a users settings in the database that information is not updated in auth.user. Is this the correct behavior? BR, Jason Brower --

[web2py] Re: Logging in with applications.

2013-02-03 Thread encompass
I copied the text from the web2py book online. It should say that they user is then logged in. At least for me it needed to be more descriptive. BR, Jason On Saturday, January 19, 2013 5:22:11 PM UTC+2, Massimo Di Pierro wrote: Where do you read that comment? login_bare does login the user

Re: [web2py] Coding of the future?

2013-02-03 Thread encompass
I personally use scribes. Bluefish, it's been ages since I have ever used that beast. :) It's just interesting to see people coding online now and that web2py is already kinda there. :) BR, J On Thursday, January 31, 2013 2:26:45 PM UTC+2, Johann Spies wrote: On 31 January 2013 13:03,

[web2py] user.user.(data) not updating when I make the change in the database.

2013-02-03 Thread encompass
When I change some data in db.auth_user[auth.user.id].update(bla=bla) I don't get the changes in auth.user.bla. Is this the expected behavior? Kind of a bummer as I would have to quiry the user quite often to make sure things are correct. In my application the users data changes quite a bit. I

[web2py] Re: user.user.(data) not updating when I make the change in the database.

2013-02-03 Thread Anthony
db.auth_user[auth.user.id] is a Row object, so the .update() method is just updating that object. If you want to update the db, use the .update_record() method (see http://web2py.com/books/default/chapter/29/06#update_record), or do: db.auth_user[auth.user_id] = dict(bla=bla) or

[web2py] Re: Logging in with applications.

2013-02-03 Thread Anthony
But that text is preceded by: Some times you want to implement your own logic and do manual user login. This can also be done by calling the function: user = auth.login_bare(username,password) To me, that says you can do a manual user login by calling auth.login_bare() (the method name is

[web2py] Re: Updating data in auth.user.(data)

2013-02-03 Thread Anthony
Yes, that's true. auth.user is stored in and read from the session. On Sunday, February 3, 2013 9:56:21 PM UTC-5, encompass wrote: When I change data in auth_user.first_name for example that data doesn't change in the auth.user.first_name. In otherwords, it seems that when I make a change to

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread Anthony
Are you running web2py from source or using one of the binaries (the binaries include their own Python interpreter, so libraries installed in your local Python installation will not be available to web2py)? Anthony On Sunday, February 3, 2013 9:40:05 PM UTC-5, sasogeek wrote: Is installing