Commit 8f1a6d73 authored by 's avatar

Added __roles__

parent 3a3c2ba8
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file. # attributions are listed in the accompanying credits file.
# #
############################################################################## ##############################################################################
"$Id: DT_String.py,v 1.35 2000/05/11 18:54:14 jim Exp $" "$Id: DT_String.py,v 1.36 2000/06/15 18:50:47 brian Exp $"
from string import split, strip from string import split, strip
import regex, ts_regex import regex, ts_regex
...@@ -326,6 +326,7 @@ class String: ...@@ -326,6 +326,7 @@ class String:
def name(self): return self.__name__ def name(self): return self.__name__
id=name id=name
setName__roles__=[]
def setName(self,v): self.__dict__['__name__']=v def setName(self,v): self.__dict__['__name__']=v
def default(self,name=None,**kw): def default(self,name=None,**kw):
...@@ -354,6 +355,7 @@ class String: ...@@ -354,6 +355,7 @@ class String:
for key in kw.keys(): self._vars[key]=kw[key] for key in kw.keys(): self._vars[key]=kw[key]
return name return name
munge__roles__=[]
def munge(self,source_string=None,mapping=None,**vars): def munge(self,source_string=None,mapping=None,**vars):
"""\ """\
Change the text or default values for a document template. Change the text or default values for a document template.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment