[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OpenTAL-checkins] opental/OpenPT OpenPTBase.py
From: |
Fernando Lalo Martins |
Subject: |
[OpenTAL-checkins] opental/OpenPT OpenPTBase.py |
Date: |
Mon, 27 Jan 2003 02:21:45 -0500 |
CVSROOT: /cvsroot/opental
Module name: opental
Changes by: Fernando Lalo Martins <address@hidden> 03/01/27 02:21:44
Modified files:
OpenPT : OpenPTBase.py
Log message:
experimentally using the new paxtransform.RenderingEngine to see if it
speeds things up
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/OpenPT/OpenPTBase.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: opental/OpenPT/OpenPTBase.py
diff -u opental/OpenPT/OpenPTBase.py:1.1 opental/OpenPT/OpenPTBase.py:1.2
--- opental/OpenPT/OpenPTBase.py:1.1 Mon Jan 27 00:11:10 2003
+++ opental/OpenPT/OpenPTBase.py Mon Jan 27 02:21:44 2003
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
-__version__='$Revision: 1.1 $'[11:-2]
+__version__='$Revision: 1.2 $'[11:-2]
import OpenTAL, pax, PTmetal_handler, pax.paxtransform
from pax.backwards_compatibility import *
@@ -396,7 +396,8 @@
"""Call a Page Template"""
__traceback_info__ = 'bindings: %s;\n args: %s;\n kw: %s' % (
repr(bound_names), repr(args), repr(kw))
- tr_engine = pax.paxtransform.Engine()
+ #tr_engine = pax.paxtransform.Engine()
+ tr_engine = pax.paxtransform.RenderingEngine()
if handlers is None:
handlers = [h for h in handler_registry if h.name in self.handlers]
for handler in handlers:
@@ -433,8 +434,9 @@
context.encoding = self.encoding
context.root_xmlns_map = root_ns_map
tr_engine.initialize(context)
- result = pax.XML(tr_engine.transform(self.paxtree(), context),
- root_ns_map, self.encoding)
+ #result = pax.XML(tr_engine.transform(self.paxtree(), context),
+ # root_ns_map, self.encoding)
+ result = tr_engine.transform(self.paxtree(), context).text
if keyset is not None:
# Store the result in the cache.
self.ZCacheable_set(result, keywords=keyset)
- [OpenTAL-checkins] opental/OpenPT OpenPTBase.py,
Fernando Lalo Martins <=