Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PluginAppreport instance has no attribute '_get_report_instance' #3

Open
rahulserver opened this issue Jan 13, 2017 · 1 comment
Open

Comments

@rahulserver
Copy link

The REPORTPYFPDF does not work and following example on wiki page:

#app_root/controllers/your_controller.py
def static_report_pyfpdf():
    static_html = '<html><body><h1>My first report</h1><table><tr><td>Hello world :P </td></tr><tr><td>using <strong>web2py-appreport</strong> with pyfpdf engine</td></tr><table></body></html>'
    return plugin_appreport.REPORTPYFPDF(html=static_html, title = 'My report title')

Gives this error:

PluginAppreport instance has no attribute '_get_report_instance'

On further debugging, its this line in plugin_appreport.py (line no.109 according to my pycharm debugger) thats giving the error:
pdf_builder = plugin_appreport_module.libs.appreport.pdf_builder.PdfBuilderPyfpdf(report = self._get_report_instance(kargs))

@lucasdavila
Copy link
Owner

lucasdavila commented Jan 16, 2017

Hey @rahulserver

Probably the _get_report_instance was renamed, so fixing the name would fix the issue.

Do you think you can send a pull request fixing it, so I can review and merge it?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants