def runSession(self):
     self.cookie['date'] = time.time()
     interface = BaseInterface(self.form, self.cookie)
     interface.init(title='cookie test')
     if self.validCookie:
         interface.page.add('Using Existing Cookie')
     else:
         interface.page.add('No Cookie Found')
     print self.cookie
     print interface.getPage()
 def __init__(self, filename, config, form, cookie):
     BaseInterface.__init__(self, form, cookie, config)
     self.fp = None
     self.filename = filename
     self.log = logging.getLogger('FileViewInterface')
 def __init__(self, dirName, config, form, cookie):
     BaseInterface.__init__(self, form, cookie, config)
     self.dirName = dirName
     self.log = logging.getLogger('DirViewInterface')