def awake(self, transaction): SidebarPage.awake(self, transaction) req = self.request() ses = self.session() if req.hasField('version') and req.hasField( 'edition') and req.hasField('tag'): ses.setValue('version', req.value('version')) ses.setValue('edition', req.value('edition')) ses.setValue('tag', req.value('tag')) elif req.hasField('version'): ses.setValue('version', req.value('version')) if ses.hasValue('edition'): ses.delValue('edition') if ses.hasValue('tag'): ses.delValue('tag')
def __init__(self): SidebarPage.__init__(self)
def __init__(self): self.error=None SidebarPage.__init__(self)
def htBodyArgs(self): if self.error: return SidebarPage.htBodyArgs(self) + """ onload="javascript:alert('""" + self.error.errortext + """')" """
def __init__(self): SidebarPage.__init__(self) self.tag = self.version = self.edition = None