<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,6 +8,8 @@ Dependencies
 ============
 You must be running acts_as_versioned and acts_as_tree to use Sandstone.
 
+The generated tests also require the tester_xtreme plugin, which you can install from http://svn.extendviget.com/lab/trunk/plugins/tester_xtreme.
+
 You do not need to use the RESTful Authentication plugin to use Sandstone, but it will help. At a mininum, you must define the methods +logged_in?+, +current_user+, and +access_denied+ in +ApplicationController+. 
 
 +current_user+ must return an object that can match up with Sandstone's +editor+ object. +access_denied+ should handle redirection and messaging when a non-editor tried to visit an administrative page.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,10 @@ x switch integration point from polymorphism to simple foreign key
   x update documentation
 x refactor filesystem caching out of Page and PageTemplate into a single module
 - allow arbitrary metadata
+- add helper tests
 
 LATER
+- use acts_as_state_machine for workflow
 - manage dynamic page content
 - manage content chunks within pages
 ? patch render to allow render :sandstone =&gt; [path] (replacement for partials???)</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,9 @@ module PagesHelper
   include SandstoneHelper
 
   def parent_pages_for(page)
-    pages = Page.find(:all, :select =&gt; 'id, title').map {|p| [p.title, p.id]}
-    pages.reject {|p| p[1] == page.id} unless page.new_record?
-    pages
+    conditions = page.new_record? ? nil : ['id != ?', page.id]
+    pages = Page.find(:all, :select =&gt; 'id, title', :conditions =&gt; conditions).map {|p| [p.title, p.id]}
+    [['none', '']] + pages
   end
 
   def editors_for(page)</diff>
      <filename>generators/sandstone/templates/helpers/pages_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b740da4bd1efcbb6e453bb502b15d539070be4de</id>
    </parent>
  </parents>
  <author>
    <name>ben</name>
    <email>ben@e959a6d6-1924-0410-92b3-a6fa492f4c66</email>
  </author>
  <url>http://github.com/vigetlabs/sandstone/commit/41a1d6375bcb6e30fd4a702beaa26dc4d29ee843</url>
  <id>41a1d6375bcb6e30fd4a702beaa26dc4d29ee843</id>
  <committed-date>2008-02-21T11:17:17-08:00</committed-date>
  <authored-date>2008-02-21T11:17:17-08:00</authored-date>
  <message>update README to reflect tester_xtreme dependency; allow pages to be set to no-parent


git-svn-id: http://svn.extendviget.com/lab/trunk/plugins/sandstone@550 e959a6d6-1924-0410-92b3-a6fa492f4c66</message>
  <tree>823535a7d234d95c62ca4cf5214f4e2020d56f4e</tree>
  <committer>
    <name>ben</name>
    <email>ben@e959a6d6-1924-0410-92b3-a6fa492f4c66</email>
  </committer>
</commit>
