Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python View Controller for decoupled website architectures?

Thread Tools

python View Controller for decoupled website architectures?

Alec Taylor
Posts: n/a
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?


Alec Taylor
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MVC web-framework with RESTfully Decoupled Views? Alec Taylor Python 0 12-07-2012 10:29 AM
Timer controlled process, influenced by "simultaneous" (decoupled)keyboard keypresses John Reye C Programming 6 11-07-2012 02:35 PM
How decoupled are the Python frameworks? shocks Python 6 12-09-2009 05:47 PM
Question regarding decoupled Factory Scaramanga Java 6 12-05-2005 08:02 PM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM