Modify

Opened 5 years ago

Closed 21 months ago

#5261 closed defect (wontfix)

CombineWikiModule Does Not Work with Trac 0.11dev-r6079

Reported by: josepharmbruster Owned by: coderanger
Priority: normal Component: CombineWikiPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Quite some time ago I had quickly put together an internal wiki for my organization using Trac 0.11dev-r6079. Recently, we had the desire to export pages (and possible sets of pages) to PDF. I ran into two plugins of interest: pagetopdf and combinewiki. I know little to nothing about developing plugins with trac, or trac development in general. I noticed that out-of-the-box, the combinewiki plugin did not function. Since i'm mildly familiar with python I took a stab at making it work. Right or wrong, here's what I did:

  • built html doc from source [htmldoc-1.9.x-r1586.zip] and installed as dictated in the compile.txt file
  • added the following to my trac.ini:

[components]
...
combinewiki.* = enabled

[pagetopdf]
size = A4
charset = iso-8859-15

  • sinec TracWebAdmin no longer existed I attempted to hack web_ui.py:

#from webadmin.web_ui import IAdminPageProvider
from trac.admin import IAdminPanelProvider

#def get_admin_pages(self, req):
def get_admin_panels(self, req):

  • noticed that the htmldoc tool was not completing correctly, so I had to add the following line to formats.py. I did not add this as an argument to htmldoc_args, since it needs to be at the end of the command string...

cmd_string = 'htmldoc %s %s -f %s'%(args_string, ' '.join(files), pfilename)
cmd_string += ' --webpage'

I have made it this far, and I now get pdf output (albeit, not with a .pdf extension). All the exported PDFs are blank. I traced this into the process_combinewiki call and i'm still digging for now.

Since I haven't actually seen this plugin work, here's a quick question:

In my "Combine Wiki" Administration page, There is a "All Pages" list to the left hand side... It looks as if pages are suppose to be selected and moved to some right hand side table but I don't see anything there. When I click the right hand arrow, nothing happens. I'm going to investigate this now as well.

I'm certain most of these issues are a result of my ignorance of trac internals and plugin development. If anyone has any additional insight, it would be greatly appreciated.

Thank You in advance,
Joseph Armbruster

Attachments (0)

Change History (1)

comment:1 Changed 21 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Deprecated: Please try the TracWikiToPdfPlugin.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.