Modify

Opened 5 years ago

Last modified 5 years ago

#4666 new enhancement

Add revision information for pages

Reported by: casey@… Owned by: kgk
Priority: normal Component: MoinToTracScript
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

It would be nice to have the author/date/ip information added with the wiki pages and attachments. I've made some modifications to that effect and attached an updated script.

Attachments (2)

moin2trac.py (4.6 KB) - added by casey@… 5 years ago.
moin2trac.2.py (6.8 KB) - added by casey@… 5 years ago.
Updated moin2trac.py

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by casey@…

comment:1 Changed 5 years ago by casey@…

By the way, this also fixes a couple other issues (sorry to piggyback):

  • Creates revisions in order, instead of whatever order returned by os.listdir(), which is arbitrary
  • Unquotes the filename, to correctly name the page in trac, rather than using the quoted name

Changed 5 years ago by casey@…

Updated moin2trac.py

comment:2 Changed 5 years ago by casey@…

I've added an update in a second attachment (attachment:moin2trac.2.py), which does the following:

Update some of the content of the moin pages as well:

  • inline images/drawings
  • external and wiki links
  • attachment links
  • TableOfContents conversion

Don't check for revisions if edit-log is of size 0 (moin doesn't handle it well)

Change to more intuitive name 'author' instead of 'name' var

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.