Modify

Opened 16 years ago

Last modified 16 years ago

#4666 new enhancement

Add revision information for pages

Reported by: casey@… Owned by: Kristian Kvilekval
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@… 16 years ago.
moin2trac.2.py (6.8 KB) - added by casey@… 16 years ago.
Updated moin2trac.py

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by casey@…

Attachment: moin2trac.py added

comment:1 Changed 16 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 16 years ago by casey@…

Attachment: moin2trac.2.py added

Updated moin2trac.py

comment:2 Changed 16 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Kristian Kvilekval.

Add Comment


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

 
Note: See TracTickets for help on using tickets.