web/views/wdoc.py
changeset 3733 c3feb6a33f58
parent 3655 af86ab65a282
child 3890 d7a270f50f54
--- a/web/views/wdoc.py	Mon Oct 19 17:53:53 2009 +0200
+++ b/web/views/wdoc.py	Mon Oct 19 18:15:24 2009 +0200
@@ -91,15 +91,16 @@
 
     def call(self):
         fid = self._cw.form['fid']
-        for lang in chain((self._cw.lang, self._cw.vreg.property_value('ui.language')),
-                          self._cw.config.available_languages()):
+        vreg = self._cw.vreg
+        for lang in chain((self._cw.lang, vreg.property_value('ui.language')),
+                          vreg.config.available_languages()):
             rid = '%s_%s.rst' % (fid, lang)
-            resourcedir = self._cw.config.locate_doc_file(rid)
+            resourcedir = vreg.config.locate_doc_file(rid)
             if resourcedir:
                 break
         else:
             raise NotFound
-        self.tocindex = build_toc(self._cw.config)
+        self.tocindex = build_toc(vreg.config)
         try:
             node = self.tocindex[fid]
         except KeyError: