Beispiel #1
0
 def __init__(self, cfg, db):
     self.cfg = cfg
     self.db = db
     RestController.__init__(self, None, None, [cfg, db])
Beispiel #2
0
 def __init__(self, parent, path, books):
     self.booklist = books
     RestController.__init__(self, parent, path, [books])
Beispiel #3
0
 def __init__(self):
     self.books = {'foo' : Book('foo'), 'bar' : Book('bar')}
     RestController.__init__(self, None, None, [self.books])
Beispiel #4
0
 def __init__(self, parent, path, cfg, db):
     self.cfg = cfg
     self.db = db
     RestController.__init__(self, parent, path, [cfg, db])