[web2py] Re: REF: Bare Ajax Login

2014-04-27 Thread select
user['groups'] = [row.auth_group.role for row in db(db. auth_membership.user_id == auth.user.id)( db.auth_membership.group_id == db.auth_group.id).select()] success = True; else: message = 'invalid login' from gluon.contri

Re: [web2py] Re: REF: Bare Ajax Login

2014-04-23 Thread select
24, 2014 12:05:10 AM UTC+2, select wrote: > > Was fighting with the problem in 2011 and still do, how to log in with > ajax? > The problem is that I have a one pager app with client site js code that > needs to register if the user is logged in > when I login with e.g. > in

Re: [web2py] Re: REF: Bare Ajax Login

2014-04-23 Thread select
Was fighting with the problem in 2011 and still do, how to log in with ajax? The problem is that I have a one pager app with client site js code that needs to register if the user is logged in when I login with e.g. index.html: js code: web2py_component(localconfig.baseurl + '/default/user.loa

[web2py] Re: Check it out: PURE AJAX file uploads :D

2013-04-24 Thread select
://stackoverflow.com/questions/4856917/jquery-upload-progress-and-ajax-file-upload/4943774#4943774 On Wednesday, April 24, 2013 6:24:55 PM UTC+2, select wrote: > > so what do these drop loaders do to make pure ajax file uploads, i was not > aware of that o_O > > On Wednesday, April 24, 2013 6

[web2py] Re: Check it out: PURE AJAX file uploads :D

2013-04-24 Thread select
so what do these drop loaders do to make pure ajax file uploads, i was not aware of that o_O On Wednesday, April 24, 2013 6:19:09 PM UTC+2, Niphlod wrote: > > it's not that I don't like the use of native js api, but if the tradeoff > is transmitting as base64 that's not an implementation I want

[web2py] Re: Check it out: PURE AJAX file uploads :D

2013-04-24 Thread select
sibile. > > On Wednesday, April 24, 2013 5:31:48 PM UTC+2, select wrote: >> >> in your client side js code use the js file api (this is for one file, >> but multi file upload can be done too) >> >> $('#datafile-uploadfield').change(function() { >

[web2py] Check it out: PURE AJAX file uploads :D

2013-04-24 Thread select
in your client side js code use the js file api (this is for one file, but multi file upload can be done too) $('#datafile-uploadfield').change(function() { var upload_element = $(this)[0]; var file = upload_element.files[0]; if (file) { var reader = new FileReader(); read

Re: [web2py] Coding of the future?

2013-02-01 Thread select
On Thursday, January 31, 2013 1:26:45 PM UTC+1, Johann Spies wrote: > > > > On 31 January 2013 13:03, Jason Brower >wrote: > >> Interesting that we have coding tools built into our framework. >> http://www.webdesignerdepot.com/2013/01/web-ides-the-future-of-coding/ >> >> > When webeditors become

[web2py] Re: python 2.5 problem: ValueError: Invalid boundary in multipart form: ''

2013-02-01 Thread select
thanks I will test that, but then the mac problem still remains On Tuesday, January 29, 2013 5:02:21 PM UTC+1, Niphlod wrote: > > windows build should be against python 2.7.3 > > On Tuesday, January 29, 2013 3:52:27 PM UTC+1, select wrote: >> >> When uploading zip files in

[web2py] python 2.5 problem: ValueError: Invalid boundary in multipart form: ''

2013-01-29 Thread select
When uploading zip files in a form I get this error Traceback (most recent call last): File "gluon/main.py", line 503, in wsgibase File "gluon/main.py", line 321, in parse_get_post_vars File "cgi.pyc", line 534, in __init__ File "cgi.pyc", line 659, in read_multi File "cgi.pyc", line 534, in __init