[Catalyst-commits] r12328 - trunk/examples/SmallBoard/root/src/board

dhoss at dev.catalyst.perl.org dhoss at dev.catalyst.perl.org
Sun Dec 13 06:31:35 GMT 2009


Author: dhoss
Date: 2009-12-13 06:31:35 +0000 (Sun, 13 Dec 2009)
New Revision: 12328

Modified:
   trunk/examples/SmallBoard/root/src/board/view.tt2
Log:
changed to get_direct_children

Modified: trunk/examples/SmallBoard/root/src/board/view.tt2
===================================================================
--- trunk/examples/SmallBoard/root/src/board/view.tt2	2009-12-13 06:28:55 UTC (rev 12327)
+++ trunk/examples/SmallBoard/root/src/board/view.tt2	2009-12-13 06:31:35 UTC (rev 12328)
@@ -8,7 +8,7 @@
 [% DEFAULT recurse=0 %]
 <div><a href="[%c.uri_for_action('board/view', [ reply.thread_id ]) %]">[% reply.title %]</a> - <a href="[% c.uri_for_action('board/reply', [ reply.thread_id ] ) %]">post a reply</a></div>
   [% IF recurse %]
-    [% FOR subreply IN reply.children %]
+    [% FOR subreply IN reply.get_direct_children %]
       <ul>
         <li>
          [% INCLUDE replies reply = subreply %]
@@ -19,7 +19,7 @@
 [% END %]
 
 <ul>
-[% FOR reply IN thread.children %]
+[% FOR reply IN thread.get_direct_children %]
 [% PROCESS replies recurse=1 %]
 [% END %]
 </ul>




More information about the Catalyst-commits mailing list