python View Controller for decoupled website architectures?

A

Alec Taylor

I'm developing a database (Model Controller) in Python (web2py) that exposes APIs in REST (HTTP)[CSV, XML, JSON] and RPC (XML, JSON).

The client I'm developing in JavaScript to interface with my remote database via its API.

Unfortunately JavaScript is rather troublesome when it comes to managing user-sessions, routing and RBACing templates (e.g.: `if "admin" in user.role: <h1>Caution: you are logged in as admin</h1>`).

Is there a Pythonic way of managing the client-side? - E.g.: Skulpt, Pyjamas or some way of getting web2py views to work with remote calls - If so, can you show me some boilerplate for session control, routing and RBAC templates?

Thanks,

Alec Taylor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top