[Rt-commit] r5005 - in rt/branches/3.5-TESTING: . html/REST/1.0

kevinr at bestpractical.com kevinr at bestpractical.com
Tue Apr 11 01:09:30 EDT 2006


Author: kevinr
Date: Tue Apr 11 01:09:29 2006
New Revision: 5005

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/bin/rt.in
   rt/branches/3.5-TESTING/html/REST/1.0/dhandler

Log:
 r12015 at sad-girl-in-snow:  kevinr | 2006-04-10 21:53:13 -0400
 * Added a comment to dhandler to reflect one of the duties it *should* have
 * Fixed the default server location to point to RT's default location
 * Made the command-line tool default to shell mode if no arguments are passed
   to it


Modified: rt/branches/3.5-TESTING/bin/rt.in
==============================================================================
--- rt/branches/3.5-TESTING/bin/rt.in	(original)
+++ rt/branches/3.5-TESTING/bin/rt.in	Tue Apr 11 01:09:29 2006
@@ -72,7 +72,7 @@
         debug   => 0,
         user    => eval{(getpwuid($<))[0]} || $ENV{USER} || $ENV{USERNAME},
         passwd  => undef,
-        server  => 'http://localhost/rt/',
+        server  => 'http://localhost/',
         query   => undef,
         orderby => undef,
     ),
@@ -133,9 +133,8 @@
 sub handler {
     my $action;
 
-    if ($ARGV[0] eq 'rt') {
-        shift @ARGV;  # ignore a leading 'rt'
-    }
+    push @ARGV, 'shell' if (!@ARGV);    # default to shell mode
+    shift @ARGV if ($ARGV[0] eq 'rt');    # ignore a leading 'rt'
     if (@ARGV && exists $actions{$ARGV[0]}) {
         $action = shift @ARGV;
         $actions{$action}->($action);

Modified: rt/branches/3.5-TESTING/html/REST/1.0/dhandler
==============================================================================
--- rt/branches/3.5-TESTING/html/REST/1.0/dhandler	(original)
+++ rt/branches/3.5-TESTING/html/REST/1.0/dhandler	Tue Apr 11 01:09:29 2006
@@ -72,6 +72,7 @@
 #    http://.../REST/1.0/ticket/edit
 # 4. http://.../REST/1.0/ticket/nn (all possibly with a single form).
 #    http://.../REST/1.0/ticket/nn/history
+#    http://.../REST/1.0/ticket/nn/comment
 #    http://.../REST/1.0/ticket/nn/attachment/1
 #
 # Objects are specified by their type, and either a unique numeric ID,


More information about the Rt-commit mailing list