def supplier():
 get_vars['organisation_type.name'] = 'Supplier'
 table = s3db.org_organisation
 s3.crud_strings.org_organisation = Storage(label_create=T('Create Supplier'), title_display=T('Supplier Details'), title_list=T('Suppliers'), title_update=T('Edit Supplier'), title_upload=T('Import Suppliers'), label_list_button=T('List Suppliers'), label_delete_button=T('Delete Supplier'), msg_record_created=T('Supplier added'), msg_record_modified=T('Supplier updated'), msg_record_deleted=T('Supplier deleted'), msg_list_empty=T('No Suppliers currently registered'))
 s3db.configure('org_organisation', create_next=URL(c='inv', f='supplier', args=['[id]', 'read']))
 return s3db.org_organisation_controller()

def supplier ( ) : get_vars [ 'organisation_type.name' ] = 'Supplier' table = s3db . org_organisation s3 . crud_strings . org_organisation = Storage ( label_create = T ( 'Create Supplier' ) , title_display = T ( 'Supplier Details' ) , title_list = T ( 'Suppliers' ) , title_update = T ( 'Edit Supplier' ) , title_upload = T ( 'Import Suppliers' ) , label_list_button = T ( 'List Suppliers' ) , label_delete_button = T ( 'Delete Supplier' ) , msg_record_created = T ( 'Supplier added' ) , msg_record_modified = T ( 'Supplier updated' ) , msg_record_deleted = T ( 'Supplier deleted' ) , msg_list_empty = T ( 'No Suppliers currently registered' ) ) s3db . configure ( 'org_organisation' , create_next = URL ( c = 'inv' , f = 'supplier' , args = [ '[id]' , 'read' ] ) ) return s3db . org_organisation_controller ( )
restful crud controller .