67 Commits

Author SHA1 Message Date
eb9e7f2ce1 fix for ldap removing any anonymous binds, also use ldap.ddp.net 2025-09-16 20:36:04 +10:00
d86893875d added capability to run a dev container for pa, and if we re-build we create a new .sk and remove old PA_UserState on fresh login. BUG-120 is either fixed by this or at least the log catches it and does not crash now (if we rebuild between re-use) 2024-03-10 23:52:34 +11:00
4db3d27cbc fix use of SetFELog with log_level="error" => level="danger" 2024-01-21 18:17:45 +11:00
799689d26e trying something that I *think* should be throwing warnings for sql 2.0 issues, not sure it works? 2023-09-27 14:29:03 +10:00
5bd925fa5a remove circular dependencies on SetFELog 2023-04-09 13:21:44 +10:00
a84ff49413 added BUG-120, somehow losing pref info. No prints are working in PROD, so changed a lot of printf( in the F/E to SetFELog with error and persistent/cant_close set across many files. Also used opportunity to remove a few unnecessary debugs 2023-04-09 13:10:28 +10:00
dc11a0697b create build-time random string for SECRET_KEY for prod 2023-01-15 23:17:16 +11:00
f1c43906ab delete & restore files now clean up UI and dont reload page by default. For all moves/deletes/restores that start on a search view, they now reload the page instead of just cleaning up the UI as searching by name will cause the UI to need complex redrawing, easier to live with the reload for now 2023-01-15 13:32:25 +11:00
a29cbb143c Huge change, removed Status class and all "alert" messages are now shown as BS toast() and are via the DB and handled async in the F/E in jscript via Ajax. Fixed BUG-113 where toasts() were repeating. Removed many of the explicit alert messages (other than errors) and hooked {New|Finish}Job to consistently send messages to the F/E. Other messages (F/E without a job, like save settings) now use this model as well. Finally converted most of the older POST responses to formal json 2023-01-11 13:50:05 +11:00
1ba9bf4312 renamed toast.js to jobs.js and moved Job related calls to jobs.py form files.py AND get job.py to allow job_mgr msgs to go to F/E via a POST of /checkforjobs (picked up in templates/base.html). move files also calls new CheckForJobs() to pick up when move job finishes without needing a page reload 2023-01-06 17:37:15 +11:00
fd4f9905e1 using tabbed pane for the 3 different info parts on about, removed debugs, cleaned up ignore files to remove the new files for the about info 2023-01-03 12:08:57 +11:00
0684f4725a build process (via Dockerfile) now timestamps build and that is exposed on about page 2023-01-03 11:46:53 +11:00
be3e2ae19e improved about page to include BUGs and TODO, still better formatting required,and build date to be handled separate to last commit date 2023-01-03 00:34:03 +11:00
7d7f76ba33 about page now extends base (so has navbar -oops), and DEV finds last file change time 2022-12-31 15:54:25 +11:00
b952fe82f6 large refactor of code to use venv (in .python) for DEV, to use consistent python versions with PROD, sepcifically flask 2.2.2 to address the deprecation of FLASK_ENV -> replaced with ENV. Fixed up git and dockerignores to be more stringent 2022-12-31 15:42:03 +11:00
8232943621 added internal/git-log.txt to .gitignore if there in DEV for testing. Removed timezone from Date in About, and redid columns to 3 and 9 for better spacing in About 2022-12-31 14:35:52 +11:00
1afaa338a8 finished basic about page, and including 15 recent commits by default 2022-12-31 14:28:05 +11:00
9de6e21eaa made main() a func, not sure it matters tbh, also reordered an import, but to no affect 2022-12-29 13:05:19 +11:00
2a1e2d7d5d cleaned up code around json, *locn -> transitioned to top, right, bottom, left to finally fix ORM replacing [ with { <- FIXES BUG-108 2022-12-23 16:18:27 +11:00
c6efd29a48 removed fullscreen and added default_search_noo 2022-01-30 23:02:42 +11:00
2e4b1ed9d2 defaults in PAuser include noo/folders for import/storage separated, defaults are stored into PAUser in DB, changable in GUI, used as the defaults for new PA_User_States. Also disabled search noo, search folders as they are hard-coded in the ORM retreive anyway 2022-01-22 23:26:14 +11:00
0f4632e240 changing options on files_*, search, also next/prev all now use POST->redirect model, so should allow back/forward browser buttons to work - commit so we can test in PROD 2022-01-22 21:36:58 +11:00
78acb9bd66 big clean up of Options -> States, total rework, now actually handles pa_user_state -> States as Import/Storage/Bin/Search or View. If Search has orig_search_term saved. If view, has orig_ptype (and orig_search_term if orig_ptype is Search) -- removed OPT.paths -> these are now worked out when we GetEntries based on pa_user_state. This now allows us to GET all URLs for image viewing allowing me to use the back-button without issues in PROD - well we will see once I commit :) 2022-01-20 17:25:01 +11:00
28f15ee4e6 fixed sort order to work with datatables sorting 2022-01-16 14:49:38 +11:00
684cc27df9 first quick pass of user menu in navbar which shows simple read only prefs content, and a logout option that works 2022-01-16 11:37:49 +11:00
8a6a7a5115 joblog rewrite to show only a few "newest" lines and "oldest" logs for a job, with the more button in the middle, also has a little icon to show the re-ordering that goes with each view - should really make this clickable/togglable. 2022-01-13 21:12:09 +11:00
34e055d920 remove old StoragePathNames(), we can now move into import or storage paths 2021-09-29 16:56:49 +10:00
0f5f21d266 use url_for not hardcoded routes 2021-09-24 12:49:34 +10:00
56f3853bfc removed unneeded ref to font-awesome, added compression, ttl for static files, several small cleanups on labels, etc. for lighthouse improvements 2021-09-14 17:22:42 +10:00
238a813ccc fix BUG-50, remove secret_token use, it caused every new instance of Flask to auth - mild irritation, BUT, caused each gunicorn thread to have a different key -- this does not work, back to a random static val and live with it 2021-09-13 17:55:49 +10:00
0c1691d495 updated comments, use secrets to generate SECRET_KEY 2021-08-11 18:20:37 +10:00
7db988d752 PROD_HOST comes from shared not also defined in main, also was still referencing book cert - not really a combo that was likely as we used gunicorn not flask in prod, and gunicorn has correct cert set on cmdline 2021-08-11 17:49:32 +10:00
b21d4f78e5 updated comments 2021-08-11 17:44:19 +10:00
f6f67b8a69 move import order around, not needed in the end, but doesnt matter so keep it 2021-07-25 15:12:29 +10:00
2e06c0b285 moved class Refimg to person, and ditched all other routes/direct access to ref images, they are only a part of Person in UI now 2021-07-05 16:51:44 +10:00
e26c992c0f make it clear if we are on DEV or PROD -> pass env thru app.config to base.html 2021-07-04 20:06:53 +10:00
c-d-p
ade3745024 spacing 2021-06-27 14:26:51 +10:00
1c2612e2cb spacing 2021-06-27 13:11:49 +10:00
886776f737 Made saved users be in the DB, not in dict in memory of workers in gunicorn - otherwise we had BUG-39, and also added input validation to username to stop ldap injection on login form 2021-06-26 16:46:26 +10:00
371e2af64b added python ldap / login pages 2021-06-26 09:20:11 +10:00
0a5e837236 support multiple paths in move DBox via new StoragePathNames() function, and pass that through to jinja 2021-06-24 17:33:42 +10:00
e20faac23b added new func LocationIcon so html can ieve the icon based on objects type of path 2021-06-06 17:22:25 +10:00
7e2494884e can now toggle between folder or flat view, its a bit ugly, but it works 2021-06-06 14:09:11 +10:00
c2d0004537 fixed up a few issues found from linter 2021-03-19 18:00:44 +11:00
b9dea327d0 use pagesize not page_size, and pass it in based on job extras, also use path based on job extras, so we fix issue of fix_dups not knowing which path from settings was used (import or storage) 2021-03-06 11:45:21 +11:00
e19e1b57f8 add extension so that break from loop works 2021-03-03 22:04:23 +11:00
Damien De Paoli
a82226b082 use DB_URL from shared 2021-02-27 10:57:27 +11:00
96bcada5c5 CreateSelect() in py called in jinja to neaten up selects 2021-02-02 00:18:52 +11:00
31d45e80b6 moved over to new ENTRY based data structures for loading from DB and viewing content 2021-01-19 17:33:10 +11:00
0e01b132ab removed debug 2021-01-18 10:53:28 +11:00