Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[6801] wizards2: WIP: Further clean up

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Aug 11, 2011, 4:22 PM

Post #1 of 1 (179 views)
Permalink
[6801] wizards2: WIP: Further clean up

Revision: 6801
http://svn.cherokee-project.com/changeset/6801
Author: alo
Date: 2011-08-12 01:22:48 +0200 (Fri, 12 Aug 2011)
Log Message:
-----------
WIP: Further clean up

Modified Paths:
--------------
wizards2/Wizard2_GUI.py
wizards2/wizards/02-Content Management Systems/wordpress.py

Modified: wizards2/Wizard2_GUI.py
===================================================================
--- wizards2/Wizard2_GUI.py 2011-08-10 11:58:48 UTC (rev 6800)
+++ wizards2/Wizard2_GUI.py 2011-08-11 23:22:48 UTC (rev 6801)
@@ -539,3 +539,28 @@

URL_STAGE_FINISHED_APPLY = "/wizard2/stages/finished/apply"
CTK.publish ('^%s'%(URL_STAGE_FINISHED_APPLY), Stage_Finished.Apply, method="POST")
+
+
+
+#
+# Helpers
+#
+
+def Register_Standard_VServer_GUI (wizard_name, Install_Class):
+ wizard_url_name = wizard_name.lower().replace(' ', '_')
+ url_srv = '/wizard/vserver/%s' %(wizard_url_name)
+
+ CTK.publish ('^%s$' %(url_srv), lambda: Phase_Welcome (wizard_name, 'vserver').Render().toStr())
+ CTK.publish ('^%s/2$'%(url_srv), Stage_Install_Type)
+ CTK.publish ('^%s/3$'%(url_srv), Stage_Install_Directory)
+ CTK.publish ('^%s/4$'%(url_srv), Stage_Enter_VServer)
+ CTK.publish ('^%s/5$'%(url_srv), Stage_VServer_Logging)
+ CTK.publish ('^%s/6$'%(url_srv), lambda: Stage_Do_Install (Install_Class, "%s/7"%(url_srv)).Render().toStr())
+ CTK.publish ('^%s/7$'%(url_srv), Stage_Finished)
+
+def Register_Standard_Directory_GUI (wizard_name, Install_Class):
+ None
+
+def Register_Standard_GUI (*args, **kw):
+ Register_Standard_VServer_GUI (*args, **kw)
+ Register_Standard_Directory_GUI (*args, **kw)

Modified: wizards2/wizards/02-Content Management Systems/wordpress.py
===================================================================
--- wizards2/wizards/02-Content Management Systems/wordpress.py 2011-08-10 11:58:48 UTC (rev 6800)
+++ wizards2/wizards/02-Content Management Systems/wordpress.py 2011-08-11 23:22:48 UTC (rev 6801)
@@ -132,12 +132,5 @@
#
# GUI
#
-URL_SRV = '/wizard/vserver/wordpress'

-CTK.publish ('^%s$' %(URL_SRV), lambda: GUI.Phase_Welcome ('Wordpress', 'vserver').Render().toStr())
-CTK.publish ('^%s/2$'%(URL_SRV), GUI.Stage_Install_Type)
-CTK.publish ('^%s/3$'%(URL_SRV), GUI.Stage_Install_Directory)
-CTK.publish ('^%s/4$'%(URL_SRV), GUI.Stage_Enter_VServer)
-CTK.publish ('^%s/5$'%(URL_SRV), GUI.Stage_VServer_Logging)
-CTK.publish ('^%s/6$'%(URL_SRV), lambda: GUI.Stage_Do_Install (Install, "%s/7"%(URL_SRV)).Render().toStr())
-CTK.publish ('^%s/7$'%(URL_SRV), GUI.Stage_Finished)
+GUI.Register_Standard_GUI ('Wordpress', Install)

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.