[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OpenTAL-checkins] opental/OpenTAL tal_handler.py
From: |
Fernando Lalo Martins |
Subject: |
[OpenTAL-checkins] opental/OpenTAL tal_handler.py |
Date: |
Mon, 27 Jan 2003 02:01:50 -0500 |
CVSROOT: /cvsroot/opental
Module name: opental
Changes by: Fernando Lalo Martins <address@hidden> 03/01/27 02:01:50
Modified files:
OpenTAL : tal_handler.py
Log message:
replacing the Structure class with the new Literal class from pax
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/OpenTAL/tal_handler.py.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
Patches:
Index: opental/OpenTAL/tal_handler.py
diff -u opental/OpenTAL/tal_handler.py:1.25 opental/OpenTAL/tal_handler.py:1.26
--- opental/OpenTAL/tal_handler.py:1.25 Thu Jan 16 17:52:46 2003
+++ opental/OpenTAL/tal_handler.py Mon Jan 27 02:01:50 2003
@@ -21,7 +21,7 @@
from pax.paxtransform import AttributeHandler, CompiledInformationHandler, \
AttributeCompiler, StopTransform
-from pax import XML
+from pax import XML, Literal
from pax.backwards_compatibility import *
import re
@@ -43,13 +43,6 @@
while data and pname != name:
pname, pdata = data.pop(0)
-class Structure(object):
- def __init__(self, text):
- self.text = text
-
- def __xml__(self, *a):
- return self.text
-
class Default(Exception):
pass
@@ -92,7 +85,7 @@
if content is context.getDefault():
raise Default
if content and structure:
- content = Structure(content)
+ content = Literal(content)
return content
def handle_replace(element, context, value):
- [OpenTAL-checkins] opental/OpenTAL tal_handler.py,
Fernando Lalo Martins <=