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
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
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
://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
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
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() {
>
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
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
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
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
10 matches
Mail list logo