changeset 903:8166d766c440

Unused method, not tested -> removed dynamic_content.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Fri, 07 Jul 2006 21:28:40 +0200
parents 51eae6ce2be7
children 14c71dafc9dd
files MoinMoin/formatter/__init__.py MoinMoin/formatter/dom_xml.py MoinMoin/formatter/text_python.py
diffstat 3 files changed, 0 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Thu Jul 06 19:36:50 2006 +0200
+++ b/MoinMoin/formatter/__init__.py	Fri Jul 07 21:28:40 2006 +0200
@@ -325,14 +325,6 @@
         del p
         return ''
 
-    def dynamic_content(self, parser, callback, arg_list=[], arg_dict={},
-                        returns_content=1):
-        content = parser[callback](*arg_list, **arg_dict)
-        if returns_content:
-            return content
-        else:
-            return ''
-
     # Other ##############################################################
     
     def div(self, on, **kw):
--- a/MoinMoin/formatter/dom_xml.py	Thu Jul 06 19:36:50 2006 +0200
+++ b/MoinMoin/formatter/dom_xml.py	Fri Jul 07 21:28:40 2006 +0200
@@ -217,13 +217,6 @@
                 self.text('\n'.join(lines)) +
                 self._set_tag('parser', False))
 
-    def dynamic_content(self, parser, callback, arg_list=[], arg_dict={}, returns_content=1):
-        content = parser[callback](*arg_list, **arg_dict)
-        if returns_content:
-            return content
-        else:
-            return ''
-
     def url(self, on, url='', css=None, **kw):
         kw['href'] = str(url)
         if css:
--- a/MoinMoin/formatter/text_python.py	Thu Jul 06 19:36:50 2006 +0200
+++ b/MoinMoin/formatter/text_python.py	Fri Jul 07 21:28:40 2006 +0200
@@ -111,16 +111,6 @@
             self.__in_pre = self.formatter.in_pre        
         return result
     
-    def dynamic_content(self, parser, callback, arg_list=[], arg_dict={},
-                            returns_content=1):
-        adjust = self.__adjust_formatter_state()
-        if returns_content:
-            return self.__insert_code('%srequest.write(%s.%s(*%r,**%r))' %
-                        (adjust, self.__parser, callback, arg_list, arg_dict))
-        else:
-            return self.__insert_code('%s%s.%s(*%r,**%r)' %
-                        (adjust, self.__parser, callback, arg_list, arg_dict))
-
     # Public methods ---------------------------------------------------
         
     def pagelink(self, on, pagename='', page=None, **kw):