Modify

Opened 15 years ago

Closed 4 years ago

#4537 closed defect (wontfix)

migrate-tracblog.py doesn't work if first version is missing

Reported by: perus@… Owned by:
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When a wiki tagged as blog has no longer version 1 the migration script migrate-tracblog.py fails with exception "Failed to add post".

It seems me that the hereafter patch fixes the problem:

  • migrate-tracblog.py

     
    132132    cnx = env.get_db_cnx()
    133133    for resource, page_tags in list(blog):
    134134        try:
    135             page = WikiPage(env, version=1, name=resource.id)
     135            page = WikiPage(env, name=resource.id)
    136136            _, publish_time, author, _, _ =  page.get_history().next()
    137137            if opts.deleteonly:
    138138                page.delete()

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by osimons

Owner: changed from osimons to John Hampton

Sorry, didn't notice this ticket before now :-(

The migrate script isn't mine, so reassigning.

comment:2 Changed 9 years ago by Ryan J Ollos

Owner: John Hampton deleted

comment:3 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Migrate script no longer supported in 1.4.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.