|
|
| version 1.231, 2007/06/09 16:22:08 | version 1.232, 2007/08/20 10:07:36 |
|---|---|
| Line 303 struct TableSeparators { | Line 303 struct TableSeparators { |
| }; | }; |
| static void _load(Request& r, MethodParams& params) { | static void _load(Request& r, MethodParams& params) { |
| const String& first_param=params.as_string(0, "file name must be string"); | const String& first_param=params.as_string(0, FILE_NAME_MUST_BE_STRING); |
| int filename_param_index=0; | int filename_param_index=0; |
| bool nameless=first_param=="nameless"; | bool nameless=first_param=="nameless"; |
| if(nameless) | if(nameless) |
| Line 321 static void _load(Request& r, MethodPara | Line 321 static void _load(Request& r, MethodPara |
| // loading text | // loading text |
| char *data=file_read_text(r.charsets, | char *data=file_read_text(r.charsets, |
| r.absolute(params.as_string(filename_param_index, "file name must be string")), | r.absolute(params.as_string(filename_param_index, FILE_NAME_MUST_BE_STRING)), |
| true, | true, |
| options | options |
| ); | ); |
| Line 421 static void _save_old(Request& r, Method | Line 421 static void _save_old(Request& r, Method |
| else | else |
| --param_index; | --param_index; |
| const String& file_name=params.as_string(param_index++, "file name must not be code"); | const String& file_name=params.as_string(param_index++, FILE_NAME_MUST_NOT_BE_CODE); |
| TableSeparators separators; | TableSeparators separators; |
| if(param_index<params.count()) { | if(param_index<params.count()) { |
| Line 506 static void _save(Request& r, MethodPara | Line 506 static void _save(Request& r, MethodPara |
| else | else |
| --param_index; | --param_index; |
| const String& file_name=params.as_string(param_index++, "file name must not be code"); | const String& file_name=params.as_string(param_index++, FILE_NAME_MUST_NOT_BE_CODE); |
| TableSeparators separators; | TableSeparators separators; |
| if(param_index<params.count()) { | if(param_index<params.count()) { |
| Line 940 static bool _locate_name_value(Table& ta | Line 940 static bool _locate_name_value(Table& ta |
| check_option_param(o.defined, params, 2, | check_option_param(o.defined, params, 2, |
| "locate by locate by name has parameters: name, value and, maybe, options"); | "locate by locate by name has parameters: name, value and, maybe, options"); |
| const String& name=params.as_string(0, "column name must be string"); | const String& name=params.as_string(0, "column name must be string"); |
| const String& value=params.as_string(1, "value must be string"); | const String& value=params.as_string(1, VALUE_MUST_BE_STRING); |
| return table.locate(name, value, o); | return table.locate(name, value, o); |
| } | } |
| static void _locate(Request& r, MethodParams& params) { | static void _locate(Request& r, MethodParams& params) { |