[Rt-commit] [svn] r885 - in RTx-Atom: . html/Atom/0.3 lib/RTx t

autrijus at pallas.eruditorum.org autrijus at pallas.eruditorum.org
Wed May 12 22:30:59 EDT 2004


Author: autrijus
Date: Wed May 12 22:30:58 2004
New Revision: 885

Added:
   RTx-Atom/MANIFEST
   RTx-Atom/t/
   RTx-Atom/t/1-basic.t
Modified:
   RTx-Atom/   (props changed)
   RTx-Atom/html/Atom/0.3/dhandler
   RTx-Atom/lib/RTx/Atom.pm
Log:
 ----------------------------------------------------------------------
 r4834 at not:  autrijus | 2004-05-13T02:26:08.751646Z
 
 * Use 0-based indices.
 ----------------------------------------------------------------------
 r4836 at not:  autrijus | 2004-05-13T02:28:56.090578Z
 
 * add manifest.
 ----------------------------------------------------------------------
 r4837 at not:  autrijus | 2004-05-13T02:30:21.971163Z
 
 * add a stub test.
 ----------------------------------------------------------------------
 r4838 at not:  autrijus | 2004-05-13T02:30:30.184165Z
 
 * correct manifest.
 ----------------------------------------------------------------------


Added: RTx-Atom/MANIFEST
==============================================================================
--- (empty file)
+++ RTx-Atom/MANIFEST	Wed May 12 22:30:58 2004
@@ -0,0 +1,37 @@
+html/Atom/0.3/Add/index
+html/Atom/0.3/autohandler
+html/Atom/0.3/Describe/Container
+html/Atom/0.3/Describe/index
+html/Atom/0.3/Describe/Object
+html/Atom/0.3/dhandler
+html/Atom/0.3/Elements/Entry
+html/Atom/0.3/Elements/Error
+html/Atom/0.3/Elements/Introspect
+html/Atom/0.3/Elements/Link
+html/Atom/0.3/Elements/SetProperty
+html/Atom/0.3/Get/index
+html/Atom/0.3/Get/Object
+html/Atom/0.3/Get/Property
+html/Atom/0.3/index
+html/Atom/0.3/NoAuth/autohandler
+html/Atom/0.3/NoAuth/feed.css
+html/Atom/0.3/NoAuth/pod.css
+html/Atom/0.3/NoAuth/spec.html
+html/Atom/0.3/Remove/index
+html/Atom/0.3/Search/index
+html/Atom/0.3/Set/index
+html/Atom/0.3/Set/Property
+html/Atom/0.3/Update/index
+html/Atom/dhandler
+inc/Module/Install.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/RTx.pm
+inc/Module/Install/WriteAll.pm
+lib/RTx/Atom.pm
+Makefile.PL
+MANIFEST			This list of files
+META.yml
+SIGNATURE
+t/1-basic.t

Modified: RTx-Atom/html/Atom/0.3/dhandler
==============================================================================
--- RTx-Atom/html/Atom/0.3/dhandler	(original)
+++ RTx-Atom/html/Atom/0.3/dhandler	Wed May 12 22:30:58 2004
@@ -277,12 +277,12 @@
         my $id = $2 . $3;
 	$property = $4;
 
-	if ($1 and $id) {
+	if ($1) {
 	    if ($id < 0) {
 		$obj = $list->ItemsArrayRef->[$id];
 	    }
 	    else {
-		$list->GotoItem($id-1);
+		$list->GotoItem($id);
 		$obj = $list->Next;
 	    }
 	}

Modified: RTx-Atom/lib/RTx/Atom.pm
==============================================================================
--- RTx-Atom/lib/RTx/Atom.pm	(original)
+++ RTx-Atom/lib/RTx/Atom.pm	Wed May 12 22:30:58 2004
@@ -29,6 +29,13 @@
     /Atom/0.3/RT-Tickets/15.Subject             # EditURI (Property)
     /Atom/0.3/RT-Tickets/15/Transactions        # FeedURI (Container)
 
+Note that the C<15> above is the C<Id>; if you want element indice,
+use these URIs instead:
+
+    /Atom/0.3/RT-Users/*0                     # EditURI (Object)
+    /Atom/0.3/RT-Users/*-1                    # EditURI (Object)
+    /Atom/0.3/RT-Users.Count                  # EditURI (Property)
+
 A RT-Atom server may also supply alias URIs.  Whenever an user request such
 a URI, it is redirected to the canonical URL with a I<301 Moved Permanently>.
 

Added: RTx-Atom/t/1-basic.t
==============================================================================
--- (empty file)
+++ RTx-Atom/t/1-basic.t	Wed May 12 22:30:58 2004
@@ -0,0 +1,10 @@
+# $File: //member/autrijus/Module-Install-RTx/t/1-basic.t $ $Author: autrijus $
+# $Revision: #1 $ $Change: 9316 $ $DateTime: 2003/12/15 05:03:39 $
+
+print "1..1\n";
+
+require RTx::Atom;
+
+print "ok 1\n";
+
+1;


More information about the Rt-commit mailing list