changeset 2873:71d89ce8b878

Fix 'Toggle line numbers' link in code areas, so it gets translated for the current user's language.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 26 Sep 2007 07:07:35 +0200
parents a66f643580fb
children de20fd4e2352
files MoinMoin/parser/text_cplusplus.py MoinMoin/parser/text_java.py MoinMoin/parser/text_pascal.py MoinMoin/parser/text_python.py docs/CHANGES
diffstat 5 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_cplusplus.py	Wed Sep 26 01:20:33 2007 +0200
+++ b/MoinMoin/parser/text_cplusplus.py	Wed Sep 26 07:07:35 2007 +0200
@@ -25,13 +25,13 @@
 
 from MoinMoin.parser._ParserBase import ParserBase
 
-Dependencies = []
+Dependencies = ['user'] # the "Toggle line numbers link" depends on user's language
 
 class Parser(ParserBase):
 
     parsername = "ColorizedCPlusPlus"
     extensions = ['.c', '.h', '.cpp', '.c++']
-    Dependencies = []
+    Dependencies = Dependencies
 
     def setupRules(self):
         ParserBase.setupRules(self)
--- a/MoinMoin/parser/text_java.py	Wed Sep 26 01:20:33 2007 +0200
+++ b/MoinMoin/parser/text_java.py	Wed Sep 26 07:07:35 2007 +0200
@@ -9,13 +9,13 @@
 
 from MoinMoin.parser._ParserBase import ParserBase
 
-Dependencies = []
+Dependencies = ['user'] # the "Toggle line numbers link" depends on user's language
 
 class Parser(ParserBase):
 
     parsername = "ColorizedJava"
     extensions = ['.java']
-    Dependencies = []
+    Dependencies = Dependencies
 
     def setupRules(self):
         ParserBase.setupRules(self)
--- a/MoinMoin/parser/text_pascal.py	Wed Sep 26 01:20:33 2007 +0200
+++ b/MoinMoin/parser/text_pascal.py	Wed Sep 26 07:07:35 2007 +0200
@@ -8,13 +8,13 @@
 
 from MoinMoin.parser._ParserBase import ParserBase
 
-Dependencies = []
+Dependencies = ['user'] # the "Toggle line numbers link" depends on user's language
 
 class Parser(ParserBase):
 
     parsername = 'ColorizedPascal'
     extensions = ['.pas']
-    Dependencies = []
+    Dependencies = Dependencies
 
     def __init__(self, raw, request, **kw):
         ParserBase.__init__(self, raw, request, **kw)
--- a/MoinMoin/parser/text_python.py	Wed Sep 26 01:20:33 2007 +0200
+++ b/MoinMoin/parser/text_python.py	Wed Sep 26 07:07:35 2007 +0200
@@ -25,14 +25,14 @@
     _TEXT:              'Text',
 }
 
-Dependencies = []
+Dependencies = ['user'] # the "Toggle line numbers link" depends on user's language
 
 class Parser:
     """ Send colored python source.
     """
 
     extensions = ['.py']
-    Dependencies = []
+    Dependencies = Dependencies
 
     def __init__(self, raw, request, **kw):
         """ Store the source text.
--- a/docs/CHANGES	Wed Sep 26 01:20:33 2007 +0200
+++ b/docs/CHANGES	Wed Sep 26 07:07:35 2007 +0200
@@ -560,6 +560,9 @@
     * Respect ACLs when sending <link rel="Appendix" ...> for attachments.
     * Fixed potential XSS issues related to feeding of gui editor.
     * Fixed XSS issue in RenamePage/DeletePage action.
+    * Avoid 'current' file corruption in out-of-space conditions.
+    * Fix "Toggle line numbers" link in code areas, so it gets translated
+      for the current user's language.
 
 Version 1.5.8:
   New features: