Dear all, I'm a little bit lost with Crypto method.
I need authentication from a mobile app towards web2py.
If I'm not in wrong, web2py now uses sha512 as default to crypt auth user
password.
>From my iOS app I'm sending the password encrypted with the same Hash
Algorithm sha512, because I don't
import gluon.contrib.simplejson
data = gluon.contrib.simplejson.loads(request.body.read())
That was the trick
Thank You Niphlod, You put me in the right direction.
IOS + WEB2PY = beautiful combination!!
Mchurch
Il giorno mercoledì 24 ottobre 2012 09:01:40 UTC+2, Mchurch ha scritto
fr, de, ja, nl, it, es, pt, pt-PT, da, fi, nb, sv, ko, zh-Hans,
> zh-Hant, ru, pl, tr, uk, ar, hr, cs, el, he, ro, sk, th, id, ms, en-GB, ca,
> hu, vi, en-us;q=0.8
>
> *HTTP_CONNECTION*
>
> :
>
> keep-alive
>
> *HTTP_CONTENT_LENGTH*
>
> :
>
> 36
>
> *HTTP_CONTENT_TYPE*
>
> :
>
> application/json; charset=utf-8
>
> *HTTP_HOST*
>
> :
>
> 127.0.0.1:8000
>
> *HTTP_USER_AGENT*
>
> :
>
> mirko.json/1.0 (unknown, iPhone OS 6.0, iPhone Simulator, Scale/1.00)
>
> *PATH_INFO*
>
> :
>
> /Json/default/ricevo
>
> *QUERY_STRING*
>
> :
>
>
> *REMOTE_ADDR*
>
> :
>
> 127.0.0.1
>
> *REMOTE_PORT*
>
> :
>
> 60150
>
> *REQUEST_METHOD*
>
> :
>
> POST
>
> *SCRIPT_NAME*
>
> :
>
>
> *SERVER_NAME*
>
> :
>
> marcos-……
>
> *SERVER_PORT*
>
> :
>
> 8000
>
> *SERVER_PROTOCOL*
>
> :
>
> HTTP/1.1
>
> *SERVER_SOFTWARE*
>
> :
>
> Rocket 1.2.4
>
> *wsgi.errors*
>
> :
>
> ', mode 'w' at 0x10f7b2270>
>
> *wsgi.file_wrapper*
>
> :
>
>
>
> *wsgi.input*
>
> :
>
> ', mode 'w+b' at 0x11c143c00>
>
> *wsgi.multiprocess*
>
> :
>
> False
>
> *wsgi.multithread*
>
> :
>
> True
>
> *wsgi.run_once*
>
> :
>
> False
>
> *wsgi.url_scheme*
>
> :
>
> http
>
> *wsgi.version*
>
> :
>
> 1
>
> IN FILE:
> /USERS/MARCOMchurch/SITES/WEB2PY/APPLICATIONS/JSON/CONTROLLERS/DEFAULT.PY
>
> 1.
>
> 2.
>
> 3.
>
> 4.
>
> 5.
>
> 6.
>
> 7.
>
> 8.
>
> 9.
>
> 10.
>
> 11.
>
> 12.
>
> 13.
>
> 14.
>
> 15.
>
> 16.
>
> 17.
>
> 18.
>
>
> *# -*- coding: utf-8 -*-*
>
> *# this file is released under public domain and you can use without
> limitations*
>
> **
>
> *#
> *
>
> *## This is a samples controller*
>
> *## - index is the default action of any application*
>
> *## - user is required for authentication and authorization*
>
> *## - download is for downloading files uploaded in the db (does
> streaming)*
>
> *## - call exposes all registered services (none by default)*
>
> *#
> *
>
> *……*
>
> *def *ricevo*():*
>
> ***from *json *import *loads*, *dumps
>
> data *=
> *loads*(*request<http://127.0.0.1:8000/examples/global/vars/request>
> *.*vars*)*
>
> ***print *data
>
> *print *request <http://127.0.0.1:8000/examples/global/vars/request>*.
> *vars*.*body*.*read*()*
>
> ***print *request <http://127.0.0.1:8000/examples/global/vars/request>
> *.*vars
>
> *return *dumps*(*data*)*
>
Il giorno martedì 23 ottobre 2012 17:55:34 UTC+2, Niphlod ha scritto:
>
> almost dinner time here :P
>
> On Tuesday, October 23, 2012 5:44:45 PM UTC+2, Mchurch wrote:
>>
>> I'll try, thanks.
>> Ps. Did You eat some snakes for breakfast?
>> :)
>
>
--
I'll try, thanks.
Ps. Did You eat some snakes for breakfast?
:)
--
> On Tuesday, October 23, 2012 3:27:46 PM UTC+2, Mchurch wrote:
>>
>> from the app, no more errors, always that "500".
>>
>>> try to print out request.vars and request.vars.body.read() and see their
>>> contents.
>>>
>>
>> I have
from the app, no more errors, always that "500".
> try to print out request.vars and request.vars.body.read() and see their
> contents.
>
I have to think and study more about that; it's a json call, i can't reach
directly that page, i should give the server response back to the app to
check w
pplication/x-www-form-urlencoded ? multipart/form-data ?
> binary post ?
>
> On Tuesday, October 23, 2012 10:23:16 AM UTC+2, Mchurch wrote:
>>
>> Dear all, I'm trying to send json data from an IOS device to web2py
>> server.
>> I can already receive Json-data
Dear all, I'm trying to send json data from an IOS device to web2py server.
I can already receive Json-data from web2py server on my Iphone, but I'm
not able to send it back again!
>From ios device I'm using Afnetworking framework, but even if i use
something else the error i got is always the sa
?
Il giorno domenica 6 maggio 2012 18:42:02 UTC+2, Yogesh Kamat ha scritto:
>
> Hello Marco,
> 192.168.x.x is a private network IP. Not able to check out..
>
> Regards,
> Yogesh
>
> On Sun, May 6, 2012 at 9:39 PM, Mchurch wrote:
>
>> ThankYou guys.
>> The file w
Good morning to everybody.
I've a web2py application on a windows machine, the public windows ip
machine is 192.168.100.191.
>From my mobile cell (nor tablet..) i can't get localhost.
I tried many times with 0.0.0.0, 127.0.0.1, and even if with the public ip
192.168.100.191 but i always get "SITE
Massimo, You are incredible!!
On 23 Feb, 21:51, Massimo Di Pierro
wrote:
...You pose an interesting challenge.I think it can be done...It
may take a couple of week. remind me if necessary
>
> Meanwhile you can take a more traditional approach:
> 1) learn to program using
> python:http:/
thanks a lot!
On 23 Feb, 15:19, Anthony wrote:
> On Thursday, February 23, 2012 2:27:44 AM UTC-5, Mchurch wrote:
>
> > **{'%s%s' % (Keyword, n): checked})
> > Anthony, can you explain it better? It's something that I would like
> > to understand very we
**{'%s%s' % (Keyword, n): checked})
Anthony, can you explain it better? It's something that I would like
to understand very well.
Tnx.
On 22 Feb, 20:33, Anthony wrote:
> > I have a simple question in turn. How is it possible to make keyword
> > search criteria dynamic? For example:
>
> > db(Order
Pheraps the solution is in IS_IN_DB and orderby...
On 18 Feb, 10:07, Mchurch wrote:
> I have some tables, one is :
> db.define_table('category',
> Field('language_id', db.language),
> Field('is_menu','boolean', default=False),
>
I have some tables, one is :
db.define_table('category',
Field('language_id', db.language),
Field('is_menu','boolean', default=False),
Field('name'),
Field('text'),
Field('order','integer'), format=lambda r: r.name +"/"+
r.language_id.language)
Using the appadmin/insert/db/ ,
Many thanks!! I'll keep You updated guys!
On 27 Dic, 14:33, Khalil KHAMLICHI wrote:
> Yep, you can use pycurl (which has support for cookies) to query the AP and
> load the data into some db with eventually : Ap_name, timestamp, . . . And
> other fields.
e client ip with the request object (request.client).
> But i don't think that access point detection is possible with web
> server or client applications.
>
> On 26 dic, 13:20, Mchurch wrote:
>
>
>
>
>
>
>
> > Merry Christmas and a beautiful happy new Y
Merry Christmas and a beautiful happy new Year to all the web2py's
Family!
I would like to realize an application, it should be something like a
"WiFi treasure hunt" made for mobile phones.
The user must be connected to the wifi intranet and after that i must
know where he is going. With rfid tags
> On Dec 11, 3:44 am, Mchurch wrote:
>
>
>
>
>
>
>
> > Thanks Massimo, I resolve it immediately after Your suggestions using
> > Tornado.
> > Rocket allows images until 123KB, not over in my case.
> > The issue shows up with both Opera mobile an
Massimo, how (where) can I change the default web server?
I can't find it in posts...
On 11 Dic, 10:44, Mchurch wrote:
> Thanks Massimo, I resolve it immediately after Your suggestions using
> Tornado.
> Rocket allows images until 123KB, not over in my case.
> The issue shows u
ver? (look into web2py/anyserver.py)
>
> On Dec 10, 8:12 pm, Mchurch wrote:
>
>
>
>
>
>
>
> > Hallo guys, I'm a newbie in Web2py, but I like it a lot. I didn't
> > want to post for a such stupid question but I'm stuck and don't know
> >
Hallo guys, I'm a newbie in Web2py, but I like it a lot. I didn't
want to post for a such stupid question but I'm stuck and don't know
how to resolve it.
I moved an application from rails to Web2py. basically a dynamic photo
gallery, and everything is working fine on my desktop. But on mobile
pho
22 matches
Mail list logo