'Which template folder to use for views/layout.html
NB Only themes in modules/templates are supported now'

def get_theme(self):

    theme = self.base.get('theme', 'default')
    if ('.' in theme):
        (theme_location, theme) = theme.split('.', 1)
        current.response.s3.theme_location = ('%s/' % theme_location)
    else:
        current.response.s3.theme_location = ''
    return theme
