Opened 6 years ago

Last modified 5 years ago

#4537 new defect doesn't work if first version is missing

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


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

It seems me that the hereafter patch fixes the problem:


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

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by osimons

  • Owner changed from osimons to pacopablo

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

The migrate script isn't mine, so reassigning.

Add Comment

Modify Ticket

as new .

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

Note: See TracTickets for help on using tickets.