[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-dev
Subject:    [Zope-dev] Re: external product writing to a file system ?
From:       Anthony Baxter anthony () interlink ! com ! au
Date:       1999-06-01 15:04:59
[Download RAW message or body]

> Fully rendering dtml to an html string (same way zope does !) from an
> external method still eludes me. Happy to release the zope equivalent of
> wget once that's working. Anyone ?

something like this works for me... 

        dtmlstring = """ some <!--#var dtmlstuff --> blah blah blah """
        Results = DocumentTemplate.HTML(dtmlstring)
        Results = apply(Results, (self, REQUEST), 
                 {  'dtmlstuff' : 'bananas' } )

where 'self' is the instance, REQUEST the request object (if you 
have things there that you want to look up)

or are you also talking about recursing, doing lookups, &c?

Anthony

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic