... it is incomplete. It is experimental. The API is subject to change. But 
I could use some community feedback:

from py4web.utils.publisher import Publisher, ALLOW_ALL_POLICY


# exposes services necessary to access the db via ajax
publisher = Publisher(db, policy=ALLOW_ALL_POLICY) 


# expose as /examples/grid 
@action('grid') 
@action.uses('grid.html') 
def example_grid(): 
     return dict(grid=publisher.grid(db.person)) 

embed in template with [[=grid]] in templates/grid.html as in web2py. 
The difference from web2py is that the grid communicate with the server via 
ajax and the style is in static/components/mtable.html
Still does not access authentication based access control but will add it 
very soon.

You can try it.
https://github.com/web2py/py4web/blob/master/apps/examples/__init__.py#L41

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/cc53051f-104c-4b20-97a6-c32f8220d052%40googlegroups.com.

Reply via email to