(uri: str)
| 232 | break |
| 233 | |
| 234 | def get_ax_arg(uri: str) -> str: |
| 235 | if not ax_ns: |
| 236 | return "" |
| 237 | prefix = "openid." + ax_ns + ".type." |
| 238 | ax_name = None |
| 239 | for name in handler.request.arguments.keys(): |
| 240 | if handler.get_argument(name) == uri and name.startswith(prefix): |
| 241 | part = name[len(prefix) :] |
| 242 | ax_name = "openid." + ax_ns + ".value." + part |
| 243 | break |
| 244 | if not ax_name: |
| 245 | return "" |
| 246 | return handler.get_argument(ax_name, "") |
| 247 | |
| 248 | email = get_ax_arg("http://axschema.org/contact/email") |
| 249 | name = get_ax_arg("http://axschema.org/namePerson") |
nothing calls this directly
no test coverage detected