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 )
login (authenticate) checkout vi/emacs/awk/perl editing. checkin logout
This client can be used to automate the tracwiki publishing by script.
Attachments (2)
Change History (16)
comment:1 Changed 19 years ago by
comment:2 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | new → 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 19 years ago by
Component: | TracHacks → Request-a-Hack |
---|---|
Resolution: | fixed |
Status: | closed → 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 19 years ago by
Description: | modified (diff) |
---|---|
Summary: | a command line tool for automating the tracwiki editing → a 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
coderanger, perhaps you could create a NewHack for your wikieditor.py script? Others might find it useful...
Changed 19 years ago by
Attachment: | vimtrac.py added |
---|
Usage vimtrac.py http://hostname/trac/wiki/WikiStart, (works with $EDITOR)
comment:6 Changed 19 years ago by
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:8 Changed 19 years ago by
Cc: | agarino@… added; anonymous removed |
---|
comment:9 Changed 18 years ago by
Owner: | changed from Alec Thomas to anybody |
---|---|
Status: | reopened → new |
Trac Release: | → 0.8 |
comment:10 Changed 18 years ago by
Trac Release: | 0.8 → 0.10 |
---|
comment:11 follow-up: 12 Changed 15 years ago by
I added traccmd, another script that does this kind of thing.
comment:12 Changed 15 years ago by
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
Summary: | a command line tool for [remotely] automating the tracwiki editing → Command line tool for [remotely] automating the wiki editing |
---|
comment:14 Changed 7 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Please see http://projects.edgewall.com/trac/wiki/TracDev/DataModels for an example of how to do this, its rather trivial.