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

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
Aitor Grajal Crespo
Director General
e-mail: Aitor.Grajal@inetsysonline.com
 
INETSYS, S.L.
ETSI Inform?tica
Ctra. Colmenar, km. 15,500
28049 MADRID
SPAIN
Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66
http://www.inetsysonline.com
 
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/