Steve Howell
8a15452525
bots: Require bots_details in ExternalBotHandler.
...
This parameter was defaulting to a dictionary, which is
a classic Python pitfall.
2017-11-28 10:52:13 -08:00
derAnfaenger
bf72a8994a
zulip_botserver: Raise exception on wrong flaskbotrc file.
2017-11-10 18:36:20 -08:00
derAnfaenger
bcc8bd7d38
zulip_botserver: Don't reinstantiate ExternalBotHandlers.
...
Fixes #147 .
2017-11-07 05:06:12 -08:00
derAnfaenger
e5576388dd
botserver: Remove obsolete state_handler param from handle_message().
2017-10-31 12:24:10 +01:00
Alena Volkova
ed51cabf1b
mypy: zulip_botserver: Fix errors in zulip_botserver/server.py.
2017-10-27 00:56:16 -04:00
derAnfaenger
9d683e4669
api: Ensure automatic tilde expansion.
2017-08-29 14:20:48 -07:00
derAnfaenger
6c026c84aa
flaskserver: Load json python 3 compatible.
2017-08-15 06:38:50 -07:00
Eeshan Garg
de23a1b32f
zulip_botserver: Migrate from optparse to argparse.
2017-07-29 00:17:43 -02:30
vaibhav
c4876dddae
bot server: Raise BadRequest when bot code can't be imported.
...
This adds support to check and raise a BadRequest when either the
configuration of bot couldn't be found or the BotHandler code of bot
couldn't be fetched. There can be cases where flaskbotrc contains config
details of a bot, but the user hasn't added it's handler class code. This
fixes server to handle such cases, by reporting it to user.
This also fixes the response of bot server to make it possible to skip
the response message.
2017-07-27 11:03:33 -07:00
derAnfaenger
f3eaa381f6
bots: Audit filesystem access.
...
This adds a safe function for opening files via
ExternalBotHandler. This restricts open calls to a bot's
local directory.
Finalizes #9
2017-07-26 20:01:17 +02:00
Eeshan Garg
928d5ca16d
flask_server: Move the server to its own package.
2017-07-18 01:31:54 -02:30