| 168 | | You can supply values for the following keys: C<content>, |
| 169 | | C<categories>, C<locales>, C<os_x>, C<os_y>, C<osie_x>, C<osie_y>, |
| 170 | | C<latitude>, C<longitude>, C<summary>, C<node_image>, C<node_image_licence>, |
| 171 | | C<node_image_copyright>, C<node_image_url>, C<username>, C<comment>, |
| 172 | | C<edit_type>. You should supply them exactly as they would come from a CGI |
| 173 | | form, eg lines in a textarea are separated by C<\r\n>. |
| | 168 | You can supply values for the following keys: C<content>, C<categories>, |
| | 169 | C<locales>, C<node_image>, C<node_image_licence>, |
| | 170 | C<node_image_copyright>, C<node_image_url>, C<phone>, C<fax>, |
| | 171 | C<website>, C<hours_text>, C<address>, C<postcode>, C<map_link>, |
| | 172 | C<os_x>, C<os_y>, C<osie_x>, C<osie_y>, C<latitude>, C<longitude>, |
| | 173 | C<summary>, C<username>, C<comment>, C<edit_type>. You should supply |
| | 174 | them exactly as they would come from a CGI form, eg lines in a textarea |
| | 175 | are separated by C<\r\n>. |
| 183 | | $q->param( -name => "content", -value => $args{content} || "foo" ); |
| 184 | | $q->param( -name => "categories", -value => $args{categories} || "" ); |
| 185 | | $q->param( -name => "locales", -value => $args{locales} || "" ); |
| 186 | | $q->param( -name => "node_image", -value => $args{node_image} || "" ); |
| 187 | | $q->param( -name => "node_image_licence", |
| 188 | | -value => $args{node_image_licence} || "" ); |
| 189 | | $q->param( -name => "node_image_copyright", |
| 190 | | -value => $args{node_image_copyright} || "" ); |
| 191 | | $q->param( -name => "node_image_url", |
| 192 | | -value => $args{node_image_url} || "" ); |
| 193 | | $q->param( -name => "phone", -value => "" ); |
| 194 | | $q->param( -name => "fax", -value => "" ); |
| 195 | | $q->param( -name => "website", -value => "" ); |
| 196 | | $q->param( -name => "hours_text", -value => "" ); |
| 197 | | $q->param( -name => "address", -value => "" ); |
| 198 | | $q->param( -name => "postcode", -value => "" ); |
| 199 | | $q->param( -name => "map_link", -value => "" ); |
| 200 | | $q->param( -name => "os_x", -value => $args{os_x} || "" ); |
| 201 | | $q->param( -name => "os_y", -value => $args{os_y} || "" ); |
| 202 | | $q->param( -name => "osie_x", -value => $args{osie_x} || "" ); |
| 203 | | $q->param( -name => "osie_y", -value => $args{osie_y} || "" ); |
| 204 | | $q->param( -name => "latitude", -value => $args{latitude} || "" ); |
| 205 | | $q->param( -name => "longitude", -value => $args{longitude} || "" ); |
| 206 | | $q->param( -name => "summary", -value => $args{summary} || "" ); |
| 207 | | $q->param( -name => "username", -value => $args{username} || "TestUser" ); |
| 208 | | $q->param( -name => "comment", -value => $args{comment} || "A comment." ); |
| 209 | | $q->param( -name => "edit_type", |
| 210 | | -value => $args{edit_type} || "Normal edit" ); |
| | 185 | $args{content} ||= "foo"; |
| | 186 | $args{edit_type} ||= "Normal edit"; |
| | 187 | for my $param ( qw( content categories locales node_image node_image_licence |
| | 188 | node_image_copyright node_image_url phone fax website |
| | 189 | hours_text address postcode map_link os_x os_y osie_x osie_y |
| | 190 | latitude longitude summary username comment edit_type |
| | 191 | ) |
| | 192 | ) { |
| | 193 | $q->param( -name => $param, -value => $args{$param} || "" ); |
| | 194 | } |