Ticket #116 (new enhancement)

Opened 7 years ago

Last modified 4 years ago

Command line tool for [remotely] automating the wiki 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/09/06 02:11:50.
Requested script
vimtrac.py (0.9 kB) - added by antony on 03/09/06 23:49:24.
Usage vimtrac.py http://hostname/trac/wiki/WikiStart, (works with $EDITOR)

Change History

01/09/06 01: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/09/06 02:11:50 changed by coderanger

  • attachment wikieditor.py added.

Requested script

01/09/06 02: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/09/06 03: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/09/06 03: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/09/06 03: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 23:49:24 changed by antony

  • attachment vimtrac.py added.

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

03/09/06 23: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 18:37:41 changed by anonymous

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

  • cc set to agarino@hotmail.com.

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

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

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

  • release changed from 0.8 to 0.10.

(follow-up: ↓ 12 ) 09/03/09 04:59:23 changed by nicferrier

I added traccmd, another script that does this kind of thing.

(in reply to: ↑ 11 ) 09/03/09 05:01:05 changed by nicferrier

Replying to nicferrier:

I added traccmd, another script that does this kind of thing.

Bah. That should have been TracCmdScript

09/06/09 13:51:14 changed by rjollos

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

Add/Change #116 (Command line tool for [remotely] automating the wiki editing)




Change Properties
Action