Skip to content

Commit

Permalink
better using read_raw() instead of direct access
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Nov 9, 2001
1 parent 4ab6c3b commit 1ed9305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DT_Var.py
Expand Up @@ -217,8 +217,8 @@
''' # '
__rcs_id__='$Id: DT_Var.py,v 1.47 2001/11/09 18:52:21 andreasjung Exp $'
__version__='$Revision: 1.47 $'[11:-2]
__rcs_id__='$Id: DT_Var.py,v 1.48 2001/11/09 19:13:52 andreasjung Exp $'
__version__='$Revision: 1.48 $'[11:-2]

from DT_Util import parse_params, name_param, str
import re, string, sys
Expand Down Expand Up @@ -425,7 +425,7 @@ def structured_text(v, name='(Unknown name)', md={}):
if isinstance(v,StringType): txt = v

elif aq_base(v).meta_type in ['DTML Document','DTML Method']:
txt = aq_base(v).raw
txt = aq_base(v).read_raw()

else: txt = str(v)

Expand Down

0 comments on commit 1ed9305

Please sign in to comment.