(action)
| 170 | |
| 171 | |
| 172 | def define_actions(action): |
| 173 | |
| 174 | actions = [ |
| 175 | "Directions", |
| 176 | "Discussion", |
| 177 | "Eating", |
| 178 | "Greeting", |
| 179 | "Phoning", |
| 180 | "Photo", |
| 181 | "Posing", |
| 182 | "Purchases", |
| 183 | "Sitting", |
| 184 | "SittingDown", |
| 185 | "Smoking", |
| 186 | "Waiting", |
| 187 | "WalkDog", |
| 188 | "Walking", |
| 189 | "WalkTogether", |
| 190 | ] |
| 191 | |
| 192 | if action == "All" or action == "all" or action == "*": |
| 193 | return actions |
| 194 | |
| 195 | if not action in actions: |
| 196 | raise (ValueError, "Unrecognized action: %s" % action) |
| 197 | |
| 198 | return [action] |
| 199 | |
| 200 | |
| 201 | def define_error_list(actions): |