def onInit(self): osiris.IPortalPage.onInit(self) self.username = osiris.HtmlTextBox() self.username.css = "os_input_full" self.username.id = "username" self.password = osiris.HtmlTextBox() self.password.id = "password" self.password.css = "os_input_full" self.password.password = True self.savePassword = osiris.HtmlCheckBox() self.savePassword.id = "savePassword" self.cmdLogin = osiris.IdeButton( self.getText("portal.pages.login.actions.login")) self.cmdLogin.id = "login" self.cmdLogin.isDefault = True osiris.events.connect(self.cmdLogin.eventClick, self.onLogin) self.cmdCancel = osiris.IdeButton( self.getText("common.actions.cancel")) self.cmdCancel.id = "cancel" osiris.events.connect(self.cmdCancel.eventClick, self.onCancel)
def onInit(self): osiris.IMainPage.onInit(self) self.userid = self.session.request.getUrlParam("id") if ((self.userid == None) or (self.userid == "")): self.redirect("home") return #self.username = osiris.HtmlTextBox() #self.username.css = "os_input_full" #self.username.id = "username" self.password = osiris.HtmlTextBox() self.password.id = "password" self.password.size = 20 self.password.password = True self.savePassword = osiris.HtmlCheckBox() self.savePassword.id = "savePassword" self.cmdLogin = osiris.IdeButton( self.getText("main.pages.login.actions.login")) self.cmdLogin.id = "login" self.cmdLogin.isDefault = True osiris.events.connect(self.cmdLogin.eventClick, self.onLogin)
def onInit(self): osiris.IMainPage.onInit(self) #self.portal = self.getPortalFromUrl() #if self.portal == None: # self.redirect("home") # return self.username = osiris.HtmlTextBox() self.username.css = "os_input_full" self.username.id = "username" self.password = osiris.HtmlTextBox() self.password.id = "password" self.password.attributes.set("data-os-otype","password") self.password.attributes.set("data-os-login","page_username") self.password.css = "os_input_full" self.password.password = True self.passwordChecker = osiris.HtmlTextBox() self.passwordChecker.id = "passwordChecker" self.passwordChecker.css = "os_input_full" self.passwordChecker.password = True self.secretQuestion = osiris.HtmlTextBox() self.secretQuestion.id = "secretQuestion" self.secretQuestion.css = "os_input_full" self.secretResponse = osiris.HtmlTextBox() self.secretResponse.id = "secretResponse" self.secretResponse.css = "os_input_full" self.secretResponse.password = True self.secretResponseChecker = osiris.HtmlTextBox() self.secretResponseChecker.id = "secretResponseChecker" self.secretResponseChecker.password = True self.savePassword = osiris.HtmlCheckBox() self.savePassword.id = "savePassword" self.cmdRegister = osiris.IdeButton(self.getText("portal.pages.register.actions.register")) self.cmdRegister.id = "register" self.cmdRegister.isDefault = True osiris.events.connect(self.cmdRegister.eventClick, self.onRegister) self.cmdCancel = osiris.IdeButton(self.getText("common.actions.cancel")) self.cmdCancel.id = "cancel" osiris.events.connect(self.cmdCancel.eventClick, self.onCancel)
def __init__(self, session): osiris.IMainPage.__init__(self, session) self.input = osiris.IdeOMLEditor() self.input.id = "input" self.expression = osiris.IdeOMLEditor() self.expression.id = "expression" self.noCase = osiris.HtmlCheckBox() self.noCase.caption = "Case insensitive" self.noCase.id = "nocase" self.format = osiris.IdeOMLEditor() self.format.id = "format" self.compute = osiris.HtmlButton() self.compute.caption = "Compute" self.compute.id = "compute"