Modify

Opened 19 years ago

Closed 7 years ago

#116 closed enhancement (worksforme)

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 Alec Thomas)

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 Noah Kantrowitz 19 years ago.
Requested script
vimtrac.py (895 bytes) - added by antony 19 years ago.
Usage vimtrac.py http://hostname/trac/wiki/WikiStart, (works with $EDITOR)

Download all attachments as: .zip

Change History (16)

comment:1 Changed 19 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 19 years ago by Noah Kantrowitz

Attachment: wikieditor.py added

Requested script

comment:2 Changed 19 years ago by Noah Kantrowitz

Resolution: fixed
Status: newclosed

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 19 years ago by Alec Thomas

Component: TracHacksRequest-a-Hack
Resolution: fixed
Status: closedreopened

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 19 years ago by Alec Thomas

Description: modified (diff)
Summary: a command line tool for automating the tracwiki editinga command line tool for [remotely] automating the tracwiki editing

Changed summary to be more indicative of what tjyang wanted.

comment:5 Changed 19 years ago by Alec Thomas

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

Changed 19 years ago by antony

Attachment: vimtrac.py added

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

comment:6 Changed 19 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 19 years ago by anonymous

comment:8 Changed 19 years ago by anonymous

Cc: agarino@… added; anonymous removed

comment:9 Changed 18 years ago by Alec Thomas

Owner: changed from Alec Thomas to anybody
Status: reopenednew
Trac Release: 0.8

comment:10 Changed 18 years ago by Alec Thomas

Trac Release: 0.80.10

comment:11 Changed 15 years ago by Nic Ferrier

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

comment:12 in reply to:  11 Changed 15 years ago by Nic Ferrier

Replying to nicferrier:

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

Bah. That should have been TracCmdScript

comment:13 Changed 15 years ago by Ryan J Ollos

Summary: a command line tool for [remotely] automating the tracwiki editingCommand line tool for [remotely] automating the wiki editing

comment:14 Changed 7 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anybody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.