コード例 #1
0
class MainController(BaseController):

    def __init__(self):
        self.version = Version(session, request)

    def index(self):
        if self.version.getVersion() == "mobile":
            return render( "/m.index.html" )
        #return render( "/index.html" )
        #
        # We're going to send everyone to mobile now, Desktop app is served from 2011.foss4g.org
        #
        return render( "/m.index.html" )
コード例 #2
0
 def __init__(self):
     self.version = Version(session, request)