예제 #1
0
    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')
예제 #2
0
 def __init__(self):
     SidebarPage.__init__(self)
예제 #3
0
	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 + """')" """
예제 #6
0
 def __init__(self):
     SidebarPage.__init__(self)
     self.tag = self.version = self.edition = None