'Use a custom view template
@param template: name of the template (determines the path)
@param filename: name of the view template file'

@classmethod
def _view(cls, template, filename):

    if ('.' in template):
        (subfolder, template) = template.split('.', 1)
        view = os.path.join(current.request.folder, current.deployment_settings.get_template_location(), 'templates', subfolder, template, 'views', filename)
    else:
        view = os.path.join(current.request.folder, current.deployment_settings.get_template_location(), 'templates', template, 'views', filename)
    try:
        current.response.view = open(view, 'rb')
    except IOError:
        from gluon.http import HTTP
        raise HTTP(404, ('Unable    to    open    Custom    View:    %s' % view))
    return
