nicoe,
I finally got the chance to play around with relatorio today, but I can't
seem to get it to work.
In the example () the following line seems to be incorrect:
file('bonham_basic.odt', 'w').write(basic.generate(o=inv).getvalue())
the RelatorioStream returned by basic.generate() does not have a getvalue
method.
I can only assume that there was supposed to be a call to render() in there
someplace, so that it would return a StringIO object, but that doesn't seem
to work either. It always gives me a corrupt .odt file (which OpenOffice
"repairs" into a blank file.
Can you provide some direction?
Kevin Horn
On Fri, Sep 12, 2008 at 7:33 AM, Lukasz Szybalski <[EMAIL PROTECTED]>wrote:
> On Fri, Sep 12, 2008 at 4:45 AM, nicoe <[EMAIL PROTECTED]> wrote:
> >
> > On Sep 11, 10:55 pm, "Kevin Horn" <[EMAIL PROTECTED]> wrote:
> >> On Thu, Sep 11, 2008 at 11:20 AM, nicoe <[EMAIL PROTECTED]> wrote:
> >>
> >> > On 26 août, 18:50, "Kevin Horn" <[EMAIL PROTECTED]> wrote:
> >> > > I built a little project I called "Skidoo" a while back that uses
> >> > OpenOffice
> >> > > + Kid to fill in templates. The same thing should work for Genshi.
> >>
> >> > > I'll see if I can dig it up, but I'm going out of town tomorrow
> morning,
> >> > so
> >> > > it may be a week or so.
> >>
> >> > I made the same kind of project recently, maybe we could share some
> >> > ideas and see what can come out of this.
> >>
> >> >http://relatorio.openhex.org/
> >>
> >> > relatorio supports odf and ConTeXt templating through genshi. I also
> >> > added some kind of chart templating but I am not that happy with the
> >> > way it works so if anybody has an idea it would be more than welcome.
> >>
> >> Relatorio looks very nice. Seems to be easier to use than my solution
> as
> >> well.
> >>
> >> Good Work!
> >
> > Thanks !
> >
> > Maybe there is some ideas to share between our projects, so I would be
> > interested in getting a copy of skidoo (if its licence makes it
> > possible of course).
>
>
> Nice.. So we actually have few people interested in this which is good. :)
>
> Can I ask you guys something since it seems you have played with it a
> little bit more?
>
> First:
> How can I add a new page. Right now what I do is fill in some
> variables save the file as temp.odt and
> cursor2.insertDocumentFromURL("file:///home/lucas/temp.odt", ())
> This mechanism slows down at about 100th page, is there another
> function I could add a page to, preferably without touching harddrive.
>
>
> Second:
> How do you start openoffice without the graphical interface so I can
> get more speed out of it?
>
>
> Finally:
> What template language do you use inside of openoffice? What would be
> a general procedure if I wanted to use kid,genshi or maco in
> openoffice?
>
> Thanks,
> Lucas
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---