Added module renderers json tsv csv xml
This commit is contained in:
parent
ec48c3b5df
commit
065b3ff0ff
|
@ -44,7 +44,7 @@ def render_csv( model, list ):
|
|||
csv( *[ obj[col] for col in _cols] )
|
||||
|
||||
def render_json( model, list ):
|
||||
json( list.read )
|
||||
json( list.read() )
|
||||
|
||||
#def render_json( model, obj ):
|
||||
def render( opts, model, list ): # +format=json,xml,csv +json +tsv
|
||||
|
|
Loading…
Reference in New Issue