From: Gerald B. <ger...@gm...> - 2009-06-11 14:10:52
|
Sure I can do that. In the meantime, the 'title' object is the second in the 'head' object. So if you use: page, head, body = Html.page() you can later change the title like this: head[1] = Html('title','new title') At the end of the day, the objects are just Python lists. On Thu, Jun 11, 2009 at 5:41 AM, Benny Malengier<ben...@gm...> wrote: > Gerald, another thing. > > I would like to use the head/page/... methods, but without setting the > title already. > In the textdoc api there is no title method, you only know the level > of a header when it starts writing. > > So I would like to have the possibility to pass > title=None > and then those methods skip writing out the title. Then when I know > the title is written, I add the title section myself to the header. > Perhaps that should be the default, as the present value is not very > good. It should moreover be _('Title') for internationalization, > should that remain the default. > > Ok? > > Benny > -- Gerald Britton |