Changes between Version 15 and Version 16 of BluePrintSearch
- Timestamp:
- 03/23/11 12:15:23 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintSearch
v15 v16 44 44 ==== REST Interface ==== 45 45 46 The '''S3 Find''' class implements the '''[wiki:S3XRC/S3Method S3Method]''' interface, and is connected to the {{{search}}} URL method in [wiki:S3XRC/RESTfulAPI/s3_rest_controller s3_rest_controller]:46 The '''S3Search''' class implements the '''[wiki:S3XRC/S3Method S3Method]''' interface, and is connected to the {{{search}}} URL method in [wiki:S3XRC/RESTfulAPI/s3_rest_controller s3_rest_controller]: 47 47 48 48 {{{ … … 50 50 }}} 51 51 52 '''S3 Find''' implements both interactive and non-interactive search methods. Currently supported formats are:52 '''S3Search''' implements both interactive and non-interactive search methods. Currently supported formats are: 53 53 54 54 - HTML 55 55 - JSON 56 56 57 There is a generic '''S3 Find''' default instance connected to all resources, which will be used unless there is a resource-specific instance configured. However, this default instance does '''not''' provide any interactive search methods (JSON only).57 There is a generic '''S3Search''' default instance connected to all resources, which will be used unless there is a resource-specific instance configured. However, this default instance does '''not''' provide any interactive search methods (JSON only). 58 58 59 To connect a custom {{{S3 Find}}} instance to a resource (in order to add interactive search methods), use {{{s3xrc.model.configure}}}:59 To connect a custom {{{S3Search}}} instance to a resource (in order to add interactive search methods), use {{{s3xrc.model.configure}}}: 60 60 61 61 {{{ 62 s3xrc.model.configure(table, search_method=my_s3 find_instance62 s3xrc.model.configure(table, search_method=my_s3search_instance 63 63 }}} 64 64 65 See the next paragraph for how to build and connect a custom '''S3 Find''' instance for a resource.65 See the next paragraph for how to build and connect a custom '''S3Search''' instance for a resource. 66 66 67 67 ==== Configuring Interactive search methods ====