#7078 closed defect (fixed)
Error when printing html
Reported by: | Owned by: | Álvaro Iradier | |
---|---|---|---|
Priority: | normal | Component: | TracWikiPrintPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi,
i have this problem, when i print with html from administrative panel i got this error
Oops… Trac detected an internal error:
TypeError: html_to_printhtml() takes at least 3 non-keyword arguments (2 given)
This is probably a local installation issue. Found a bug in Trac?
If you think this should work and you can reproduce the problem, you should consider reporting this to the Trac team.
Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.
Trac | 0.11.7 | Python | 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] | setuptools | 0.6c11 | SQLite | 3.5.9 | pysqlite | 2.4.1 | Genshi | 0.6dev-r1070 | Pygments | 1.3.1 | RPC | 1.0.6 | jQuery: | 1.2.6 | ==== Python Traceback ==== Traceback (most recent call last): File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\web\main.py", line 450, in _dispatch_request dispatcher.dispatch(req) File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\web\main.py", line 206, in dispatch resp = chosen_handler.process_request(req) File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\admin\web_ui.py", line 114, in process_request path_info) File "build\bdist.win32\egg\wikiprint\web_ui.py", line 53, in render_admin_panel return self._render_book(req, cat, page, component) File "build\bdist.win32\egg\wikiprint\web_ui.py", line 88, in _render_book return formats[format]['provider'].process_wikiprint(req, format, title, subject, rightpages, version, date, pdfbookname) File "build\bdist.win32\egg\wikiprint\formats.py", line 43, in process_wikiprint out = wikiprint.html_to_printhtml(html_pages, title=title, subject=subject, version=version, date=date) TypeError: html_to_printhtml() takes at least 3 non-keyword arguments (2 given) a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it.
|
Python Traceback Most recent call last:
- File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\web\main.py", line 450, in _dispatch_request
Code fragment:
- try:
- if not env and env_error:
- raise HTTPInternalError(env_error)
- try:
- dispatcher = RequestDispatcher(env)
- dispatcher.dispatch(req)
- except RequestDone:
- pass
- resp = req._response or []
- except HTTPException, e:
programmi
python26
lib
site-packages
trac-0.11.7-py2.6-win32.egg
... frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 449 message u'TypeError: html_to_printhtml() takes at least 3 non-keyword arguments (2 ... req <Request "POST u'/admin/wikiprint/makebook'"> resp [] tb <traceback object at 0x0198EF58> tb_hide None traceback u'Traceback (most recent call last):\n File ... - File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\web\main.py", line 206, in dispatch
Code fragment:
- req.args.get('FORM_TOKEN') != req.form_token:
- raise HTTPBadRequest('Missing or invalid form token. '
- 'Do you have cookies enabled?')
- # Process the request and render the template
- resp = chosen_handler.process_request(req)
- if resp:
- if len(resp) == 2: # Clearsilver
- chrome.populate_hdf(req)
- template, content_type = \
- self._post_process_request(req, *resp)
- File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\admin\web_ui.py", line 114, in process_request
Code fragment:
- if not provider:
- raise HTTPNotFound(_('Unknown administration panel'))
- if hasattr(provider, 'render_admin_panel'):
- template, data = provider.render_admin_panel(req, cat_id, panel_id,
- path_info)
- else: # support for legacy WebAdmin panels
- data = {}
- cstmpl, ct = provider.process_admin_request(req, cat_id, panel_id,
- path_info)
- File "build\bdist.win32\egg\wikiprint\web_ui.py", line 53, in render_admin_panel Local variables: Name Value cat u'wikiprint' component None page u'makebook' req <Request "POST u'/admin/wikiprint/makebook'"> self <wikiprint.web_ui.WikiPrintAdmin object at 0x018C9210>
- File "build\bdist.win32\egg\wikiprint\web_ui.py", line 88, in _render_book Local variables: Name Value allpages [u'WikiNewPage', u'TracModWSGI', u'TracInstall', u'TracCgi', ... cat u'wikiprint' component None data {} date u format u'printhtml' formats {'pdfbook': {'name': 'PDF Book', 'provider': ... name 'HTML' page u'makebook' pdfbookname u'BVS' provider <wikiprint.formats.WikiPrintOutput object at 0x0191B530> req <Request "POST u'/admin/wikiprint/makebook'"> rightpages [u] self <wikiprint.web_ui.WikiPrintAdmin object at 0x018C9210> subject u title u'BVS' version u x
- File "build\bdist.win32\egg\wikiprint\formats.py", line 43, in process_wikiprint Local variables: Name Value date u format u'printhtml' html_pages [<Markup u>] p u pages [u] pdfname u'BVS' req <Request "POST u'/admin/wikiprint/makebook'"> self <wikiprint.formats.WikiPrintOutput object at 0x0191B530> subject u title u'BVS' version u wikiprint <wikiprint.wikiprint.WikiPrint object at 0x018C9250>
File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\web\main.py", line 450, in _dispatch_request
dispatcher.dispatch(req)
File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\web\main.py", line 206, in dispatch
resp = chosen_handler.process_request(req)
File "c:\programmi\python26\lib\site-packages\trac-0.11.7-py2.6-win32.egg\trac\admin\web_ui.py", line 114, in process_request
path_info)
File "build\bdist.win32\egg\wikiprint\web_ui.py", line 53, in render_admin_panelFile "build\bdist.win32\egg\wikiprint\web_ui.py", line 88, in _render_bookFile "build\bdist.win32\egg\wikiprint\formats.py", line 43, in process_wikiprint
System Information:
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) Trac: 0.11.7 Python: 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] setuptools: 0.6c11 SQLite: 3.5.9 pysqlite: 2.4.1 Genshi: 0.6dev-r1070 Pygments: 1.3.1 RPC: 1.0.6 jQuery: 1.2.6
(In [7932]) Fixes #7078