[reportlab-users] Re: generating PDF

Albert Lee.K.W reportlab-users@reportlab.com
Sat, 5 Jun 2004 00:12:53 +0800


Thanks, there is the traceback. I totally follow the ExampleHowTo , can't 
generate pdf. 

Albert

On Fri,  4 Jun 2004 12:29:24 +0200, ueck wrote
> Quoting "Albert Lee.K.W" <albert@soqhome.com>:
> 
> > Hi, 
> >  
> > I am using Plone2.03, get CMFReportTool from CVS, reportlab-1.1.9, I 
follow  
> > the ExampleHowTo. I cannot pass to generate the defautlt document. I 
call  
> > the site like : 
> > 
http://albertest.soqhome.com/report/asPDF/pdftemplate_default/document_pdf 
> >  
> > The show attribute error : cooked_text  
> >  
> > Albert 
> >
> 
> can you supply the traceback please ?

Traceback (innermost last): 

Module ZPublisher.Publish, line 100, in publish 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 40, in call_object 
Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
Module Products.CMFCore.FSPythonScript, line 160, in _exec 
Module None, line 18, in asPDF
<FSPythonScript at /report/asPDF>
Line 18 
Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
Module Products.CMFCore.FSPageTemplate, line 191, in _exec 
Module Products.CMFCore.FSPageTemplate, line 124, in pt_render 
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
<FSPageTemplate at /report/document_pdf> 
Module TAL.TALInterpreter, line 189, in __call__ 
Module TAL.TALInterpreter, line 233, in interpret 
Module TAL.TALInterpreter, line 629, in do_condition 
Module TAL.TALInterpreter, line 233, in interpret 
Module TAL.TALInterpreter, line 561, in do_insertStructure_tal 
Module Products.PageTemplates.TALES, line 220, in evaluate
Expression: <PythonExpr here.portal_report.convertHTML(here.cooked_text)>
Names:
{'container': <PloneSite instance at 41bb03e0>,
 'context': <PloneSite instance at 41bb03e0>,
 'default': <Products.PageTemplates.TALES.Default instance at 0x40c3444c>,
 'here': <PloneSite instance at 41bb03e0>,
 'loop': <SafeMapping instance at 41bcff30>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0x40c342cc>,
 'nothing': None,
 'options': {'args': ()},
 'repeat': <SafeMapping instance at 41bcff30>,
 'request': <HTTPRequest, URL=http://albertest.soqhome.com/report/asPDF>,
 'root': <Application instance at 415d8d40>,
 'template': <FSPageTemplate at /report/document_pdf>,
 'traverse_subpath': ['pdftemplate_default', 'document_pdf'],
 'user': Anonymous User}Module Products.PageTemplates.ZRPythonExpr, line 47, 
in __call__
__traceback_info__: here.portal_report.convertHTML(here.cooked_text) 
Module Python expression "here.portal_report.convertHTML(here.cooked_text)", 
line 1, in <expression> 
AttributeError: cooked_text 
 
> there might be issues with 1.19. we haven't tested it against the 
> latest reportlab release.
> 
> cheers Ulrich
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/