Modify ↓
Opened 16 years ago
Closed 5 years ago
#4537 closed defect (wontfix)
migrate-tracblog.py doesn't work if first version is missing
Reported by: | 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
132 132 cnx = env.get_db_cnx() 133 133 for resource, page_tags in list(blog): 134 134 try: 135 page = WikiPage(env, version=1,name=resource.id)135 page = WikiPage(env, name=resource.id) 136 136 _, publish_time, author, _, _ = page.get_history().next() 137 137 if opts.deleteonly: 138 138 page.delete()
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by
Owner: | changed from osimons to John Hampton |
---|
comment:2 Changed 10 years ago by
Owner: | John Hampton deleted |
---|
comment:3 Changed 5 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Migrate script no longer supported in 1.4.
Note: See
TracTickets for help on using
tickets.
Sorry, didn't notice this ticket before now :-(
The migrate script isn't mine, so reassigning.