def PostContext(self, **kwargs): sid=kwargs.get("sid") if self.HasPostData('ok'): sidebarInfo=Sidebar(id=sid) sidebarInfo.name=self.GetPostData("name") sidebarInfo.description=self.GetPostData("description") sidebarInfo.save() self.redirectUrl="/admin/sidebarlist/" return locals()
def PostContext(self, **kwargs): if self.HasPostData('ok'): sidebarInfo = Sidebar() sidebarInfo.id = self.GetPostData("id") sidebarInfo.name = self.GetPostData("name") sidebarInfo.description = self.GetPostData("description", sidebarInfo.name) sidebarInfo.save() return locals()
def PostContext(self, **kwargs): if self.HasPostData('ok'): sidebarInfo=Sidebar() sidebarInfo.id=self.GetPostData("id") sidebarInfo.name=self.GetPostData("name") sidebarInfo.description=self.GetPostData("description",sidebarInfo.name) sidebarInfo.save() return locals()
def PostContext(self, **kwargs): sid = kwargs.get("sid") if self.HasPostData('ok'): sidebarInfo = Sidebar(id=sid) sidebarInfo.name = self.GetPostData("name") sidebarInfo.description = self.GetPostData("description") sidebarInfo.save() self.redirectUrl = "/admin/sidebarlist/" return locals()