summaryrefslogtreecommitdiff
path: root/examples/console/web/index.py
blob: 81f275906e95e61d27fd0c1307243a4ab54d60f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from console.sitepage import SitePage
from console.JSONComponent import JSONComponent

global_namespace = {}

class index(SitePage):

    components = SitePage.components + [
        JSONComponent(baseConfig='console')]

    def setup(self):
        self.options.title = 'Console'
        
    def jsonMethods(self):
        return ['run']
    
    def run(self):
        return 'Cool dude!'