python View Controller for decoupled website architectures?

Discussion in 'Python' started by Alec Taylor, Jun 3, 2012.

  1. Alec Taylor

    Alec Taylor Guest

    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
    Alec Taylor, Jun 3, 2012
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scaramanga
    Replies:
    6
    Views:
    389
    Roedy Green
    Dec 5, 2005
  2. Michael Earls
    Replies:
    3
    Views:
    3,270
    MBUnit
    Mar 24, 2009
  3. shocks
    Replies:
    6
    Views:
    411
    mdipierro
    Dec 9, 2009
  4. John Reye
    Replies:
    6
    Views:
    351
    Adam Wysocki
    Nov 7, 2012
  5. Alec Taylor
    Replies:
    0
    Views:
    198
    Alec Taylor
    Dec 7, 2012
Loading...

Share This Page