> My main concern is that web2py's form validation and security features 
are really useful but would clash with the angular way of doing 
> things. It seems to me that the way to get the two working together would 
be to create an alternative to FORM/SQLFORM/CRUD that 
> instead of generating HTML would generate a json object containing all 
the field details and data for angular to then use to build the 
> form or whatever interface is required.

I think you mean something like this:

http://code.google.com/p/plugin-clientapi

Nobody bothered to try it yet. Instead, I keep reading that there's no 
interface between client frameworks and web2py. Also, I really don't get 
why would web2py need to build AngularJS widgets, when you can just define 
the model client-side, by simply doing the following from any web2py app 
(since ~2.4):

def getmodel():
    return db.as_json()

Or, for a more sophisticated setup, retrieve a dictionary with db.as_dict() 
and use it in a .json view or service.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to