(category)
| 255 | @route("/json/save_config/:category", method="POST") |
| 256 | @login_required("SETTINGS") |
| 257 | def save_config(category): |
| 258 | for key, value in request.POST.iteritems(): |
| 259 | try: |
| 260 | section, option = key.split("|") |
| 261 | except: |
| 262 | continue |
| 263 | |
| 264 | if category == "general": category = "core" |
| 265 | |
| 266 | PYLOAD.setConfigValue(section, option, decode(value), category) |
| 267 | |
| 268 | |
| 269 | @route("/json/add_account", method="POST") |
nothing calls this directly
no test coverage detected