changeset 2837:9fdc81419de7

wikidicts: removed load_dicts wikidictsrescan: added del request.dicts
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 14 Sep 2007 18:20:42 +0200
parents f5049c4cbf6e
children 62d309a0e670
files MoinMoin/events/wikidictsrescan.py MoinMoin/wikidicts.py
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/wikidictsrescan.py	Fri Sep 14 12:53:23 2007 +0200
+++ b/MoinMoin/events/wikidictsrescan.py	Fri Sep 14 18:20:42 2007 +0200
@@ -30,6 +30,7 @@
     page = event.page
 
     logging.debug("groupsdicts changed: %r, scan_dicts started", page.page_name)
+    del request.dicts
     gd = wikidicts.GroupDict(request)
     gd.scan_dicts()
     logging.debug("groupsdicts changed: scan_dicts finished")
--- a/MoinMoin/wikidicts.py	Fri Sep 14 12:53:23 2007 +0200
+++ b/MoinMoin/wikidicts.py	Fri Sep 14 18:20:42 2007 +0200
@@ -159,7 +159,6 @@
 
     def dict(self, dictname):
         """ get dict <dictname> """
-        self.load_dicts() # reload dicts (needs to be done to have current dicts)
         try:
             d = self.dictdict[dictname]
         except KeyError: