Changeset 47
- Timestamp:
- 2008年08月28日 19时15分39秒 (4 years ago)
- Location:
- trunk
- Files:
-
- 71 added
- 1 removed
- 15 modified
-
pySvnManager.egg-info/SOURCES.txt (modified) (5 diffs)
-
pysvnmanager/controllers/repos.py (modified) (3 diffs)
-
pysvnmanager/hooks/init/hook1.4 (added)
-
pysvnmanager/hooks/init/hook1.4/parse_ini.sh (added)
-
pysvnmanager/hooks/init/hook1.4/post-commit (added)
-
pysvnmanager/hooks/init/hook1.4/post-lock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.4/post-revprop-change (added)
-
pysvnmanager/hooks/init/hook1.4/post-unlock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.4/pre-commit (added)
-
pysvnmanager/hooks/init/hook1.4/pre-lock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.4/pre-revprop-change (added)
-
pysvnmanager/hooks/init/hook1.4/pre-unlock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.4/scripts (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/README (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/check-authz.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/check-case-insensitive.pl (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/check-case-insensitive.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/check-mime-type.pl (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/check-mime-type.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit-access-control.cfg (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit-access-control.cfg.example (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit-access-control.pl (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit-block-joke.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit-email.pl (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit-email.rb (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/commit_log_check.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/detect-merge-conflicts.sh (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/log-police.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/pre-commit-check.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/pre-lock-require-needs-lock.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/svn2rss.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/svnperms.conf (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/svnperms.conf.example (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/svnperms.py (added)
-
pysvnmanager/hooks/init/hook1.4/scripts/verify-po.py (added)
-
pysvnmanager/hooks/init/hook1.4/start-commit (added)
-
pysvnmanager/hooks/init/hook1.5 (added)
-
pysvnmanager/hooks/init/hook1.5/parse_ini.sh (added)
-
pysvnmanager/hooks/init/hook1.5/post-commit (added)
-
pysvnmanager/hooks/init/hook1.5/post-lock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.5/post-revprop-change (added)
-
pysvnmanager/hooks/init/hook1.5/post-unlock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.5/pre-commit (added)
-
pysvnmanager/hooks/init/hook1.5/pre-lock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.5/pre-revprop-change (added)
-
pysvnmanager/hooks/init/hook1.5/pre-unlock.tmpl (added)
-
pysvnmanager/hooks/init/hook1.5/scripts (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/README (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/check-authz.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/check-case-insensitive.pl (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/check-case-insensitive.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/check-mime-type.pl (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/check-mime-type.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit-access-control.cfg (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit-access-control.cfg.example (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit-access-control.pl (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit-block-joke.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit-email.pl (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit-email.rb (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/commit_log_check.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/detect-merge-conflicts.sh (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/log-police.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/pre-commit-check.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/pre-lock-require-needs-lock.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/svn2rss.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/svnperms.conf (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/svnperms.conf.example (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/svnperms.py (added)
-
pysvnmanager/hooks/init/hook1.5/scripts/verify-po.py (added)
-
pysvnmanager/hooks/init/hook1.5/start-commit (added)
-
pysvnmanager/hooks/plugins/AllowRevpropChange.py (added)
-
pysvnmanager/hooks/plugins/BugtrackMantis.py (modified) (2 diffs)
-
pysvnmanager/hooks/plugins/CapCheckMergeInfo.py (added)
-
pysvnmanager/hooks/plugins/CaseInsensitive.py (modified) (4 diffs)
-
pysvnmanager/hooks/plugins/CommitLogCheck.py (modified) (7 diffs)
-
pysvnmanager/hooks/plugins/EmailNotify.py (modified) (4 diffs)
-
pysvnmanager/hooks/plugins/EolStyleCheck.py (modified) (2 diffs)
-
pysvnmanager/hooks/plugins/MergeinfoClient.py (deleted)
-
pysvnmanager/hooks/plugins/ReadonlySvnMirror.py (added)
-
pysvnmanager/hooks/plugins/__init__.py (modified) (3 diffs)
-
pysvnmanager/i18n/en/LC_MESSAGES/pysvnmanager.po (modified) (9 diffs)
-
pysvnmanager/i18n/pysvnmanager.pot (modified) (8 diffs)
-
pysvnmanager/i18n/zh/LC_MESSAGES/pysvnmanager.po (modified) (10 diffs)
-
pysvnmanager/model/hooks.py (modified) (1 diff)
-
pysvnmanager/model/repos.py (modified) (1 diff)
-
pysvnmanager/tests/test_repos.py (modified) (3 diffs)
-
setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pySvnManager.egg-info/SOURCES.txt
r40 r47 21 21 pysvnmanager/websetup.py 22 22 pysvnmanager/config/DefaultConfig.py 23 pysvnmanager/config/DefaultConfig.pyc 23 24 pysvnmanager/config/__init__.py 25 pysvnmanager/config/__init__.pyc 24 26 pysvnmanager/config/environment.py 27 pysvnmanager/config/environment.pyc 25 28 pysvnmanager/config/localconfig.py.in 26 29 pysvnmanager/config/middleware.py 30 pysvnmanager/config/middleware.pyc 27 31 pysvnmanager/config/routing.py 32 pysvnmanager/config/routing.pyc 28 33 pysvnmanager/config/svn.access.in 29 34 pysvnmanager/config/svn.passwd.in … … 33 38 pysvnmanager/controllers/error.py 34 39 pysvnmanager/controllers/logs.py 40 pysvnmanager/controllers/repos.py 35 41 pysvnmanager/controllers/role.py 36 42 pysvnmanager/controllers/security.py 37 43 pysvnmanager/controllers/template.py 44 pysvnmanager/hooks/__init__.py 45 pysvnmanager/hooks/init/__init__.py 46 pysvnmanager/hooks/init/hook1.4/parse_ini.sh 47 pysvnmanager/hooks/init/hook1.4/post-commit 48 pysvnmanager/hooks/init/hook1.4/post-lock.tmpl 49 pysvnmanager/hooks/init/hook1.4/post-revprop-change 50 pysvnmanager/hooks/init/hook1.4/post-unlock.tmpl 51 pysvnmanager/hooks/init/hook1.4/pre-commit 52 pysvnmanager/hooks/init/hook1.4/pre-lock.tmpl 53 pysvnmanager/hooks/init/hook1.4/pre-revprop-change 54 pysvnmanager/hooks/init/hook1.4/pre-unlock.tmpl 55 pysvnmanager/hooks/init/hook1.4/start-commit 56 pysvnmanager/hooks/init/hook1.5/parse_ini.sh 57 pysvnmanager/hooks/init/hook1.5/post-commit 58 pysvnmanager/hooks/init/hook1.5/post-lock.tmpl 59 pysvnmanager/hooks/init/hook1.5/post-revprop-change 60 pysvnmanager/hooks/init/hook1.5/post-unlock.tmpl 61 pysvnmanager/hooks/init/hook1.5/pre-commit 62 pysvnmanager/hooks/init/hook1.5/pre-lock.tmpl 63 pysvnmanager/hooks/init/hook1.5/pre-revprop-change 64 pysvnmanager/hooks/init/hook1.5/pre-unlock.tmpl 65 pysvnmanager/hooks/init/hook1.5/start-commit 66 pysvnmanager/hooks/plugins/AllowRevpropChange.py 67 pysvnmanager/hooks/plugins/BugtrackMantis.py 68 pysvnmanager/hooks/plugins/CapCheckMergeInfo.py 69 pysvnmanager/hooks/plugins/CaseInsensitive.py 70 pysvnmanager/hooks/plugins/CommitLogCheck.py 71 pysvnmanager/hooks/plugins/EmailNotify.py 72 pysvnmanager/hooks/plugins/EolStyleCheck.py 73 pysvnmanager/hooks/plugins/ReadonlySvnMirror.py 74 pysvnmanager/hooks/plugins/__init__.py 38 75 pysvnmanager/i18n/pysvnmanager.pot 39 76 pysvnmanager/i18n/en/LC_MESSAGES/pysvnmanager.mo … … 47 84 pysvnmanager/model/__init__.py 48 85 pysvnmanager/model/configobj.py 86 pysvnmanager/model/hooks.py 49 87 pysvnmanager/model/rcsbackup.py 88 pysvnmanager/model/repos.py 89 pysvnmanager/model/rest.py 50 90 pysvnmanager/model/svnauthz.py 51 91 pysvnmanager/model/auth/__init__.py 52 92 pysvnmanager/model/auth/http.py 53 93 pysvnmanager/model/auth/ldap_login.py 94 pysvnmanager/public/css/common.css 95 pysvnmanager/public/img/alert.png 96 pysvnmanager/public/img/attention.png 97 pysvnmanager/public/img/icon-error.png 98 pysvnmanager/public/img/icon-info.png 54 99 pysvnmanager/templates/auth_failed.mako 55 100 pysvnmanager/templates/base.mako … … 62 107 pysvnmanager/templates/logs/rollback.mako 63 108 pysvnmanager/templates/logs/view.mako 109 pysvnmanager/templates/repos/create.mako 110 pysvnmanager/templates/repos/hooks.mako 111 pysvnmanager/templates/repos/remove.mako 64 112 pysvnmanager/templates/role/index.mako 65 113 pysvnmanager/tests/__init__.py 66 114 pysvnmanager/tests/test_models.py 67 115 pysvnmanager/tests/test_rcs_backup.py 116 pysvnmanager/tests/test_repos.py 117 pysvnmanager/tests/data/svnroot.tar.bz2 68 118 pysvnmanager/tests/functional/__init__.py 69 119 pysvnmanager/tests/functional/test_authz.py … … 71 121 pysvnmanager/tests/functional/test_login.py 72 122 pysvnmanager/tests/functional/test_logs.py 123 pysvnmanager/tests/functional/test_repos.py 73 124 pysvnmanager/tests/functional/test_role.py -
trunk/pysvnmanager/controllers/repos.py
r46 r47 59 59 msg += 'name[0]="%s";\n' % _("Please choose...") 60 60 total += 1; 61 for name in h.unapplied_plugins .keys():61 for name in h.unapplied_plugins: 62 62 msg += 'id[%d]="%s";' % (total, name) 63 msg += 'name[%d]="%s";\n' % (total, h.plugins[name].name)63 msg += 'name[%d]="%s";\n' % (total, name + ': ' + h.plugins[name].name) 64 64 total += 1; 65 65 msg += 'total=%d;\n' % total … … 82 82 "<th align='left'>" + _("Type") + "</th>" + \ 83 83 "</tr>\n" 84 for name in h.applied_plugins .keys():84 for name in h.applied_plugins: 85 85 msg += "<tr><td width='1' rolspan='2'>" 86 86 msg += '<input type="checkbox" name="pluginid_%(num)d" value="%(plugin)s">' % { … … 118 118 except Exception, e: 119 119 result = "<div class='error'>" + _("Apply plugin '%(plugin)s' on '%(repos)s' Failed. Error message:<br>\n%(msg)s") % { 120 "plugin": pluginname, "repos":reposname, "msg": e .message} + "</div>"120 "plugin": pluginname, "repos":reposname, "msg": e} + "</div>" 121 121 else: 122 122 result = "<div class='info'>" + _("Apply plugin '%(plugin)s' on '%(repos)s' success.") % { -
trunk/pysvnmanager/hooks/plugins/BugtrackMantis.py
r46 r47 7 7 class MantisIntegration(PluginBase): 8 8 9 # Plugin id10 id = __name__.rsplit('.',1)[-1]11 12 9 # Brief name for this plugin. 13 10 name = _("Mantis bugtracking integration") … … 31 28 key = "mantis_integration" 32 29 value = "yes" 30 31 section = 'post_commit' 33 32 34 33 def enabled(self): -
trunk/pysvnmanager/hooks/plugins/CaseInsensitive.py
r46 r47 5 5 from pysvnmanager.hooks.plugins import _ 6 6 7 class CaseInsensitive(PluginBase):7 class DetectCaseInsensitiveClash(PluginBase): 8 8 9 # Plugin id10 id = __name__.rsplit('.',1)[-1]11 12 9 # Brief name for this plugin. 13 name = _(" check case insensitive")10 name = _("Detect case-insensitive filename clashes") 14 11 15 12 # Both description and detail are reStructuredText format. … … 20 17 21 18 # Long description for this plugin. 22 detail = "" 19 detail = _("""Subversion services may host on a filename case-sensitive OS, 20 while client **may not** (Windows is case-insensitive). This may cause 'clash'. 21 22 - Detects new paths that 'clash' with existing, or other new, paths. 23 - Ignores existings paths that already 'clash' 24 - Exits with an error code, and a diagnostic on stderr, if 'clashes' 25 are detected. 26 """) 23 27 24 28 # Hooks-plugin type: T_START_COMMIT, ..., T_POST_UNLOCK … … 26 30 27 31 # Plugin config option/value in config ini file. 28 key = " case_insensitive"32 key = "detect_case_insensitive_clash" 29 33 value = "yes" 34 35 section = 'pre_commit' 30 36 31 37 def enabled(self): … … 79 85 @return: Plugin object 80 86 """ 81 return CaseInsensitive(repospath)87 return DetectCaseInsensitiveClash(repospath) -
trunk/pysvnmanager/hooks/plugins/CommitLogCheck.py
r46 r47 4 4 from pysvnmanager.hooks.plugins import * 5 5 from pysvnmanager.hooks.plugins import _ 6 import webhelpers 6 7 7 8 class CommitLogCheck(PluginBase): 8 9 9 # Plugin id10 id = __name__.rsplit('.',1)[-1]11 12 10 # Brief name for this plugin. 13 11 name = _("Check commit log message") … … 26 24 27 25 # Plugin config option/value in config ini file. 28 key = "commit_log_check" 29 value = "yes" 26 key_switch = "commit_log_check_enable" 27 key_size = "commit_log_check_size" 28 key_permit = "commit_log_check_permit" 29 key_prohibit = "commit_log_check_prohibit" 30 31 section = 'pre_commit' 30 32 31 33 def enabled(self): … … 34 36 Simply call 'has_config()'. 35 37 """ 36 return self.has_config( )38 return self.has_config(self.key_switch) and self.has_config(self.key_size) 37 39 38 40 def install_info(self): … … 43 45 reST reference: http://docutils.sourceforge.net/docs/user/rst/quickref.html 44 46 """ 45 return self.description 47 result = self.description 48 if self.enabled(): 49 result += "\n\n" 50 result += "**" + _("Current configuration") + "**\n\n" 51 if self.get_config(self.key_switch) == "yes": 52 result += "- " + _("Commit log check is enabled.") 53 else: 54 result += "- " + _("Commit log check is disabled.") 55 result += "\n" 56 result += "- " + _("Minimal size of commit log: ") + self.get_config(self.key_size) 57 result += "\n" 58 permit = self.get_config(self.key_permit) 59 prohibit = self.get_config(self.key_prohibit) 60 if permit: 61 result += "- " + _("Pattern which commit log must match against: ") + permit 62 result += "\n" 63 if prohibit: 64 result += "- " + _("Pattern which commit log must **NOT** match against: ") + prohibit 65 result += "\n" 66 67 return result 46 68 47 69 def install_config_form(self): … … 51 73 Any html and javascript are welcome. 52 74 """ 53 return "" 75 if self.get_config(self.key_switch)=="no": 76 enable_checked = "" 77 disable_checked = "checked" 78 else: 79 enable_checked = "checked" 80 disable_checked = "" 81 82 result = "" 83 result += "<p><strong>%s</strong></p>" % _("Fill this form") 84 result += "<blockquote>" 85 result += "<table class=hidden>" 86 result += "\n<tr><td>" 87 result += _("Enable commit log check: ") 88 result += "\n</td><td>" 89 result += "<input type='radio' name='switch' value='yes' " + \ 90 enable_checked + ">" + _("Enable") + " " 91 result += "<input type='radio' name='switch' value='no' " + \ 92 disable_checked + ">" + _("Disable") 93 result += "\n</td></tr>" 94 result += "\n<tr><td>" 95 result += _("Minimal size of commit log: ") 96 result += "\n</td><td>" 97 result += "<input type='text' name='size' size='5' value=\"%s\">" % \ 98 webhelpers.util.html_escape(self.get_config(self.key_size)) 99 result += "\n</td></tr>" 100 result += "\n<tr><td>" 101 result += _("Pattern which commit log must match against: ") 102 result += "\n</td><td>" 103 result += "<input type='text' name='permit' size='64' value=\"%s\">" % \ 104 webhelpers.util.html_escape(self.get_config(self.key_permit)) 105 result += "\n</td></tr>" 106 result += "\n<tr><td>" 107 result += _("Pattern which commit log must <b>NOT</b> match against: ") 108 result += "\n</td><td>" 109 result += "<input type='text' name='prohibit' size='64' value=\"%s\">" % \ 110 webhelpers.util.html_escape(self.get_config(self.key_prohibit)) 111 result += "\n</td></tr>" 112 result += "\n</table>" 113 result += "</blockquote>" 114 return result 54 115 55 116 def uninstall(self): … … 58 119 Simply call 'unset_config()' and 'save()'. 59 120 """ 60 self.unset_config() 121 self.unset_config(self.key_switch) 122 self.unset_config(self.key_size) 123 self.unset_config(self.key_permit) 124 self.unset_config(self.key_prohibit) 61 125 self.save() 62 126 … … 68 132 Form fields in setup_config() will pass as params. 69 133 """ 70 self.set_config() 134 switch = params.get('switch', 'yes') 135 if switch != 'yes': 136 switch = 'no' 137 size = params.get('size') 138 log.debug("size: %s" % size) 139 if int(size)<1: 140 raise Exception, _("Commit log size must > 0.") 141 permit = params.get('permit') 142 prohibit = params.get('prohibit') 143 self.set_config(self.key_switch, switch) 144 self.set_config(self.key_size, size) 145 if permit: 146 self.set_config(self.key_permit, permit) 147 if prohibit: 148 self.set_config(self.key_prohibit, prohibit) 71 149 self.save() 72 150 -
trunk/pysvnmanager/hooks/plugins/EmailNotify.py
r46 r47 4 4 from pysvnmanager.hooks.plugins import * 5 5 from pysvnmanager.hooks.plugins import _ 6 import webhelpers 6 7 7 8 class EmailNotify(PluginBase): 8 9 9 # Plugin id10 id = __name__.rsplit('.',1)[-1]11 12 10 # Brief name for this plugin. 13 11 name = _("Send email notify for commit event") … … 54 52 key_config = "email_notify_config" 55 53 54 section = 'email' 55 56 56 def enabled(self): 57 57 """ … … 71 71 if self.enabled(): 72 72 result += "\n\n" 73 result += "** Current configuration**\n\n"73 result += "**" + _("Current configuration") + "**\n\n" 74 74 if self.get_config(self.key_switch) == "yes": 75 result += _("-Email notify enabled.")75 result += "- " + _("Email notify enabled.") 76 76 else: 77 result += _("-Email notify disabled.")77 result += "- " + _("Email notify disabled.") 78 78 result += "\n" 79 result += _("- Parameters: ``") + self.get_config(self.key_config) + '``'80 79 result += "- " + _("Parameters: ") + "``" + self.get_config(self.key_config) + "``\n" 80 81 81 return result 82 82 … … 87 87 Any html and javascript are welcome. 88 88 """ 89 if self.get_config(self.key_switch)=="yes": 89 if self.get_config(self.key_switch)=="no": 90 enable_checked = "" 91 disable_checked = "checked" 92 else: 90 93 enable_checked = "checked" 91 94 disable_checked = "" 92 else:93 enable_checked = ""94 disable_checked = "checked"95 95 96 96 result = "" 97 97 result += "<p><strong>%s</strong></p>" % _("Fill this form") 98 98 result += "<blockquote>" 99 result += "<table class=hidden>" 100 result += "\n<tr><td>" 99 101 result += _("Enable email notify.") 102 result += "\n</td><td>" 100 103 result += "<input type='radio' name='switch' value='yes' " + \ 101 104 enable_checked + ">" + _("Enable") + " " 102 105 result += "<input type='radio' name='switch' value='no' " + \ 103 106 disable_checked + ">" + _("Disable") + "<br>" 104 result += _("Input email notify configurations: ") + \ 105 "<input type='text' name='config' size='64' value='%s'>" % \ 106 self.get_config(self.key_config) 107 result += "\n</td></tr>" 108 result += "\n<tr><td>" 109 result += _("Input email notify configurations: ") 110 result += "\n</td><td>" 111 result += "<input type='text' name='config' size='64' value=\"%s\">" % \ 112 webhelpers.util.html_escape(self.get_config(self.key_config)) 113 result += "\n</td></tr>" 114 result += "\n</table>" 107 115 result += "</blockquote>" 108 116 return result -
trunk/pysvnmanager/hooks/plugins/EolStyleCheck.py
r46 r47 7 7 class EolStyleCheck(PluginBase): 8 8 9 # Plugin id10 id = __name__.rsplit('.',1)[-1]11 12 9 # Brief name for this plugin. 13 10 name = _("mime-type and eol-style check") … … 26 23 27 24 # Plugin config option/value in config ini file. 28 key = " check_eol_style"25 key = "eol_style_check" 29 26 value = "yes" 27 28 section = 'pre_commit' 30 29 31 30 def enabled(self): -
trunk/pysvnmanager/hooks/plugins/__init__.py
r46 r47 67 67 """ Base class for hook plugins 68 68 """ 69 # Plugin id ( must be override!)70 id = __name__.rsplit('.',1)[-1]69 # Plugin id (will be set automatically after instance initialized) 70 id = None # __name__.rsplit('.',1)[-1] 71 71 72 72 # Both description and detail are reStructuredText format. … … 160 160 self.revision = os.path.getmtime(self.__configfile) 161 161 162 def get_config(self, key, default="", section=' main'):162 def get_config(self, key, default="", section=''): 163 163 """ 164 164 Get config from the default config file. 165 165 """ 166 if not section: 167 section = self.section 166 168 if not self.cp.has_section(section): 167 169 self.cp.add_section(section) … … 301 303 302 304 - %(t_name)s: %(name)s 303 - %(t_ name)s: %(type)s305 - %(t_type)s: %(type)s 304 306 305 307 **%(t_desc)s** -
trunk/pysvnmanager/i18n/en/LC_MESSAGES/pysvnmanager.po
r46 r47 10 10 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" 11 11 "POT-Creation-Date: 2008-07-03 22:14+0800\n" 12 "PO-Revision-Date: 2008-08-2 7 21:52+0800\n"12 "PO-Revision-Date: 2008-08-28 19:02+0800\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: en <LL@li.org>\n" … … 149 149 150 150 #: pysvnmanager/controllers/repos.py:82 151 #: pysvnmanager/hooks/plugins/__init__.py:31 2151 #: pysvnmanager/hooks/plugins/__init__.py:314 152 152 msgid "Type" 153 153 msgstr "" … … 245 245 msgstr "" 246 246 247 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:13 247 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:10 248 msgid "Allow revprop change" 249 msgstr "" 250 251 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:16 252 msgid "Allow user change commit-log or other rev-properties." 253 msgstr "" 254 255 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:19 256 msgid "" 257 "Commit-log is the only rev-prop we allow to change. Because the changes " 258 "of rev-prop can not be reverted back, administrator must setup email " 259 "notification to record this irreversible action." 260 msgstr "" 261 262 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:10 248 263 msgid "Mantis bugtracking integration" 249 264 msgstr "" 250 265 251 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:1 9266 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:16 252 267 msgid "" 253 268 "Integration Subversion with Mantis bugtracking. If commit-log has proper " … … 256 271 msgstr "" 257 272 258 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:13 259 msgid "check case insensitive" 273 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:10 274 msgid "Subversion client version check (>1.5.0)" 275 msgstr "" 276 277 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:16 278 msgid "Check subversion client version. if version below 1.5.0, checkin denied." 279 msgstr "" 280 281 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:19 282 msgid "" 283 "SVN below 1.5.0 can not handle mergeinfo properly.It can mess up our " 284 "automated merge tracking!" 285 msgstr "" 286 287 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:10 288 msgid "Detect case-insensitive filename clashes" 289 msgstr "" 290 291 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:16 292 msgid "A pre-commit hook to detect case-insensitive filename clashes." 260 293 msgstr "" 261 294 262 295 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:19 263 msgid "A pre-commit hook to detect case-insensitive filename clashes." 264 msgstr "" 265 266 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:13 296 msgid "" 297 "Subversion services may host on a filename case-sensitive OS,\n" 298 "while client **may not** (Windows is case-insensitive). This may cause " 299 "'clash'.\n" 300 "\n" 301 "- Detects new paths that 'clash' with existing, or other new, paths.\n" 302 "- Ignores existings paths that already 'clash'\n" 303 "- Exits with an error code, and a diagnostic on stderr, if 'clashes'\n" 304 " are detected.\n" 305 msgstr "" 306 307 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:11 267 308 msgid "Check commit log message" 268 309 msgstr "" 269 310 270 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:1 9311 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:17 271 312 msgid "User must provide commit-log message when checkin." 272 313 msgstr "" 273 314 274 #: pysvnmanager/hooks/plugins/EmailNotify.py:13 315 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:50 316 #: pysvnmanager/hooks/plugins/EmailNotify.py:73 317 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:49 318 msgid "Current configuration" 319 msgstr "" 320 321 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:52 322 msgid "Commit log check is enabled." 323 msgstr "" 324 325 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:54 326 msgid "Commit log check is disabled." 327 msgstr "" 328 329 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:56 330 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:95 331 msgid "Minimal size of commit log: " 332 msgstr "" 333 334 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:61 335 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:101 336 msgid "Pattern which commit log must match against: " 337 msgstr "" 338 339 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:64 340 msgid "Pattern which commit log must **NOT** match against: " 341 msgstr "" 342 343 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:83 344 #: pysvnmanager/hooks/plugins/EmailNotify.py:97 345 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:73 346 msgid "Fill this form" 347 msgstr "" 348 349 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:87 350 msgid "Enable commit log check: " 351 msgstr "" 352 353 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:90 354 #: pysvnmanager/hooks/plugins/EmailNotify.py:104 355 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:80 356 msgid "Enable" 357 msgstr "" 358 359 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:92 360 #: pysvnmanager/hooks/plugins/EmailNotify.py:106 361 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:82 362 msgid "Disable" 363 msgstr "" 364 365 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:107 366 msgid "Pattern which commit log must <b>NOT</b> match against: " 367 msgstr "" 368 369 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:140 370 msgid "Commit log size must > 0." 371 msgstr "" 372 373 #: pysvnmanager/hooks/plugins/EmailNotify.py:11 275 374 msgid "Send email notify for commit event" 276 375 msgstr "" 277 376 278 #: pysvnmanager/hooks/plugins/EmailNotify.py:1 9377 #: pysvnmanager/hooks/plugins/EmailNotify.py:17 279 378 msgid "" 280 379 "Send a notification email describing either a commit or a revprop-change " … … 282 381 msgstr "" 283 382 284 #: pysvnmanager/hooks/plugins/EmailNotify.py:2 3383 #: pysvnmanager/hooks/plugins/EmailNotify.py:21 285 384 msgid "" 286 385 "\n" … … 309 408 310 409 #: pysvnmanager/hooks/plugins/EmailNotify.py:75 311 msgid " -Email notify enabled."410 msgid "Email notify enabled." 312 411 msgstr "" 313 412 314 413 #: pysvnmanager/hooks/plugins/EmailNotify.py:77 315 msgid " -Email notify disabled."414 msgid "Email notify disabled." 316 415 msgstr "" 317 416 318 417 #: pysvnmanager/hooks/plugins/EmailNotify.py:79 319 msgid "- Parameters: ``" 320 msgstr "" 321 322 #: pysvnmanager/hooks/plugins/EmailNotify.py:97 323 msgid "Fill this form" 324 msgstr "" 325 326 #: pysvnmanager/hooks/plugins/EmailNotify.py:99 418 msgid "Parameters: " 419 msgstr "" 420 421 #: pysvnmanager/hooks/plugins/EmailNotify.py:101 327 422 msgid "Enable email notify." 328 423 msgstr "" 329 424 330 #: pysvnmanager/hooks/plugins/EmailNotify.py:101 331 msgid "Enable" 332 msgstr "" 333 334 #: pysvnmanager/hooks/plugins/EmailNotify.py:103 335 msgid "Disable" 336 msgstr "" 337 338 #: pysvnmanager/hooks/plugins/EmailNotify.py:104 425 #: pysvnmanager/hooks/plugins/EmailNotify.py:109 339 426 msgid "Input email notify configurations: " 340 427 msgstr "" 341 428 342 #: pysvnmanager/hooks/plugins/EmailNotify.py:131 429 #: pysvnmanager/hooks/plugins/EmailNotify.py:139 430 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:115 343 431 msgid "Wrong configuration." 344 432 msgstr "" 345 433 346 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:1 3434 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:10 347 435 msgid "mime-type and eol-style check" 348 436 msgstr "" 349 437 350 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:1 9438 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:16 351 439 msgid "New file must provide svn:eol-style if not binary file." 352 440 msgstr "" 353 441 354 #: pysvnmanager/hooks/plugins/MergeinfoClient.py:13 355 msgid "Subversion client mergeinfo capability check" 356 msgstr "" 357 358 #: pysvnmanager/hooks/plugins/MergeinfoClient.py:19 359 msgid "Do not allow subversion client (<1.5) to checkin." 442 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:10 443 msgid "Subversion readonly mirror" 444 msgstr "" 445 446 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:16 447 msgid "" 448 "This subversion repository is a svnsync readonly mirror. Nobody can " 449 "checkin, except the svnsync admin user." 450 msgstr "" 451 452 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:20 453 msgid "" 454 "Commit to the remote svn server, this repository is a readonly svn " 455 "mirror.It is the svnsync admin's duty to synchronize svnsync server and " 456 "mirror." 457 msgstr "" 458 459 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:51 460 msgid "Readonly mirror enabled." 461 msgstr "" 462 463 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:53 464 msgid "Readonly mirror disabled." 465 msgstr "" 466 467 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:55 468 msgid "Admin user: " 469 msgstr "" 470 471 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:77 472 msgid "Enable readonly mirror: " 473 msgstr "" 474 475 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:85 476 msgid "Svnsync administrator: " 360 477 msgstr "" 361 478 … … 370 487 msgstr "" 371 488 372 #: pysvnmanager/hooks/plugins/__init__.py:18 0373 #: pysvnmanager/hooks/plugins/__init__.py:20 7374 #: pysvnmanager/hooks/plugins/__init__.py:21 3375 #: pysvnmanager/hooks/plugins/__init__.py:23 2376 #: pysvnmanager/hooks/plugins/__init__.py:33 0377 #: pysvnmanager/hooks/plugins/__init__.py:33 7378 #: pysvnmanager/hooks/plugins/__init__.py:34 6489 #: pysvnmanager/hooks/plugins/__init__.py:182 490 #: pysvnmanager/hooks/plugins/__init__.py:209 491 #: pysvnmanager/hooks/plugins/__init__.py:215 492 #: pysvnmanager/hooks/plugins/__init__.py:234 493 #: pysvnmanager/hooks/plugins/__init__.py:332 494 #: pysvnmanager/hooks/plugins/__init__.py:339 495 #: pysvnmanager/hooks/plugins/__init__.py:348 379 496 msgid "Plugin not fully implemented." 380 497 msgstr "" 381 498 382 #: pysvnmanager/hooks/plugins/__init__.py:31 1499 #: pysvnmanager/hooks/plugins/__init__.py:313 383 500 msgid "Name" 384 501 msgstr "" 385 502 386 #: pysvnmanager/hooks/plugins/__init__.py:31 3503 #: pysvnmanager/hooks/plugins/__init__.py:315 387 504 msgid "Description" 388 505 msgstr "" … … 398 515 msgstr "" 399 516 400 #: pysvnmanager/model/repos.py:13 7517 #: pysvnmanager/model/repos.py:139 401 518 #, python-format 402 519 msgid "Repos %s is not a blank repository." … … 866 983 867 984 #~ msgid "" 868 #~ "\n" 869 #~ "**%(id)s**\n" 870 #~ "\n" 871 #~ "- %(t_name)s: %(name)s\n" 872 #~ "- %(t_name)s: %(type)s\n" 873 #~ "\n" 874 #~ "**%(t_desc)s**\n" 875 #~ "\n" 876 #~ "%(desc)s\n" 877 #~ "\n" 878 #~ "%(detail)s\n" 985 #~ "Subversion services may host on a filename case-sensitive OS,\n" 986 #~ "while client **may not** (Windows is " 987 #~ "case-insensitive). This may cause " 988 #~ "'clash'.\n" 989 #~ " \n" 990 #~ "- Detects new paths that 'clash' with existing, or other new, paths.\n" 991 #~ "- Ignores existings paths that already 'clash'\n" 992 #~ "- Exits with an error code, and a diagnostic on stderr, if 'clashes'\n" 993 #~ " are detected.\n" 879 994 #~ msgstr "" 880 995 -
trunk/pysvnmanager/i18n/pysvnmanager.pot
r46 r47 9 9 "Project-Id-Version: pySvnManager 0.2.0\n" 10 10 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" 11 "POT-Creation-Date: 2008-08-2 7 21:52+0800\n"11 "POT-Creation-Date: 2008-08-28 19:02+0800\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 141 141 msgstr "" 142 142 143 #: pysvnmanager/controllers/repos.py:82 pysvnmanager/hooks/plugins/__init__.py:31 2143 #: pysvnmanager/controllers/repos.py:82 pysvnmanager/hooks/plugins/__init__.py:314 144 144 msgid "Type" 145 145 msgstr "" … … 237 237 msgstr "" 238 238 239 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:13 239 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:10 240 msgid "Allow revprop change" 241 msgstr "" 242 243 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:16 244 msgid "Allow user change commit-log or other rev-properties." 245 msgstr "" 246 247 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:19 248 msgid "" 249 "Commit-log is the only rev-prop we allow to change. Because the changes of " 250 "rev-prop can not be reverted back, administrator must setup email " 251 "notification to record this irreversible action." 252 msgstr "" 253 254 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:10 240 255 msgid "Mantis bugtracking integration" 241 256 msgstr "" 242 257 243 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:1 9258 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:16 244 259 msgid "" 245 260 "Integration Subversion with Mantis bugtracking. If commit-log has proper " … … 248 263 msgstr "" 249 264 250 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:13 251 msgid "check case insensitive" 265 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:10 266 msgid "Subversion client version check (>1.5.0)" 267 msgstr "" 268 269 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:16 270 msgid "Check subversion client version. if version below 1.5.0, checkin denied." 271 msgstr "" 272 273 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:19 274 msgid "" 275 "SVN below 1.5.0 can not handle mergeinfo properly.It can mess up our " 276 "automated merge tracking!" 277 msgstr "" 278 279 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:10 280 msgid "Detect case-insensitive filename clashes" 281 msgstr "" 282 283 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:16 284 msgid "A pre-commit hook to detect case-insensitive filename clashes." 252 285 msgstr "" 253 286 254 287 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:19 255 msgid "A pre-commit hook to detect case-insensitive filename clashes." 256 msgstr "" 257 258 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:13 288 msgid "" 289 "Subversion services may host on a filename case-sensitive OS,\n" 290 "while client **may not** (Windows is case-insensitive). This may cause " 291 "'clash'.\n" 292 "\n" 293 "- Detects new paths that 'clash' with existing, or other new, paths.\n" 294 "- Ignores existings paths that already 'clash'\n" 295 "- Exits with an error code, and a diagnostic on stderr, if 'clashes'\n" 296 " are detected.\n" 297 msgstr "" 298 299 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:11 259 300 msgid "Check commit log message" 260 301 msgstr "" 261 302 262 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:1 9303 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:17 263 304 msgid "User must provide commit-log message when checkin." 264 305 msgstr "" 265 306 266 #: pysvnmanager/hooks/plugins/EmailNotify.py:13 307 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:50 308 #: pysvnmanager/hooks/plugins/EmailNotify.py:73 309 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:49 310 msgid "Current configuration" 311 msgstr "" 312 313 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:52 314 msgid "Commit log check is enabled." 315 msgstr "" 316 317 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:54 318 msgid "Commit log check is disabled." 319 msgstr "" 320 321 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:56 322 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:95 323 msgid "Minimal size of commit log: " 324 msgstr "" 325 326 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:61 327 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:101 328 msgid "Pattern which commit log must match against: " 329 msgstr "" 330 331 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:64 332 msgid "Pattern which commit log must **NOT** match against: " 333 msgstr "" 334 335 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:83 336 #: pysvnmanager/hooks/plugins/EmailNotify.py:97 337 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:73 338 msgid "Fill this form" 339 msgstr "" 340 341 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:87 342 msgid "Enable commit log check: " 343 msgstr "" 344 345 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:90 346 #: pysvnmanager/hooks/plugins/EmailNotify.py:104 347 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:80 348 msgid "Enable" 349 msgstr "" 350 351 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:92 352 #: pysvnmanager/hooks/plugins/EmailNotify.py:106 353 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:82 354 msgid "Disable" 355 msgstr "" 356 357 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:107 358 msgid "Pattern which commit log must <b>NOT</b> match against: " 359 msgstr "" 360 361 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:140 362 msgid "Commit log size must > 0." 363 msgstr "" 364 365 #: pysvnmanager/hooks/plugins/EmailNotify.py:11 267 366 msgid "Send email notify for commit event" 268 367 msgstr "" 269 368 270 #: pysvnmanager/hooks/plugins/EmailNotify.py:1 9369 #: pysvnmanager/hooks/plugins/EmailNotify.py:17 271 370 msgid "" 272 371 "Send a notification email describing either a commit or a revprop-change " … … 274 373 msgstr "" 275 374 276 #: pysvnmanager/hooks/plugins/EmailNotify.py:2 3375 #: pysvnmanager/hooks/plugins/EmailNotify.py:21 277 376 msgid "" 278 377 "\n" … … 301 400 302 401 #: pysvnmanager/hooks/plugins/EmailNotify.py:75 303 msgid " -Email notify enabled."402 msgid "Email notify enabled." 304 403 msgstr "" 305 404 306 405 #: pysvnmanager/hooks/plugins/EmailNotify.py:77 307 msgid " -Email notify disabled."406 msgid "Email notify disabled." 308 407 msgstr "" 309 408 310 409 #: pysvnmanager/hooks/plugins/EmailNotify.py:79 311 msgid "- Parameters: ``" 312 msgstr "" 313 314 #: pysvnmanager/hooks/plugins/EmailNotify.py:97 315 msgid "Fill this form" 316 msgstr "" 317 318 #: pysvnmanager/hooks/plugins/EmailNotify.py:99 410 msgid "Parameters: " 411 msgstr "" 412 413 #: pysvnmanager/hooks/plugins/EmailNotify.py:101 319 414 msgid "Enable email notify." 320 415 msgstr "" 321 416 322 #: pysvnmanager/hooks/plugins/EmailNotify.py:101 323 msgid "Enable" 324 msgstr "" 325 326 #: pysvnmanager/hooks/plugins/EmailNotify.py:103 327 msgid "Disable" 328 msgstr "" 329 330 #: pysvnmanager/hooks/plugins/EmailNotify.py:104 417 #: pysvnmanager/hooks/plugins/EmailNotify.py:109 331 418 msgid "Input email notify configurations: " 332 419 msgstr "" 333 420 334 #: pysvnmanager/hooks/plugins/EmailNotify.py:131 421 #: pysvnmanager/hooks/plugins/EmailNotify.py:139 422 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:115 335 423 msgid "Wrong configuration." 336 424 msgstr "" 337 425 338 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:1 3426 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:10 339 427 msgid "mime-type and eol-style check" 340 428 msgstr "" 341 429 342 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:1 9430 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:16 343 431 msgid "New file must provide svn:eol-style if not binary file." 344 432 msgstr "" 345 433 346 #: pysvnmanager/hooks/plugins/MergeinfoClient.py:13 347 msgid "Subversion client mergeinfo capability check" 348 msgstr "" 349 350 #: pysvnmanager/hooks/plugins/MergeinfoClient.py:19 351 msgid "Do not allow subversion client (<1.5) to checkin." 434 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:10 435 msgid "Subversion readonly mirror" 436 msgstr "" 437 438 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:16 439 msgid "" 440 "This subversion repository is a svnsync readonly mirror. Nobody can checkin, " 441 "except the svnsync admin user." 442 msgstr "" 443 444 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:20 445 msgid "" 446 "Commit to the remote svn server, this repository is a readonly svn mirror.It " 447 "is the svnsync admin's duty to synchronize svnsync server and mirror." 448 msgstr "" 449 450 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:51 451 msgid "Readonly mirror enabled." 452 msgstr "" 453 454 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:53 455 msgid "Readonly mirror disabled." 456 msgstr "" 457 458 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:55 459 msgid "Admin user: " 460 msgstr "" 461 462 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:77 463 msgid "Enable readonly mirror: " 464 msgstr "" 465 466 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:85 467 msgid "Svnsync administrator: " 352 468 msgstr "" 353 469 … … 362 478 msgstr "" 363 479 364 #: pysvnmanager/hooks/plugins/__init__.py:18 0365 #: pysvnmanager/hooks/plugins/__init__.py:20 7366 #: pysvnmanager/hooks/plugins/__init__.py:21 3367 #: pysvnmanager/hooks/plugins/__init__.py:23 2368 #: pysvnmanager/hooks/plugins/__init__.py:33 0369 #: pysvnmanager/hooks/plugins/__init__.py:33 7370 #: pysvnmanager/hooks/plugins/__init__.py:34 6480 #: pysvnmanager/hooks/plugins/__init__.py:182 481 #: pysvnmanager/hooks/plugins/__init__.py:209 482 #: pysvnmanager/hooks/plugins/__init__.py:215 483 #: pysvnmanager/hooks/plugins/__init__.py:234 484 #: pysvnmanager/hooks/plugins/__init__.py:332 485 #: pysvnmanager/hooks/plugins/__init__.py:339 486 #: pysvnmanager/hooks/plugins/__init__.py:348 371 487 msgid "Plugin not fully implemented." 372 488 msgstr "" 373 489 374 #: pysvnmanager/hooks/plugins/__init__.py:31 1490 #: pysvnmanager/hooks/plugins/__init__.py:313 375 491 msgid "Name" 376 492 msgstr "" 377 493 378 #: pysvnmanager/hooks/plugins/__init__.py:31 3494 #: pysvnmanager/hooks/plugins/__init__.py:315 379 495 msgid "Description" 380 496 msgstr "" … … 390 506 msgstr "" 391 507 392 #: pysvnmanager/model/repos.py:13 7508 #: pysvnmanager/model/repos.py:139 393 509 #, python-format 394 510 msgid "Repos %s is not a blank repository." -
trunk/pysvnmanager/i18n/zh/LC_MESSAGES/pysvnmanager.po
r46 r47 9 9 msgid "" 10 10 msgstr "" 11 "Project-Id-Version: pysvnmanager\n"11 "Project-Id-Version: pysvnmanager\n" 12 12 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" 13 13 "POT-Creation-Date: 2008-07-03 22:14+0800\n" 14 "PO-Revision-Date: 2008-08-2 7 21:52+0800\n"14 "PO-Revision-Date: 2008-08-28 19:04+0800\n" 15 15 "Last-Translator: Jiang Xin <worldhello.net@gmail.com>\n" 16 "Language-Team: <zh@li.org>\n"16 "Language-Team: <zh@li.org>\n" 17 17 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n" 18 18 "MIME-Version: 1.0\n" 19 "Content-Type: text/plain; charset= utf-8\n"19 "Content-Type: text/plain; charset=UTF-8\n" 20 20 "Content-Transfer-Encoding: 8bit\n" 21 21 "Generated-By: Babel 0.9.2\n" 22 "X-Generator: KBabel 1.11.4\n" 22 23 23 24 #: pysvnmanager/controllers/authz.py:43 … … 151 152 152 153 #: pysvnmanager/controllers/repos.py:82 153 #: pysvnmanager/hooks/plugins/__init__.py:31 2154 #: pysvnmanager/hooks/plugins/__init__.py:314 154 155 msgid "Type" 155 156 msgstr "类型" … … 255 256 msgstr "用户 %s 登出" 256 257 257 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:13 258 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:10 259 msgid "Allow revprop change" 260 msgstr "允许修改版本属性" 261 262 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:16 263 msgid "Allow user change commit-log or other rev-properties." 264 msgstr "允许用户修改提交说明等版本属性" 265 266 #: pysvnmanager/hooks/plugins/AllowRevpropChange.py:19 267 msgid "" 268 "Commit-log is the only rev-prop we allow to change. Because the changes " 269 "of rev-prop can not be reverted back, administrator must setup email " 270 "notification to record this irreversible action." 271 msgstr "提交说明是我们唯一允许修改的版本属性。因为版本属性本身未被版本控制,修改版本属性是不可恢复的操作,所以管理员在启用本功能前,应该考虑设置变更通知以记录修改事件。" 272 273 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:10 258 274 msgid "Mantis bugtracking integration" 259 275 msgstr "整合 Mantis 缺陷跟踪系统" 260 276 261 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:1 9277 #: pysvnmanager/hooks/plugins/BugtrackMantis.py:16 262 278 msgid "" 263 279 "Integration Subversion with Mantis bugtracking. If commit-log has proper " … … 268 284 "的状态修改为已修改,并将commit-log 以及代码变更添加到说明中。" 269 285 270 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:13 271 msgid "check case insensitive" 272 msgstr "大小写不敏感" 273 274 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:19 286 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:10 287 msgid "Subversion client version check (>1.5.0)" 288 msgstr "Subversion 客户端版本检查 (>1.5.0)" 289 290 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:16 291 msgid "Check subversion client version. if version below 1.5.0, checkin denied." 292 msgstr "检查 subversion 客户端版本。如果版本号小于 1.5.0,禁止客户端提交。" 293 294 #: pysvnmanager/hooks/plugins/CapCheckMergeInfo.py:19 295 msgid "" 296 "SVN below 1.5.0 can not handle mergeinfo properly.It can mess up our " 297 "automated merge tracking!" 298 msgstr "小于 1.5.0 版本的 SVN 客户端不能正确处理 mergeinfo。会破坏自动的合并追踪功能!" 299 300 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:10 301 msgid "Detect case-insensitive filename clashes" 302 msgstr "检查大小写引起的文件名冲突" 303 304 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:16 275 305 msgid "A pre-commit hook to detect case-insensitive filename clashes." 276 306 msgstr "在 pre-commit 钩子中执行,检查文件名大小写引起的文件名冲突。" 277 307 278 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:13 308 #: pysvnmanager/hooks/plugins/CaseInsensitive.py:19 309 msgid "" 310 "Subversion services may host on a filename case-sensitive OS,\n" 311 "while client **may not** (Windows is case-insensitive). This may cause " 312 "'clash'.\n" 313 "\n" 314 "- Detects new paths that 'clash' with existing, or other new, paths.\n" 315 "- Ignores existings paths that already 'clash'\n" 316 "- Exits with an error code, and a diagnostic on stderr, if 'clashes'\n" 317 " are detected.\n" 318 msgstr "" 319 "Subversion 服务可能安装在一个文件名大小写敏感的操作系统(如 Linux),\n" 320 "而客户端则可能 **不是** (Windows 文件名大小写不敏感)。这将造成冲突。\n" 321 "\n" 322 "- 检查新提交的文件的路径是否和已经存在的路径或者其他新增文件相冲突。\n" 323 "- 忽略已经存在的“冲突”的路径\n" 324 "- 如果发现冲突,拒绝提交,并报错。\n" 325 326 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:11 279 327 msgid "Check commit log message" 280 328 msgstr "检查提交说明" 281 329 282 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:1 9330 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:17 283 331 msgid "User must provide commit-log message when checkin." 284 332 msgstr "用户在代码提交时,必须提供提交说明。" 285 333 286 #: pysvnmanager/hooks/plugins/EmailNotify.py:13 334 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:50 335 #: pysvnmanager/hooks/plugins/EmailNotify.py:73 336 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:49 337 msgid "Current configuration" 338 msgstr "当前设置" 339 340 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:52 341 msgid "Commit log check is enabled." 342 msgstr "提交说明检查已经启用。" 343 344 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:54 345 msgid "Commit log check is disabled." 346 msgstr "提交说明检查已经禁用。" 347 348 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:56 349 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:95 350 msgid "Minimal size of commit log: " 351 msgstr "提交说明长度检查,最少:" 352 353 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:61 354 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:101 355 msgid "Pattern which commit log must match against: " 356 msgstr "提交说明必须与该模板匹配:" 357 358 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:64 359 msgid "Pattern which commit log must **NOT** match against: " 360 msgstr "提交说明 **不能** 出现类似内容:" 361 362 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:83 363 #: pysvnmanager/hooks/plugins/EmailNotify.py:97 364 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:73 365 msgid "Fill this form" 366 msgstr "填写表单" 367 368 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:87 369 msgid "Enable commit log check: " 370 msgstr "启用提交说明检查:" 371 372 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:90 373 #: pysvnmanager/hooks/plugins/EmailNotify.py:104 374 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:80 375 msgid "Enable" 376 msgstr "启用" 377 378 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:92 379 #: pysvnmanager/hooks/plugins/EmailNotify.py:106 380 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:82 381 msgid "Disable" 382 msgstr "关闭" 383 384 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:107 385 msgid "Pattern which commit log must <b>NOT</b> match against: " 386 msgstr "提交说明<b>不能</b>出现类似内容:" 387 388 #: pysvnmanager/hooks/plugins/CommitLogCheck.py:140 389 msgid "Commit log size must > 0." 390 msgstr "提交说明最小长度阈值必须大于零。" 391 392 #: pysvnmanager/hooks/plugins/EmailNotify.py:11 287 393 msgid "Send email notify for commit event" 288 394 msgstr "针对代码变更发出邮件通知" 289 395 290 #: pysvnmanager/hooks/plugins/EmailNotify.py:1 9396 #: pysvnmanager/hooks/plugins/EmailNotify.py:17 291 397 msgid "" 292 398 "Send a notification email describing either a commit or a revprop-change " … … 294 400 msgstr "当对 Subversion 代码库中的代码修改或者修改状态,发出邮件通知。" 295 401 296 #: pysvnmanager/hooks/plugins/EmailNotify.py:2 3402 #: pysvnmanager/hooks/plugins/EmailNotify.py:21 297 403 msgid "" 298 404 "\n" … … 341 447 342 448 #: pysvnmanager/hooks/plugins/EmailNotify.py:75 343 msgid " -Email notify enabled."344 msgstr " -邮件通知启用。"449 msgid "Email notify enabled." 450 msgstr "邮件通知启用。" 345 451 346 452 #: pysvnmanager/hooks/plugins/EmailNotify.py:77 347 msgid " -Email notify disabled."348 msgstr " -邮件通知关闭。"453 msgid "Email notify disabled." 454 msgstr "邮件通知关闭。" 349 455 350 456 #: pysvnmanager/hooks/plugins/EmailNotify.py:79 351 msgid "- Parameters: ``" 352 msgstr "- 参数: ``" 353 354 #: pysvnmanager/hooks/plugins/EmailNotify.py:97 355 msgid "Fill this form" 356 msgstr "填写表单" 357 358 #: pysvnmanager/hooks/plugins/EmailNotify.py:99 457 msgid "Parameters: " 458 msgstr "参数: " 459 460 #: pysvnmanager/hooks/plugins/EmailNotify.py:101 359 461 msgid "Enable email notify." 360 462 msgstr "启用邮件通知。" 361 463 362 #: pysvnmanager/hooks/plugins/EmailNotify.py:101 363 msgid "Enable" 364 msgstr "启用" 365 366 #: pysvnmanager/hooks/plugins/EmailNotify.py:103 367 msgid "Disable" 368 msgstr "关闭" 369 370 #: pysvnmanager/hooks/plugins/EmailNotify.py:104 464 #: pysvnmanager/hooks/plugins/EmailNotify.py:109 371 465 msgid "Input email notify configurations: " 372 466 msgstr "输入邮件通知配置参数: " 373 467 374 #: pysvnmanager/hooks/plugins/EmailNotify.py:131 468 #: pysvnmanager/hooks/plugins/EmailNotify.py:139 469 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:115 375 470 msgid "Wrong configuration." 376 471 msgstr "错误的配置" 377 472 378 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:1 3473 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:10 379 474 msgid "mime-type and eol-style check" 380 475 msgstr "文件类型和换行符设置检查" 381 476 382 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:1 9477 #: pysvnmanager/hooks/plugins/EolStyleCheck.py:16 383 478 msgid "New file must provide svn:eol-style if not binary file." 384 479 msgstr "新增的文本文件,必须设置换行符。" 385 480 386 #: pysvnmanager/hooks/plugins/MergeinfoClient.py:13 387 msgid "Subversion client mergeinfo capability check" 388 msgstr "Subversion 客户端版本检查(mergeinfo 功能)" 389 390 #: pysvnmanager/hooks/plugins/MergeinfoClient.py:19 391 msgid "Do not allow subversion client (<1.5) to checkin." 392 msgstr "不允许小于 1.5 的 subversion 客户端进行提交。" 481 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:10 482 msgid "Subversion readonly mirror" 483 msgstr "SVN 只读镜像" 484 485 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:16 486 msgid "" 487 "This subversion repository is a svnsync readonly mirror. Nobody can " 488 "checkin, except the svnsync admin user." 489 msgstr "本 SVN 版本库是一个 svnsync 的只读镜像。除了 svnsync 管理员,任何人都不能提交。" 490 491 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:20 492 msgid "" 493 "Commit to the remote svn server, this repository is a readonly svn " 494 "mirror.It is the svnsync admin's duty to synchronize svnsync server and " 495 "mirror." 496 msgstr "提交到远程的 SVN 服务器,本地服务器是一个只读的 SVN 镜像。同步远程与本地的 SVN 服务器,是管理员的职责。" 497 498 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:51 499 msgid "Readonly mirror enabled." 500 msgstr "只读镜像启用。" 501 502 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:53 503 msgid "Readonly mirror disabled." 504 msgstr "只读镜像关闭。" 505 506 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:55 507 msgid "Admin user: " 508 msgstr "管理员: " 509 510 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:77 511 msgid "Enable readonly mirror: " 512 msgstr "启用只读镜像:" 513 514 #: pysvnmanager/hooks/plugins/ReadonlySvnMirror.py:85 515 msgid "Svnsync administrator: " 516 msgstr "Svnsync 管理员:" 393 517 394 518 #: pysvnmanager/hooks/plugins/__init__.py:95 … … 402 526 msgstr "冲突:插件'%s'被其他人修改了。" 403 527 404 #: pysvnmanager/hooks/plugins/__init__.py:18 0405 #: pysvnmanager/hooks/plugins/__init__.py:20 7406 #: pysvnmanager/hooks/plugins/__init__.py:21 3407 #: pysvnmanager/hooks/plugins/__init__.py:23 2408 #: pysvnmanager/hooks/plugins/__init__.py:33 0409 #: pysvnmanager/hooks/plugins/__init__.py:33 7410 #: pysvnmanager/hooks/plugins/__init__.py:34 6528 #: pysvnmanager/hooks/plugins/__init__.py:182 529 #: pysvnmanager/hooks/plugins/__init__.py:209 530 #: pysvnmanager/hooks/plugins/__init__.py:215 531 #: pysvnmanager/hooks/plugins/__init__.py:234 532 #: pysvnmanager/hooks/plugins/__init__.py:332 533 #: pysvnmanager/hooks/plugins/__init__.py:339 534 #: pysvnmanager/hooks/plugins/__init__.py:348 411 535 msgid "Plugin not fully implemented." 412 536 msgstr "插件未完全实现。" 413 537 414 #: pysvnmanager/hooks/plugins/__init__.py:31 1538 #: pysvnmanager/hooks/plugins/__init__.py:313 415 539 msgid "Name" 416 540 msgstr "名称" 417 541 418 #: pysvnmanager/hooks/plugins/__init__.py:31 3542 #: pysvnmanager/hooks/plugins/__init__.py:315 419 543 msgid "Description" 420 544 msgstr "说明" … … 430 554 msgstr "版本库 %s 已经存在。" 431 555 432 #: pysvnmanager/model/repos.py:13 7556 #: pysvnmanager/model/repos.py:139 433 557 #, python-format 434 558 msgid "Repos %s is not a blank repository." … … 501 625 #, python-format 502 626 msgid "User %(username)s can *NOT* access to module %(repos)s:%(path)s" 503 msgstr "用户 %(username)s 对模组 %(repos)s:%(path)s 没有访问权限 (XX)"627 msgstr "用户 %(username)s 对模组 %(repos)s:%(path)s *没有* 访问权限 (XX)" 504 628 505 629 #: pysvnmanager/model/svnauthz.py:1813 … … 917 1041 msgstr "用户名:" 918 1042 919 #~ msgid ""920 #~ "\n"921 #~ "**%(id)s**\n"922 #~ "\n"923 #~ "- %(t_name)s: %(name)s\n"924 #~ "- %(t_name)s: %(type)s\n"925 #~ "\n"926 #~ "**%(t_desc)s**\n"927 #~ "\n"928 #~ "%(desc)s\n"929 #~ "\n"930 #~ "%(detail)s\n"931 #~ msgstr ""932 -
trunk/pysvnmanager/model/hooks.py
r45 r47 44 44 45 45 self.plugins = {} 46 self.pluginnames = plugins.modules 47 for m in self.pluginnames: 46 for m in plugins.modules: 48 47 self.plugins[m] = plugins.getHandler(m)(self.__repos_path) 48 self.plugins[m].id = m 49 self.pluginnames = [ m.id for m in sorted(self.plugins.values()) ] 49 50 50 51 def __get_applied_plugins(self): 51 result={} 52 for k,v in self.plugins.iteritems(): 53 if v.enabled(): 54 result[k]=v 55 return result 52 return [ m for m in self.pluginnames if self.plugins[m].enabled()] 56 53 57 54 applied_plugins = property(__get_applied_plugins) 58 55 59 56 def __get_unapplied_plugins(self): 60 result={} 61 for k,v in self.plugins.iteritems(): 62 if not v.enabled(): 63 result[k]=v 64 return result 57 return [ m for m in self.pluginnames if not self.plugins[m].enabled()] 65 58 66 59 unapplied_plugins = property(__get_unapplied_plugins) -
trunk/pysvnmanager/model/repos.py
r45 r47 68 68 raise Exception, _("Repos %s already exists.") % repos_name 69 69 from svn import repos as _repos 70 if isinstance(repos_path, unicode): 71 repos_path = repos_path.encode('utf-8') 70 72 _repos.create(repos_path, "", "", None, { "fs-type": "fsfs" }) 71 73 self.hooks_init(repos_name) -
trunk/pysvnmanager/tests/test_repos.py
r46 r47 76 76 self.assertRaises(Exception, plugins.getHandler("CaseInsensitive"), "") 77 77 module_ci = plugins.getHandler("CaseInsensitive")(self.repos_root + '/project1') 78 self.assert_(module_ci.name==" check case insensitive", module_ci.name)78 self.assert_(module_ci.name=="Detect case-insensitive filename clashes", module_ci.name) 79 79 self.assert_(module_ci.description!="", module_ci.description) 80 80 … … 95 95 self.assert_('EolStyleCheck' in myhooks.pluginnames, myhooks.pluginnames) 96 96 97 self.assert_('CaseInsensitive' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())98 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())97 self.assert_('CaseInsensitive' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 98 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 99 99 100 100 m = myhooks.plugins['CaseInsensitive'] 101 self.assert_(m.name==" check case insensitive", m.name)101 self.assert_(m.name=="Detect case-insensitive filename clashes", m.name) 102 102 self.assert_(m.description!="", m.description) 103 103 … … 107 107 m = myhooks.plugins['CaseInsensitive'] 108 108 self.assert_(m.enabled()==False) 109 self.assert_('CaseInsensitive' not in myhooks.applied_plugins .keys(), myhooks.applied_plugins.keys())110 self.assert_('EolStyleCheck' not in myhooks.applied_plugins .keys(), myhooks.applied_plugins.keys())111 self.assert_('CaseInsensitive' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())112 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())109 self.assert_('CaseInsensitive' not in myhooks.applied_plugins, myhooks.applied_plugins) 110 self.assert_('EolStyleCheck' not in myhooks.applied_plugins, myhooks.applied_plugins) 111 self.assert_('CaseInsensitive' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 112 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 113 113 114 114 m.install() 115 115 self.assert_(m.enabled()==True) 116 self.assert_('CaseInsensitive' in myhooks.applied_plugins .keys(), myhooks.applied_plugins.keys())117 self.assert_('EolStyleCheck' not in myhooks.applied_plugins .keys(), myhooks.applied_plugins.keys())118 self.assert_('CaseInsensitive' not in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())119 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())116 self.assert_('CaseInsensitive' in myhooks.applied_plugins, myhooks.applied_plugins) 117 self.assert_('EolStyleCheck' not in myhooks.applied_plugins, myhooks.applied_plugins) 118 self.assert_('CaseInsensitive' not in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 119 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 120 120 121 121 m.uninstall() 122 122 self.assert_(m.enabled()==False) 123 self.assert_('CaseInsensitive' not in myhooks.applied_plugins .keys(), myhooks.applied_plugins.keys())124 self.assert_('EolStyleCheck' not in myhooks.applied_plugins .keys(), myhooks.applied_plugins.keys())125 self.assert_('CaseInsensitive' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())126 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins .keys(), myhooks.unapplied_plugins.keys())123 self.assert_('CaseInsensitive' not in myhooks.applied_plugins, myhooks.applied_plugins) 124 self.assert_('EolStyleCheck' not in myhooks.applied_plugins, myhooks.applied_plugins) 125 self.assert_('CaseInsensitive' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 126 self.assert_('EolStyleCheck' in myhooks.unapplied_plugins, myhooks.unapplied_plugins) 127 127 128 128 -
trunk/setup.py
r44 r47 18 18 include_package_data=True, 19 19 test_suite='nose.collector', 20 package_data={'pysvnmanager': ['i18n/*/LC_MESSAGES/*.mo', 'config/*.in' ]},20 package_data={'pysvnmanager': ['i18n/*/LC_MESSAGES/*.mo', 'config/*.in', ]}, 21 21 message_extractors = {'pysvnmanager': [ 22 22 ('**.py', 'python', None),
![(please configure the [header_logo] section in trac.ini)](/trac/pysvnmanager/chrome/common/trac_banner.png)