Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WIP: Final stage

git-svn-id: svn://cherokee-project.com/wizards2@6781 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
commit 45081c4f121977861fa2c7d88585befcfcfb4681 1 parent 8ae6319
@alobbs alobbs authored
Showing with 25 additions and 6 deletions.
  1. +25 −6 Wizard2_GUI.py
View
31 Wizard2_GUI.py
@@ -77,15 +77,26 @@ def Render (self):
return Phase.Render(self)
class Phase_Cancel (Phase):
- def __init__ (self, title, caption=None):
+ def __init__ (self, title):
Phase.__init__ (self, title)
- self.buttons_added = False
- self.button_caption = caption
+ self.buttons_added = False
def Render (self):
if not self.buttons_added:
self.buttons_added = True
- self += CTK.DruidButtonsPanel_Cancel (caption = self.button_caption)
+ self += CTK.DruidButtonsPanel_Cancel()
+
+ return Phase.Render(self)
+
+class Phase_Close (Phase):
+ def __init__ (self, title):
+ Phase.__init__ (self, title)
+ self.buttons_added = False
+
+ def Render (self):
+ if not self.buttons_added:
+ self.buttons_added = True
+ self += CTK.DruidButtonsPanel_Close()
return Phase.Render(self)
@@ -398,7 +409,15 @@ def __init__ (self, Install_Class, next_url):
# Select Install Type
#
-class Stage_Finished (Phase_Cancel):
+class Stage_Finished (Phase_Close):
+ class Apply:
+ def __call__ (self):
+ return CTK.cfg_reply_ajax_ok()
+
def __init__ (self):
- Phase_Cancel.__init__ (self, _("Installation Finished"), caption="Close")
+ Phase_Close.__init__ (self, _("Installation Finished"))
self += CTK.RawHTML ('We are done and dusted!')
+
+
+URL_STAGE_FINISHED_APPLY = "/wizard2/stages/finished/apply"
+CTK.publish ('^%s'%(URL_STAGE_FINISHED_APPLY), Stage_Finished.Apply, method="POST")
Please sign in to comment.
Something went wrong with that request. Please try again.