diff MoinMoin/formatter/__init__.py @ 4169:1d5995a6a0e2

Moved unique-id-generation from request into own object
author Florian Krupicka <florian.krupicka@googlemail.com>
date Mon, 16 Jun 2008 17:21:25 +0200
parents 3b36f0cfc656
children 5746f1f27d3e
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Mon Jun 16 12:11:24 2008 +0200
+++ b/MoinMoin/formatter/__init__.py	Mon Jun 16 17:21:25 2008 +0200
@@ -75,12 +75,12 @@
 
     def startContent(self, content_id="content", **kw):
         if self.page:
-            self.request.begin_include(self.page.page_name)
+            self.request.uid_generator.begin(self.page.page_name)
         return ""
 
     def endContent(self):
         if self.page:
-            self.request.end_include()
+            self.request.uid_generator.end()
         return ""
 
     # Links ##############################################################
@@ -415,7 +415,7 @@
         if not ns is None:
             ns = self.sanitize_to_id(ns)
         id = self.sanitize_to_id(id)
-        id = self.request.make_unique_id(id, ns)
+        id = self.request.uid_generator(id, ns)
         return id
 
     def qualify_id(self, id):