def _custom_view(filename):
 templates = settings.get_template()
 if (templates != 'default'):
  folder = request.folder
  template_location = settings.get_template_location()
  if (not isinstance(templates, (tuple, list))):
   templates = (templates,)
  for template in templates[::(-1)]:
   view = os.path.join(folder, template_location, 'templates', template, 'views', ('%s.html' % filename))
   if os.path.exists(view):
    try:
     response.view = open(view, 'rb')
    except IOError:
     from gluon.http import HTTP
     raise HTTP('404', ('Unable to open Custom View: %s' % view))
    else:
     break

def _custom_view ( filename ) : templates = settings . get_template ( ) if ( templates != 'default' ) : folder = request . folder template_location = settings . get_template_location ( ) if ( not isinstance ( templates , ( tuple , list ) ) ) : templates = ( templates , ) for template in templates [ : : ( - 1 ) ] : view = os . path . join ( folder , template_location , 'templates' , template , 'views' , ( '%s.html' % filename ) ) if os . path . exists ( view ) : try : response . view = open ( view , 'rb' ) except IOError : from gluon . http import HTTP raise HTTP ( '404' , ( 'Unable to open Custom View: %s' % view ) ) else : break
see if there is a custom view for a page & .