Changes between Version 16 and Version 17 of BluePrintSearch
- Timestamp:
- 03/23/11 12:15:50 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintSearch
v16 v17 67 67 ==== Configuring Interactive search methods ==== 68 68 69 For interactive search, a custom '''S3 Find''' instance can be configured per resource, using instances of classes implementing the '''S3SearchWidget''' interface to create search forms.69 For interactive search, a custom '''S3Search''' instance can be configured per resource, using instances of classes implementing the '''S3SearchWidget''' interface to create search forms. 70 70 71 ''Note:'' Since neither S3 Findnor S3SearchWidgets actually contain any link to a particular resource, their instances can be re-used across multiple resources, as long as the search fields are the same.71 ''Note:'' Since neither S3Search nor S3SearchWidgets actually contain any link to a particular resource, their instances can be re-used across multiple resources, as long as the search fields are the same. 72 72 73 73 Two interactive search forms can be configured (both of which are optional): '''simple''' and '''advanced''', where the user can toggle between these forms (if both are defined). 74 74 75 75 {{{ 76 # Use a variable to hold the S3 Findinstance77 hms_hospital_search = s3base.S3 Find(76 # Use a variable to hold the S3Search instance 77 hms_hospital_search = s3base.S3Search( 78 78 79 79 # Simple search form as a tuple of widgets: