[Rt-commit] r5105 - in rt/branches/3.7-EXPERIMENTAL: . html/REST/1.0

ruz at bestpractical.com ruz at bestpractical.com
Tue Apr 25 09:28:43 EDT 2006


Author: ruz
Date: Tue Apr 25 09:28:32 2006
New Revision: 5105

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

Log:
 r2402 at cubic-pc (orig r5005):  kevinr | 2006-04-11 09:09:29 +0400
  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.7-EXPERIMENTAL/bin/rt.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/bin/rt.in	(original)
+++ rt/branches/3.7-EXPERIMENTAL/bin/rt.in	Tue Apr 25 09:28:32 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.7-EXPERIMENTAL/html/REST/1.0/dhandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/dhandler	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/dhandler	Tue Apr 25 09:28:32 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