Modify

Opened 9 years ago

Last modified 5 years ago

#116 new enhancement

Command line tool for [remotely] automating the wiki editing

Reported by: tjyang Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords:
Cc: agarino@… 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 (2)

wikieditor.py (963 bytes) - added by coderanger 9 years ago.
Requested script
vimtrac.py (895 bytes) - added by antony 9 years ago.
Usage vimtrac.py http://hostname/trac/wiki/WikiStart, (works with $EDITOR)

Download all attachments as: .zip

Change History (15)

comment:1 Changed 9 years ago by anonymous

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

Changed 9 years ago by coderanger

Requested script

comment:2 Changed 9 years ago by coderanger

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 9 years ago by athomas

  • Component changed from TracHacks to Request-a-Hack
  • Resolution fixed deleted
  • Status changed from closed to reopened

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.

comment:4 Changed 9 years ago by athomas

  • Description modified (diff)
  • 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.

comment:5 Changed 9 years ago by athomas

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

Changed 9 years ago by antony

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

comment:6 Changed 9 years ago 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.

comment:7 Changed 9 years ago by anonymous

comment:8 Changed 9 years ago by anonymous

  • Cc agarino@… added; anonymous removed

comment:9 Changed 8 years ago by athomas

  • Owner changed from athomas to anybody
  • Status changed from reopened to new
  • Trac Release set to 0.8

comment:10 Changed 8 years ago by athomas

  • Trac Release changed from 0.8 to 0.10

comment:11 follow-up: Changed 5 years ago by nicferrier

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

comment:12 in reply to: ↑ 11 Changed 5 years ago by nicferrier

Replying to nicferrier:

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

Bah. That should have been TracCmdScript

comment:13 Changed 5 years ago 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 Comment

Modify Ticket

Action
as new The owner will remain anybody.
Author


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

 
Note: See TracTickets for help on using tickets.