Skip to content

Commit

Permalink
A number of fixed that fix the new Wordpress wizard.
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/wizards2@6797 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Aug 9, 2011
1 parent 1a9ad5a commit a6a7fe9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Wizard2.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def Configure_Cherokee (self):
return []

#
# Private
# Protected
#
def _Register_Child_Wizard (self, wizard_obj):
wizard_obj.params = self.params
Expand Down
7 changes: 3 additions & 4 deletions wizards/01-Development Platforms/php-fpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def Configure_Cherokee (self):
if int(self.params.get('flcache', "1")):
CTK.cfg['%s!flcache' %(next)] = 'allow'

# Normalization
CTK.cfg.normalize('%s!rule'%(pre))

self.rule = _find_rule(pre)

# Index files
Expand All @@ -159,10 +162,6 @@ def Configure_Cherokee (self):
indexes.append ('index.php')
CTK.cfg['%s!directory_index' %(pre)] = ','.join(indexes)

# Normalization
CTK.cfg.normalize('%s!rule'%(pre))



#
# Helper functions
Expand Down
15 changes: 11 additions & 4 deletions wizards/02-Content Management Systems/wordpress.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

CONFIG_VSERVER = """
vserver!%(vserver_num)s!nick = %(vserver_nick)s
vserver!%(vserver_num)s!document_root = %(app_dir)s/wordpress
vserver!%(vserver_num)s!document_root = %(app_dir)s
vserver!%(vserver_num)s!directory_index = index.php,index.html
# The PHP rule comes here
Expand Down Expand Up @@ -63,7 +63,7 @@
%(pre_rule_plus1)s!match = directory
%(pre_rule_plus1)s!match!directory = %(directory)s
%(pre_rule_plus1)s!match!final = 0
%(pre_rule_plus1)s!document_root = %(app_dir)s/wordpress
%(pre_rule_plus1)s!document_root = %(app_dir)s
# The PHP rule comes here
Expand Down Expand Up @@ -113,9 +113,16 @@ def Check_Prerequisites (self):
errors += self._Prerequisite__MySQL()
return errors

def _Handle_Unpacking (self):
# Unpack
errors = php_tpl.Install._Handle_Unpacking (self)
if errors: return errors

# Update app_dir, WP is in a subdir
self.app_dir = os.path.join (self.app_dir, "wordpress")

def Check_PostUnpack (self):
errors = self._Check_File_Exists ('wp-comments-post.php')
return errors
return self._Check_File_Exists ('wp-comments-post.php')

#
# GUI
Expand Down

0 comments on commit a6a7fe9

Please sign in to comment.