Hello, I have coded my own DTML tag and i want to catch a
property of the folder where the DTML-Coded is.
How can i do this???
from DocumentTemplate.DT_Util import * # useful
parsing methods you'll need
from DocumentTemplate.DT_String import
String # explained later
class FuenteTag:
name = 'fuente'
blockContinuations=()
expand=None
def __init__(self,
blocks):
tname, args, section =
blocks[0]
self.tname=tname
self.section=section
args=parse_params(args, font='Verdana',
size='2')
self.args=args
self.font =
args.get('font','Verdana')
self.size = args.get('size','2')
def render(self,
md):
cadena = '<FONT
FACE="'+self.font+'" SIZE="' + self.size + '">'
+self.section(md)+'</FONT>'
return cadena
__call__ = render
String.commands['fuente'] = FuenteTag