(argument_table, arg_name, argument, shadowed_args)
| 234 | |
| 235 | |
| 236 | def add_paging_argument(argument_table, arg_name, argument, shadowed_args): |
| 237 | if arg_name in argument_table: |
| 238 | # If there's already an entry in the arg table for this argument, |
| 239 | # this means we're shadowing an argument for this operation. We |
| 240 | # need to store this later in case pagination is turned off because |
| 241 | # we put these arguments back. |
| 242 | # See the comment in check_should_enable_pagination() for more info. |
| 243 | shadowed_args[arg_name] = argument_table[arg_name] |
| 244 | argument_table[arg_name] = argument |
| 245 | |
| 246 | |
| 247 | def check_should_enable_pagination( |
no outgoing calls
no test coverage detected