def deploy_index():
 response = current.response
 def prep(r):
  default_url = URL(f='mission', args='summary', vars={})
  return current.s3db.cms_documentation(r, 'RDRT', default_url)
 response.s3.prep = prep
 output = current.rest_controller('cms', 'post')
 view = path.join(current.request.folder, 'modules', 'templates', THEME, 'views', 'deploy', 'index.html')
 try:
  response.view = open(view, 'rb')
 except IOError:
  from gluon.http import HTTP
  raise HTTP(404, ('Unable to open Custom View: %s' % view))
 return output

def deploy_index ( ) : response = current . response def prep ( r ) : default_url = URL ( f = 'mission' , args = 'summary' , vars = { } ) return current . s3db . cms_documentation ( r , 'RDRT' , default_url ) response . s3 . prep = prep output = current . rest_controller ( 'cms' , 'post' ) view = path . join ( current . request . folder , 'modules' , 'templates' , THEME , 'views' , 'deploy' , 'index.html' ) try : response . view = open ( view , 'rb' ) except IOError : from gluon . http import HTTP raise HTTP ( 404 , ( 'Unable to open Custom View: %s' % view ) ) return output
custom module homepage for deploy to display online documentation for the module .