summaryrefslogtreecommitdiff
path: root/src/server/rz_server.py
AgeCommit message (Collapse)Author
2015-02-23rz_user.py: rest__pw_reset()LV-426
2015-02-17server: oops, remove exception for testingAlon Levy
2015-02-17server/rz_server: alternative to taking cfg&log initialization out of the ↵Alon Levy
try/catch
2015-02-17server: take config and log initialization out of initial try/catch since ↵Alon Levy
catch assumes log is intact anyway
2015-02-17client/server: support optimizing with require.js using node run r.jsAlon Levy
built is controlled by property do-client-optimize which defaults to false. Even if the optimized main is built (single file main-built.js and source map file main-built.js.map) they are not used unless rhizi-config.conf client_optimize is set to True which causes app.js to use main-built.js and not main.js The resulting file is 687 KiloBytes large. Pretty scary, but it still loads faster this way. (from very small tests locally). This is without compression done by the server.
2015-02-15server: fix default root_path for ./run-local.sh plus add assertion early, ↵Alon Levy
before flask template loader bails
2015-02-15better logging for user_db init exceptionsLV-426
2015-02-15log configuration at 'info' levelLV-426
2015-02-15init_log(): derive log level from configurationLV-426
2015-02-15removing 404 auto redirect handler, opt for handling by reverse proxyLV-426
2015-02-09rz_config: embed in index, remove as moduleAlon Levy
Still missing: remove host/port, let client use same as url it was served on. remove other flags no longer relevant. better mapping of server config to avoid double work?
2015-02-09server/client: move rz_config to templates, fill in to match server config ↵Alon Levy
host/post
2015-02-05removing deprecated htpasswd_path config valueLV-426
2015-02-05rz_server: miscLV-426
2015-02-05rz_server: add '/signup' to no_login_pathsLV-426
2015-02-05rz_server: listen for SIGTERM as wellLV-426
2015-02-05rz_server: try-catch wrap init processLV-426
2015-02-04rz_server: /monitor docLV-426
2015-02-04rz_server: update /monitor REST endpointsLV-426
2015-02-04REST endpoint: /monitor/user/list - list registered usersLV-426
2015-02-04rz_server: add localhost access decorator on /monitor REST pathsLV-426
2015-02-04rz_server: call shutdown() on interruptLV-426
2015-02-04prefix REST endpoints with 'rest__'LV-426
2015-02-01rz_server: log shutdownLV-426
2015-02-01rz_server.py: sort REST routesLV-426
2015-02-01rz_server.py: '/signup' REST routeLV-426
2015-02-01rz_server: set user_db as webapp obj attributeLV-426
2015-01-29server: add missing closing paren in commentAlon Levy
2015-01-29server: prevent infinite redirect (client stops at some point) on ↵Alon Levy
scheme://{host!=SERVER_NAME}/
2015-01-25user_db integrationLV-426
2015-01-21server: add missing signal import; order imports by batteries / libs / appAlon Levy
2015-01-20SIGINT interrupt handlingLV-426
2015-01-19rm /add_node_set REST pathLV-426
2015-01-18rz_feedback: rename feedback -> send_user_feedback__emailLV-426
2015-01-18rm useless set() callLV-426
2015-01-13avoid logging keyLV-426
2015-01-13server/feedback: get rid of flask-mail; left todo: filenames for attachmentsAlon Levy
2015-01-13rz_server: import cleanupLV-426
2015-01-13incorporate https://github.com/ivoviz/feedbackAlon Levy
allows user to mark an image and send it. sends an email to configured recipient. defaults to using localhost:25 as the SMTP server (no user name, no password, see [1] for configuration parameters of flask-mail). Introduces a config parameter: FEEDBACK_RECIPIENT = feedback@localhost left TODO: 1. customize the 'thank you' text 2. document in user guide (setting MAIL_DEFAULT_SENDER correctly) [1] https://pythonhosted.org/Flask-Mail/#configuring-flask-mail
2015-01-13add feedback - no email yet, just client side plus server parse client postAlon Levy
Notes: * using https://github.com/ivoviz/feedback + commit 337a8146e567a06035fb1f1ffedfce083be2a2d1 * with tiny changes to use require.js: + html2canvas.js & feedback.js (not minified) start+end lines changed to call define + feedback.js changed to not load html2canvas since require.js does that for us (dropping _html2canvas and getScript usage)
2015-01-13mv init_pw_db to rz_cli_tool, improveLV-426
2015-01-12server/client: s/res/static/, drop dev_mode__resend_from_staticAlon Levy
2015-01-12server/404: add debug print of requestAlon Levy
2015-01-12server: implement init_pw_db, update docs, set default Config.htpasswd_path ↵Alon Levy
to <config-dir>/htpasswd TODO: permissions - warn on lax permissions for password file (and for init file?)
2015-01-12server: add 404 redirection (no error page), Fixes #210Alon Levy
2015-01-11server/rz_server: reorder imports, system firstAlon Levy
2015-01-11server: document and test for simplejsonAlon Levy
flask uses itsdangerous which uses simplejson The default json converts namedtuples to arrays stripping the names. simplejson converts them to a dictionary, a behavior we rely on.
2015-01-11server: add index.html->index redirect, Fixes #218Alon Levy
2015-01-11server: give each redirect_entry function a different func_nameAlon Levy
To successfully pass a flask test preventing usage of the same method twice: AssertionError: View function mapping is overwriting an existing endpoint function: redirector
2015-01-06rz_kernel: mv db_ctl reference to kernelLV-426