[Jifty-commit] r1833 - jifty/trunk/doc

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Aug 21 19:18:54 EDT 2006


Author: nelhage
Date: Mon Aug 21 19:18:53 2006
New Revision: 1833

Added:
   jifty/trunk/doc/jifty-action-record-search

Log:
Adding some notes about a potential Jifty::Action::Record::Search.
Please make comments, and then I'll throw together a version hopefully
in the next few days.

Added: jifty/trunk/doc/jifty-action-record-search
==============================================================================
--- (empty file)
+++ jifty/trunk/doc/jifty-action-record-search	Mon Aug 21 19:18:53 2006
@@ -0,0 +1,59 @@
+-*- mode: outline; outline-regexp: "\\s *\\*+" -*-
+
+Jifty::Action::Record::Search should take arguments and return a
+FooCollection as the q{search} field of its q{content}.
+
+It will generate arguments for each field, according to the SQL type
+of the field:
+
+* text
+ * I<field>, I<field>_not
+  * Do substring searching on the given field
+  * This is case sensitive.
+
+ * I<field_is>
+  * ? Does exact matching ?
+
+* time, date, or datetime
+ * T<field>_after, I<field>_before
+ * T<field> for exact matching?
+
+* int
+ * I<field>
+  * Exact matching
+
+ * I<field_gt>
+ * I<field_lt>
+  * Less than/greater than
+
+ * I<field_gte>
+ * I<field_lte>
+  * These are perhaps superfluous, but could be convenient.
+  * (I want auto-loaded arguments ...)
+
+* boolean
+ * I<field>
+  * Can be true, false, or undefined
+
+
+* refers_to an object
+ * I<field>
+ * I<field_not>
+ * Accept ids
+  * ? Generate valid_values for this ?
+
+* refers_to a collection
+ * Do nothing?
+ * I<field>_contains ?
+ * I<field>_lacks ?
+
+******* 
+
+* Validators and canonicalizers
+ * Never use validators
+ * Use canonicalizers on any "exact match" fields
+ * What's the right behaviour on substring/comparison match?
+
+* valid_values
+ * valid_values should remain valid_values for any exact match fields,
+ * become available_values otherwise


More information about the Jifty-commit mailing list