Tip: Click lines to highlight, hold ctrl/cmd to multi-select

http://codedumper.com/evege (3-Jul @ 17:30)

Syntax Highlighted Code

  1. class ClientsWorkspace(ExtJSONView):
  2.     context(my_application)
  3.     contains('clients') #the id of the container
  4.    
  5.     listing_fields(['name','email',]) #columns for the ExtJSGrid
  6.     default_view('addform') #a view that return a ExtForm in JSON format
  7.  
  8.     bind_url('editclient') #the view that will return the JSON to show on click event
  9.  
  10.  

Plain Code

class ClientsWorkspace(ExtJSONView):
    context(my_application)
    contains('clients') #the id of the container
    
    listing_fields(['name','email',]) #columns for the ExtJSGrid
    default_view('addform') #a view that return a ExtForm in JSON format

    bind_url('editclient') #the view that will return the JSON to show on click event

Permalink: http://codedumper.com/evege