Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing /icons to /cherokee_icons (fix Google issue #1383) #54

Merged
merged 1 commit into from Jan 26, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/PageVServers.py
Expand Up @@ -89,7 +89,7 @@ def Commit():
CTK.cfg['%s!rule!1!handler' %(next)] = 'common'

CTK.cfg['%s!rule!2!match' %(next)] = 'directory'
CTK.cfg['%s!rule!2!match!directory' %(next)] = '/icons'
CTK.cfg['%s!rule!2!match!directory' %(next)] = '/cherokee_icons'
CTK.cfg['%s!rule!2!handler' %(next)] = 'file'
CTK.cfg['%s!rule!2!document_root' %(next)] = CHEROKEE_ICONSDIR

Expand Down
17 changes: 17 additions & 0 deletions admin/config_version.py
Expand Up @@ -97,6 +97,19 @@ def upgrade_to_1_2_102 (cfg):
rule_key = 'vserver!%s!rule!%s!match' % (v,r)
rule_node = cfg[rule_key]
update_rules_methods(cfg, rule_key, rule_node)

# Converts to 1.2.103
def upgrade_to_1_2_103 (cfg):
# Replace the obsolete virtual path to /icons with /cherokee_icons:
# Search for rules where the value of key "document_root" ends with
# the string "share/cherokee/icons", and update the value of rule's
# key "match" to "/cherokee_icons".
for v in cfg.keys('vserver'):
for r in cfg.keys('vserver!%s!rule'%(v)):
if cfg.get_val('vserver!%s!rule!%s!document_root'%(v,r)) and \
cfg.get_val('vserver!%s!rule!%s!document_root'%(v,r)).endswith('share/cherokee/icons') and \
cfg.get_val('vserver!%s!rule!%s!match!directory'%(v,r)) == "/icons":
cfg['vserver!%s!rule!%s!match!directory'%(v,r)] = '/cherokee_icons'

def config_version_get_current():
ver = configured.VERSION.split ('b')[0]
Expand Down Expand Up @@ -174,6 +187,10 @@ def config_version_update_cfg (cfg):
# Update to.. 1.2.102
if ver_config_i < 1002102:
upgrade_to_1_2_102 (cfg)

# Update to.. 1.2.103
if ver_config_i < 1002103:
upgrade_to_1_2_103 (cfg)

cfg["config!version"] = ver_release_s
return True
2 changes: 1 addition & 1 deletion admin/plugins/dirlist.py
Expand Up @@ -32,7 +32,7 @@
DEFAULT_THEME = "default"

NOTE_THEME = N_("Choose the listing theme.")
NOTE_ICON_DIR = N_("Web directory where the icon files are located. Default: <i>/icons</i>.")
NOTE_ICON_DIR = N_("Web directory where the icon files are located. Default: <i>/cherokee_icons</i>.")
NOTE_NOTICE_FILES = N_("List of notice files to be inserted.")
NOTE_HIDDEN_FILES = N_("List of files that should not be listed.")

Expand Down
2 changes: 1 addition & 1 deletion admin/wizards/List.py
Expand Up @@ -135,7 +135,7 @@
'type': TYPE_RULE},
{'name': 'icons',
'title': N_('Directory-listing Icons'),
'descr': N_('Add the /icons and /cherokee_themes directories used for directory listing.'),
'descr': N_('Add the /cherokee_icons and /cherokee_themes directories used for directory listing.'),
'type': TYPE_RULE},
{'name': 'static',
'title': N_('Static-file support'),
Expand Down
8 changes: 4 additions & 4 deletions admin/wizards/icons.py
Expand Up @@ -35,15 +35,15 @@
from configured import *

NOTE_WELCOME_H1 = N_("Welcome to the Icons Wizard")
NOTE_WELCOME_P1 = N_("This wizard adds the /icons and /cherokee_themes directories so Cherokee can use icons when listing directories.")
NOTE_WELCOME_ERR= N_("The /icons and /cherokee_themes directories are already configured. There is nothing left to do.")
NOTE_WELCOME_P1 = N_("This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can use icons when listing directories.")
NOTE_WELCOME_ERR= N_("The /cherokee_icons and /cherokee_themes directories are already configured. There is nothing left to do.")

PREFIX = 'tmp!wizard!icons'
URL_APPLY = r'/wizard/vserver/icons/apply'

CONFIG_ICONS = """
%(rule_pre_2)s!match = directory
%(rule_pre_2)s!match!directory = /icons
%(rule_pre_2)s!match!directory = /cherokee_icons
%(rule_pre_2)s!handler = file
%(rule_pre_2)s!handler!iocache = 1
%(rule_pre_2)s!document_root = %(droot_icons)s
Expand Down Expand Up @@ -107,7 +107,7 @@ def _check_config (self):
icons, themes = False, False
for r in rules:
if CTK.get_val ('%s!rule!%s!match'%(vsrv_pre, r)) == 'directory' and \
CTK.cfg.get_val ('%s!rule!%s!match!directory'%(vsrv_pre, r)) == '/icons':
CTK.cfg.get_val ('%s!rule!%s!match!directory'%(vsrv_pre, r)) == '/cherokee_icons':
icons = True
if CTK.cfg.get_val ('%s!rule!%s!match'%(vsrv_pre, r)) == 'directory' and \
CTK.cfg.get_val ('%s!rule!%s!match!directory'%(vsrv_pre, r)) == '/cherokee_themes':
Expand Down
2 changes: 1 addition & 1 deletion cherokee.conf.sample.pre
Expand Up @@ -38,7 +38,7 @@ vserver!1!rule!1!handler = common
vserver!1!rule!1!handler!iocache = 1

vserver!1!rule!2!match = directory
vserver!1!rule!2!match!directory = /icons
vserver!1!rule!2!match!directory = /cherokee_icons
vserver!1!rule!2!handler = file
vserver!1!rule!2!document_root = %prefix%/share/cherokee/icons

Expand Down
2 changes: 1 addition & 1 deletion cherokee/handler_dirlist.c
Expand Up @@ -52,7 +52,7 @@
#include "human_strcmp.h"
#include "match.h"

#define ICON_WEB_DIR_DEFAULT "/icons"
#define ICON_WEB_DIR_DEFAULT "/cherokee_icons"
#define ENTRIES "handler,dirlist"


Expand Down
2 changes: 1 addition & 1 deletion cherokee/main_worker.c
Expand Up @@ -68,7 +68,7 @@
"vserver!1!rule!3!handler = file\n" \
"vserver!1!rule!3!document_root = " CHEROKEE_THEMEDIR "\n" \
"vserver!1!rule!2!match = directory\n" \
"vserver!1!rule!2!match!directory = /icons\n" \
"vserver!1!rule!2!match!directory = /cherokee_icons\n" \
"vserver!1!rule!2!handler = file\n" \
"vserver!1!rule!2!document_root = " CHEROKEE_ICONSDIR "\n" \
"vserver!1!rule!1!match = default\n" \
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -25,7 +25,7 @@ AC_PREREQ([2.60])
dnl Version
m4_define([cherokee_major_version], [1])
m4_define([cherokee_minor_version], [2])
m4_define([cherokee_micro_version], [102])
m4_define([cherokee_micro_version], [103])
m4_define([cherokee_version], m4_format('%s.%s.%s', cherokee_major_version, cherokee_minor_version, cherokee_micro_version))

dnl Init autoconf and automake
Expand Down
10 changes: 5 additions & 5 deletions po/admin/ca.po
Expand Up @@ -1779,8 +1779,8 @@ msgid "Choose the listing theme."
msgstr "Escollir el tema per mostrar"

#: cherokee-trunk/admin/plugins/dirlist.py:35
msgid "Web directory where the icon files are located. Default: <i>/icons</i>."
msgstr "Directori web on es troben els icones. Per defecte <i>/icons</i>."
msgid "Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."
msgstr "Directori web on es troben els icones. Per defecte <i>/cherokee_icons</i>."

#: cherokee-trunk/admin/plugins/dirlist.py:36
msgid "List of notice files to be inserted."
Expand Down Expand Up @@ -3998,7 +3998,7 @@ msgstr "Directori-llistat d'Icones."

#: cherokee-trunk/admin/wizards/List.py:130
msgid ""
"Add the /icons and /cherokee_themes directories used for directory listing."
"Add the /cherokee_icons and /cherokee_themes directories used for directory listing."
msgstr ""

#: cherokee-trunk/admin/wizards/List.py:133
Expand Down Expand Up @@ -4129,13 +4129,13 @@ msgstr "Benvinguts al assisten de Icones"

#: cherokee-trunk/admin/wizards/icons.py:38
msgid ""
"This wizard adds the /icons and /cherokee_themes directories so Cherokee can "
"This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can "
"use icons when listing directories."
msgstr ""

#: cherokee-trunk/admin/wizards/icons.py:39
msgid ""
"The /icons and /cherokee_themes directories are already configured. There is "
"The /cherokee_icons and /cherokee_themes directories are already configured. There is "
"nothing left to do."
msgstr ""

Expand Down
8 changes: 4 additions & 4 deletions po/admin/de.po
Expand Up @@ -1781,7 +1781,7 @@ msgid "Choose the listing theme."
msgstr ""

#: cherokee-trunk/admin/plugins/dirlist.py:35
msgid "Web directory where the icon files are located. Default: <i>/icons</i>."
msgid "Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."
msgstr ""

#: cherokee-trunk/admin/plugins/dirlist.py:36
Expand Down Expand Up @@ -4023,7 +4023,7 @@ msgstr ""

#: cherokee-trunk/admin/wizards/List.py:130
msgid ""
"Add the /icons and /cherokee_themes directories used for directory listing."
"Add the /cherokee_icons and /cherokee_themes directories used for directory listing."
msgstr ""

#: cherokee-trunk/admin/wizards/List.py:133
Expand Down Expand Up @@ -4153,13 +4153,13 @@ msgstr "Willkommen beim Icons Assistent"

#: cherokee-trunk/admin/wizards/icons.py:38
msgid ""
"This wizard adds the /icons and /cherokee_themes directories so Cherokee can "
"This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can "
"use icons when listing directories."
msgstr ""

#: cherokee-trunk/admin/wizards/icons.py:39
msgid ""
"The /icons and /cherokee_themes directories are already configured. There is "
"The /cherokee_icons and /cherokee_themes directories are already configured. There is "
"nothing left to do."
msgstr ""

Expand Down
10 changes: 5 additions & 5 deletions po/admin/en.po
Expand Up @@ -1823,9 +1823,9 @@ msgid "Choose the listing theme."
msgstr "Choose the listing theme."

#: cherokee-trunk/admin/plugins/dirlist.py:35
msgid "Web directory where the icon files are located. Default: <i>/icons</i>."
msgid "Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."
msgstr ""
"Web directory where the icon files are located. Default: <i>/icons</i>."
"Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."

#: cherokee-trunk/admin/plugins/dirlist.py:36
msgid "List of notice files to be inserted."
Expand Down Expand Up @@ -4109,7 +4109,7 @@ msgstr "Allow Directory Listing"

#: cherokee-trunk/admin/wizards/List.py:130
msgid ""
"Add the /icons and /cherokee_themes directories used for directory listing."
"Add the /cherokee_icons and /cherokee_themes directories used for directory listing."
msgstr ""

#: cherokee-trunk/admin/wizards/List.py:133
Expand Down Expand Up @@ -4242,13 +4242,13 @@ msgstr "Welcome to Cherokee Admin"

#: cherokee-trunk/admin/wizards/icons.py:38
msgid ""
"This wizard adds the /icons and /cherokee_themes directories so Cherokee can "
"This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can "
"use icons when listing directories."
msgstr ""

#: cherokee-trunk/admin/wizards/icons.py:39
msgid ""
"The /icons and /cherokee_themes directories are already configured. There is "
"The /cherokee_icons and /cherokee_themes directories are already configured. There is "
"nothing left to do."
msgstr ""

Expand Down
16 changes: 8 additions & 8 deletions po/admin/es.po
Expand Up @@ -1779,9 +1779,9 @@ msgid "Choose the listing theme."
msgstr "Elija el tema para mostrar."

#: cherokee-trunk/admin/plugins/dirlist.py:35
msgid "Web directory where the icon files are located. Default: <i>/icons</i>."
msgid "Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."
msgstr ""
"Directorio web donde se encuentran los iconos. Por defecto: <i>/icons</i>."
"Directorio web donde se encuentran los iconos. Por defecto: <i>/cherokee_icons</i>."

#: cherokee-trunk/admin/plugins/dirlist.py:36
msgid "List of notice files to be inserted."
Expand Down Expand Up @@ -4049,9 +4049,9 @@ msgstr "Iconos para listado de directorios."

#: cherokee-trunk/admin/wizards/List.py:130
msgid ""
"Add the /icons and /cherokee_themes directories used for directory listing."
"Add the /cherokee_icons and /cherokee_themes directories used for directory listing."
msgstr ""
"Añadir los directorios /icons y /cherokee_themes utilizados para listar "
"Añadir los directorios /cherokee_icons y /cherokee_themes utilizados para listar "
"directorios."

#: cherokee-trunk/admin/wizards/List.py:133
Expand Down Expand Up @@ -4191,18 +4191,18 @@ msgstr "Bienvenido al asistente de Iconos"

#: cherokee-trunk/admin/wizards/icons.py:38
msgid ""
"This wizard adds the /icons and /cherokee_themes directories so Cherokee can "
"This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can "
"use icons when listing directories."
msgstr ""
"Este asistente añade los directorios /icons y /cherokee_themes necesarios "
"Este asistente añade los directorios /cherokee_icons y /cherokee_themes necesarios "
"para que Cherokee pueda utlizar iconos al hacer listados de directorios."

#: cherokee-trunk/admin/wizards/icons.py:39
msgid ""
"The /icons and /cherokee_themes directories are already configured. There is "
"The /cherokee_icons and /cherokee_themes directories are already configured. There is "
"nothing left to do."
msgstr ""
"Los directorios /icons y /cherokee_themes ya han sido configurados. No queda "
"Los directorios /cherokee_icons y /cherokee_themes ya han sido configurados. No queda "
"nada por hacer. "

#: cherokee-trunk/admin/wizards/alfresco.py:37
Expand Down
8 changes: 4 additions & 4 deletions po/admin/fr.po
Expand Up @@ -1786,7 +1786,7 @@ msgid "Choose the listing theme."
msgstr ""

#: cherokee-trunk/admin/plugins/dirlist.py:35
msgid "Web directory where the icon files are located. Default: <i>/icons</i>."
msgid "Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."
msgstr ""

#: cherokee-trunk/admin/plugins/dirlist.py:36
Expand Down Expand Up @@ -4034,7 +4034,7 @@ msgstr "Autoriser le Listage de Répertoire"

#: cherokee-trunk/admin/wizards/List.py:130
msgid ""
"Add the /icons and /cherokee_themes directories used for directory listing."
"Add the /cherokee_icons and /cherokee_themes directories used for directory listing."
msgstr ""

#: cherokee-trunk/admin/wizards/List.py:133
Expand Down Expand Up @@ -4165,13 +4165,13 @@ msgstr "Bienvenue sur Cherokee Admin"

#: cherokee-trunk/admin/wizards/icons.py:38
msgid ""
"This wizard adds the /icons and /cherokee_themes directories so Cherokee can "
"This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can "
"use icons when listing directories."
msgstr ""

#: cherokee-trunk/admin/wizards/icons.py:39
msgid ""
"The /icons and /cherokee_themes directories are already configured. There is "
"The /cherokee_icons and /cherokee_themes directories are already configured. There is "
"nothing left to do."
msgstr ""

Expand Down
16 changes: 8 additions & 8 deletions po/admin/gl.po
Expand Up @@ -1768,9 +1768,9 @@ msgid "Choose the listing theme."
msgstr "Elexir o tema do listado"

#: cherokee-trunk/admin/plugins/dirlist.py:35
msgid "Web directory where the icon files are located. Default: <i>/icons</i>."
msgid "Web directory where the icon files are located. Default: <i>/cherokee_icons</i>."
msgstr ""
"Directorio onde están os ficheiros de iconas. Por omisión: <i>/icons</i>."
"Directorio onde están os ficheiros de iconas. Por omisión: <i>/cherokee_icons</i>."

#: cherokee-trunk/admin/plugins/dirlist.py:36
msgid "List of notice files to be inserted."
Expand Down Expand Up @@ -4041,9 +4041,9 @@ msgstr "Listado de directorios de Iconas"

#: cherokee-trunk/admin/wizards/List.py:130
msgid ""
"Add the /icons and /cherokee_themes directories used for directory listing."
"Add the /cherokee_icons and /cherokee_themes directories used for directory listing."
msgstr ""
"Engadir os directorios /icons e /cherokee_themes usados para o listado de "
"Engadir os directorios /cherokee_icons e /cherokee_themes usados para o listado de "
"directorios."

#: cherokee-trunk/admin/wizards/List.py:133
Expand Down Expand Up @@ -4187,18 +4187,18 @@ msgstr "Ben vido ó asistente Icons"

#: cherokee-trunk/admin/wizards/icons.py:38
msgid ""
"This wizard adds the /icons and /cherokee_themes directories so Cherokee can "
"This wizard adds the /cherokee_icons and /cherokee_themes directories so Cherokee can "
"use icons when listing directories."
msgstr ""
"Este asistente engade os directorios /icons e /cherokee_themes así Cherokee "
"Este asistente engade os directorios /cherokee_icons e /cherokee_themes así Cherokee "
"pode usar iconas cando lista directorios."

#: cherokee-trunk/admin/wizards/icons.py:39
msgid ""
"The /icons and /cherokee_themes directories are already configured. There is "
"The /cherokee_icons and /cherokee_themes directories are already configured. There is "
"nothing left to do."
msgstr ""
"Os directorios /icons e /cherokee_theme xa están configurados. Non queda "
"Os directorios /cherokee_icons e /cherokee_theme xa están configurados. Non queda "
"nada por facer."

#: cherokee-trunk/admin/wizards/alfresco.py:37
Expand Down