Ticket #116 (new enhancement)

Opened 3 years ago

Last modified 2 years ago

a command line tool for [remotely] automating the tracwiki editing

Reported by: tjyang Assigned to: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords:
Cc: agarino@hotmail.com Trac Release: 0.10

Description (Last modified by athomas)

login (authenticate)
checkout
vi/emacs/awk/perl editing.
checkin
logout

This client can be used to automate the tracwiki publishing by script.

Attachments

wikieditor.py (0.9 kB) - added by coderanger on 01/08/06 19:11:50.
Requested script
vimtrac.py (0.9 kB) - added by antony on 03/09/06 16:49:24.
Usage vimtrac.py http://hostname/trac/wiki/WikiStart, (works with $EDITOR)

Change History

01/08/06 18:23:34 changed by anonymous

Please see http://projects.edgewall.com/trac/wiki/TracDev/DataModels for an example of how to do this, its rather trivial.

01/08/06 19:11:50 changed by coderanger

  • attachment wikieditor.py added.

Requested script

01/08/06 19:13:11 changed by coderanger

  • status changed from new to closed.
  • resolution set to fixed.

A basic script to do what you requested has been attached. You will probably want to modify, but it should do as a base.

sudo ./wikieditor.py wiki-page

01/08/06 20:13:58 changed by athomas

  • status changed from closed to reopened.
  • resolution deleted.
  • component changed from TracHacks to Request-a-Hack.

From talking to tjyang on IRC, I think he wants something more like MVS, which I'd personally never heard of before, but lets you remotely check out Wiki pages in a manner similar to CVS.

As an aside, I have a small script that uses the XmlRpcPlugin to remotely edit one wiki page at a time, similar to your wikieditor.py. The XmlRpcPlugin could also be used to implement something like MVS, but it would be a much bigger job.

01/08/06 20:27:04 changed by athomas

  • description changed.
  • summary changed from a command line tool for automating the tracwiki editing to a command line tool for [remotely] automating the tracwiki editing.

Changed summary to be more indicative of what tjyang wanted.

01/08/06 20:27:48 changed by athomas

coderanger, perhaps you could create a NewHack for your wikieditor.py script? Others might find it useful...

03/09/06 16:49:24 changed by antony

  • attachment vimtrac.py added.

Usage vimtrac.py http://hostname/trac/wiki/WikiStart, (works with $EDITOR)

03/09/06 16:55:22 changed by Antony

I attached a new version called vimtrac.py

This version use plain HTTP to communicate with trac, it works remotely and depends only on python.

Usage:

./vimtrac.py http://hostname/trac/wiki/WikiStart

Despite the name it uses $EDITOR.

03/26/06 10:37:41 changed by anonymous

03/26/06 10:38:09 changed by anonymous

  • cc set to agarino@hotmail.com.

06/07/06 04:38:15 changed by athomas

  • owner changed from athomas to anybody.
  • release set to 0.8.
  • status changed from reopened to new.

06/07/06 04:38:27 changed by athomas

  • release changed from 0.8 to 0.10.

Add/Change #116 (a command line tool for [remotely] automating the tracwiki editing)




Change Properties
Action