Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1650 closed defect (fixed)

Wiki dump doesn't work in development tree

Reported by: Gary Thomas <gary@…> Owned by: Christopher Lenz
Priority: high Milestone: 0.9
Component: admin/console Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I recently upgraded to the development branch (r1762) and trac-admin wiki dump no longer works.

$ trac-admin /my/trac.data wiki dump Wiki2 CamelCase ⇒ Wiki2/CamelCase Wiki dump failed: unsubscriptable object

Attachments (2)

trac.patch (0 bytes ) - added by gary@… 19 years ago.
Patch to fix problem with 'trac-admin wiki dump'
trac.2.patch (618 bytes ) - added by gary@… 19 years ago.
Real patch for bug (sorry about empty attachment)

Download all attachments as: .zip

Change History (5)

comment:1 by gary@…, 19 years ago

This patch [against r1826] fixes the problem (evidently introduced around r1712).

Index: trac/scripts/admin.py =================================================================== —- trac/scripts/admin.py (revision 1826) +++ trac/scripts/admin.py (working copy) @@ -768,8 +768,9 @@

self.db_update(sql, cursor)

def _do_wiki_export(self, page, filename=):

  • data = self.db_query("SELECT text FROM wiki WHERE name='%s' "

+ rows = self.db_query("SELECT text FROM wiki WHERE name='%s' "

"ORDER BY version DESC LIMIT 1" % page)

+ data = list(rows)

text = data[0][0] if not filename:

print text

by gary@…, 19 years ago

Attachment: trac.patch added

Patch to fix problem with 'trac-admin wiki dump'

by gary@…, 19 years ago

Attachment: trac.2.patch added

Real patch for bug (sorry about empty attachment)

comment:2 by Christopher Lenz, 19 years ago

Milestone: 0.9
Owner: changed from daniel to Christopher Lenz
Status: newassigned

comment:3 by Matthew Good, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1829]

(cmlenz, sorry for hijacking the ticket from you ;)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.