Commit Graph

  • f9e2060741 added error handling for DB exceptions Damien De Paoli 2020-12-30 22:21:01 +11:00
  • 9beec7de86 added error handling for DB exceptions Damien De Paoli 2020-12-30 16:48:15 +11:00
  • e45e7633dd added error handling for DB exceptions Damien De Paoli 2020-12-30 16:47:57 +11:00
  • 20c8bec8f5 fix bug where indenting spaces were part of the sub-books link text Damien De Paoli 2020-12-30 16:47:37 +11:00
  • 4ab601aac5 get rid of the alignments, I think its better all left-aligned today Damien De Paoli 2020-12-30 16:47:06 +11:00
  • 527286886c clarify after some testing Damien De Paoli 2020-12-30 16:46:39 +11:00
  • 92e9cee15a updating README to add more todos, clarify after some testing Damien De Paoli 2020-12-30 16:46:29 +11:00
  • 606bb09dcf update README with extra todos based on books.html from old php code Damien De Paoli 2020-12-29 23:36:54 +11:00
  • de860a1319 moved display message to base.html, should have done this from the beginning (doh), and then fixed deletion errors/redirections to be moe sensible Damien De Paoli 2020-12-26 22:19:05 +11:00
  • 80719a3657 added bug re adding sub book and validation failing Damien De Paoli 2020-12-26 21:44:55 +11:00
  • 1319fef35c cleared up status of deletions Damien De Paoli 2020-12-26 21:44:26 +11:00
  • 800dcc0c25 first-pass of deleting a book, it works, it alerts if you try to delete a parent book, nothing else really tested though Damien De Paoli 2020-12-26 21:43:42 +11:00
  • 61629760cd adding a sub-book now works Damien De Paoli 2020-12-26 19:11:43 +11:00
  • 6a72c6d9dd okay, I have series add/remove working with crazy bootstrap input-groups and jscript/jquery adding/modifying/removing divs on the fly. It works but its way complex.... Sadly, author is not properly in the input-group and should be fixed, and may well then need more crazy on-the-fly updating of divs/buttons, etc. to move plus/minus buttons into/out of the input-group appropriately Damien De Paoli 2020-12-24 17:11:28 +11:00
  • 2cf3f971a2 updated bugs - added more to the list of unordered associations, not just author, but series too... adds in any old order Damien De Paoli 2020-12-24 17:09:59 +11:00
  • 73001dd24c first pass at creating a book, it works, but I have messed up the series-div* html in book.html Damien De Paoli 2020-12-23 12:53:27 +11:00
  • 7bd81d3119 loan now has working create/update/delete, still no add/rem books though Damien De Paoli 2020-12-21 22:06:35 +11:00
  • c4d7fdaa04 create new loan now links to url Damien De Paoli 2020-12-21 22:05:37 +11:00
  • 8b9e017233 updated TODO Damien De Paoli 2020-12-14 23:23:50 +11:00
  • 24210d365c added stats page Damien De Paoli 2020-12-14 23:21:19 +11:00
  • 4691e50811 updated TODO Damien De Paoli 2020-12-14 23:21:10 +11:00
  • c102b93872 add/remove series from a book now works, havent thought about removing a parent book fro a series, but otherwise you can add more than one series, remove as well, and it works in the DB Damien De Paoli 2020-12-13 22:21:38 +11:00
  • e3d21a9438 series now has create/update/delete working, and put back series.html rather than edit-id.html (what was I thinking, serious case of the dumbs) Damien De Paoli 2020-12-09 22:02:03 +11:00
  • 583bebccec okay adding/removing authors is functional, ordering of it is NQR, also moved to bookstrap margin/padding classes where it worked Damien De Paoli 2020-12-06 15:51:38 +11:00
  • 56bfd49822 added new BUGs re: authors for books Damien De Paoli 2020-12-06 15:34:48 +11:00
  • 96e4e35b5d fixed issue with search and sub books not showing the are subs, and when editing a sub book you could edit too many fields Damien De Paoli 2020-12-05 21:25:15 +11:00
  • 15ac1fbed0 made subbook show it is one more visually, also disabled fields that are part of the parent book so they cannot be changed Damien De Paoli 2020-12-05 21:23:54 +11:00
  • 8ab3b36dc0 make AddSub so we can call it in search and books, and dont use -1 array index as it breaks AddSubs - remember it is the last element in dict, so it was overwriting data Damien De Paoli 2020-12-05 20:45:44 +11:00
  • e68286c453 update placeholder text Damien De Paoli 2020-12-05 20:44:23 +11:00
  • e84e54bdab order pubisher list in book.html by name not id Damien De Paoli 2020-12-05 20:28:11 +11:00
  • b34fc4edf9 removed old, added new Damien De Paoli 2020-12-05 20:16:00 +11:00
  • b2a9cdc1c7 added search (only of title in book for now) Damien De Paoli 2020-12-05 20:15:44 +11:00
  • 2930b1b77b added search (only of title in book for now) Damien De Paoli 2020-12-05 20:15:31 +11:00
  • 39e3838336 can now create/update/delete authors (base.html, using edit*.html, and authors.html) Damien De Paoli 2020-12-05 19:27:13 +11:00
  • f3c70d267c remove unneeded alert, its done in show*.html now Damien De Paoli 2020-12-05 19:25:17 +11:00
  • a1679dac74 add the alert for a message Damien De Paoli 2020-12-05 19:24:33 +11:00
  • 7960c1c84a add an AppendMessage() as well Damien De Paoli 2020-12-05 19:24:03 +11:00
  • a45528e5ae remove unneeded query of all objects Damien De Paoli 2020-12-05 19:23:46 +11:00
  • 92fd582981 use a for loop to go through fields, rather than hardcode just name, now it is used to edit authors too Damien De Paoli 2020-12-05 19:22:14 +11:00
  • 4268b03ff6 use url_for properly for creation urls Damien De Paoli 2020-12-05 19:21:37 +11:00
  • 716afb948b moved publisher over to just be another 1-to-many table so using edit_id_name.html, show_id_name.html. This also means it now has a create / update / delete with status updates Damien De Paoli 2020-12-05 12:17:03 +11:00
  • d534e7684b moved publisher over to just be another 1-to-many table so using edit_id_name.html, show_id_name.html. This also means it now has a create / update / delete with status updates Damien De Paoli 2020-12-05 12:16:55 +11:00
  • c367a2559f create/update/delete of condition, covertype, genre, owned, rating objects all works, and can be accessed from Admin menu Damien De Paoli 2020-12-05 11:45:47 +11:00
  • 989c1693f7 changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now & notes/blurb save too Damien De Paoli 2020-12-05 11:06:50 +11:00
  • 5057e856be now have a class to maintain the status, use that to set alert/message for owned, and redirect after create/update/delete owned -> owneds Damien De Paoli 2020-12-05 11:00:53 +11:00
  • d61e830525 now create an owned on /owned, rather than /owned/-1 kludge. Also using sequence for creation. All good - made sequences for all relevant tables too. Last question is how to do redirect to /owneds and still show messsage Damien De Paoli 2020-12-04 18:59:34 +11:00
  • ed07d1f9cb decided to use thing/-1 to create a new thing. Tried it on owned first, works so now also can delete owned/<id> as well. Also made sure not to show the delete button when we are only creating a thing Damien De Paoli 2020-12-04 18:01:54 +11:00
  • cc9e7dff5b hacked around auto-increment primary key, so added note to README to come back to maybe fix this Damien De Paoli 2020-12-04 18:00:34 +11:00
  • 1b9799b439 changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now & notes/blurb save too Damien De Paoli 2020-12-03 19:20:02 +11:00
  • 64ae890ec8 changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now & notes/blurb save too Damien De Paoli 2020-12-03 19:19:48 +11:00
  • 3d12edab63 changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now Damien De Paoli 2020-12-03 19:19:28 +11:00
  • a6cfb21d17 format table with centered text, and dont allow notes field to wrap Damien De Paoli 2020-12-03 19:18:09 +11:00
  • 2a9b9c9cf6 remove unused GetCovertypes() Damien De Paoli 2020-12-03 19:00:22 +11:00
  • b6ba97f049 most of way through editing publisher, author, genre on book... decided now is time to make book<->publisher a normal 1-to-m as it should be Damien De Paoli 2020-12-02 20:55:43 +11:00
  • 93383c3bc0 remove edit buttons on author/publisher, in fact publisher is now a standard field with a BookForm SelectField, and showing, updating publisher works in book.html Damien De Paoli 2020-12-02 19:48:51 +11:00
  • b5e9c41cfd update BUGs and README, to show issues with saving book... Many fields now save, but still some bugged or not tried Damien De Paoli 2020-12-01 20:39:40 +11:00
  • ae9e43964f forgot to git add this - this allows sub books to be a separate route that puts sub books of a parent book in a table, and allows them to be moved up and down Damien De Paoli 2020-12-01 20:29:08 +11:00
  • 7e67f5bb6f rewrote to remove parent_ref and just use parent from ORM, added POST for book/id route, so we can now error on delete and save title only - baby steps -- with alert/message feedback, and also removed debugs Damien De Paoli 2020-12-01 20:28:22 +11:00
  • 136be26ad0 rewrote to remove parent_ref and just use parent from ORM Damien De Paoli 2020-12-01 20:27:17 +11:00
  • 9cce510669 cleaned up ORM notes Damien De Paoli 2020-12-01 20:26:53 +11:00
  • 43b307d063 make book form do a POST, have save/del buttons, and rewrote to remove parent_ref and just use parent from ORM Damien De Paoli 2020-12-01 20:25:37 +11:00
  • ce34f68254 added html for subbooks, made up/down buttons that work too. Also put back reference from subbook to parent book, via ORM data - need to investigate more, but it all works Damien De Paoli 2020-11-30 21:59:50 +11:00
  • 5cc03fe7e7 need return false for other ajax button onclicks, so added them for consistency, also shrank button font to take up less space Damien De Paoli 2020-11-30 21:58:33 +11:00
  • 8d64b95d9f fixed bug with swapping book in series when we dont have details on book to swap with, also really disabled up/down buttons, rather than just made them look disabled Damien De Paoli 2020-11-29 17:40:04 +11:00
  • 99f0a9fdbf MoveBookInSeries now works and moves sub books too if needed, added better comments as the code is a bit hairy. Most importantly, this works for all known cases Damien De Paoli 2020-11-29 16:01:53 +11:00
  • b1e6089276 different way to do the moving in series, more complex, but will handle subbooks in series, etc. Damien De Paoli 2020-11-29 15:36:12 +11:00
  • 5b3ee20fc2 about to really rewrite the swapping sub books, so committing what we have that partially works Damien De Paoli 2020-11-29 13:47:07 +11:00
  • 0f1935466b minor fixup Damien De Paoli 2020-11-29 13:46:37 +11:00
  • cfdb9bed5a update Damien De Paoli 2020-11-28 18:48:11 +11:00
  • cc0ebea664 update Damien De Paoli 2020-11-28 18:48:01 +11:00
  • f70f008f1d fixed bug with disabling up/down buttons per series, rather than for the series we are viewing (it is now/should be based on how move code works) Damien De Paoli 2020-11-28 18:36:07 +11:00
  • 265948b95f updated BUGs Damien De Paoli 2020-11-28 18:28:18 +11:00
  • 8b5fcce1c7 remove the code to deal with moving books in series, its better placed where we draw the books in the series anyway - in main.py Damien De Paoli 2020-11-28 18:28:05 +11:00
  • 6bcbaca1ee fixed bug / improved how we sort parent books, we now sort it based on the first sub_books spot in the series, not the last book we retrieved from the db ordered by book.id - this does not always work if we make a parent book after other books in a series (or move books), then it was printed out of order Damien De Paoli 2020-11-28 18:27:34 +11:00
  • ef74fccab3 fixed bug / improved how we sort parent books, we now sort it based on the first sub_books spot in the series, not the last book we retrieved from the db ordered by book.id - this does not always work if we make a parent book after other books in a series (or move books), then it was printed out of order Damien De Paoli 2020-11-28 18:27:17 +11:00
  • ae1aba5e1d swap order of books in series works - still has debugs, and only works on current series, e.g. if you are in a series in a series, it will need you to manually do the same move in both series - I think I wont fix this bit, but we will see Damien De Paoli 2020-11-28 17:43:03 +11:00
  • 422db5b6aa move buttons in books_for_series in series.html now are form buttons and submit and beginning of code to deal with it exists Damien De Paoli 2020-11-26 17:35:30 +11:00
  • e9f9f742a3 ran a full test, and created this list of BUGs Damien De Paoli 2020-11-25 20:51:03 +11:00
  • ad1f83e046 made loan stick with primary rather than info for color consistency Damien De Paoli 2020-11-25 20:50:48 +11:00
  • fe7a4f46d6 Merge branch 'master' of 192.168.0.2:pybook Damien De Paoli 2020-11-25 18:24:27 +11:00
  • 606c3615cf books_for_series now deals with sub books (hiding ability to reorder them in series), and disables first book (parent or normal) and last book (normal or parent of last sub-book) Damien De Paoli 2020-11-25 17:53:05 +11:00
  • 40817ba969 updated by removing old, adding many new items todo Damien De Paoli 2020-11-24 21:26:51 +11:00
  • 9d74376033 display series info at bottom of book.html Damien De Paoli 2020-11-24 21:24:07 +11:00
  • 3a07c109a0 fix sorting by using proper python printing format str Damien De Paoli 2020-11-24 21:23:46 +11:00
  • 332335fe03 display loan "card" in book.html Damien De Paoli 2020-11-24 20:41:45 +11:00
  • 725c362663 cleaned up tabs on comments in main.py, allowed series edit page to stretch full page, shrank font for books in series table, added move up/down buttons (non-functional as yet), and visualised books being in more than one series Damien De Paoli 2020-11-24 18:12:28 +11:00
  • a579e7db93 datatables needs to know second column is numeric Damien De Paoli 2020-11-23 19:59:01 +11:00
  • c310071db9 series view now orders books in series - still does not deal with series in series Damien De Paoli 2020-11-23 19:50:00 +11:00
  • e7c8e645ae first pass for series data, can save, and shows associated books... Does not deal with series inside series Damien De Paoli 2020-11-23 18:50:53 +11:00
  • 7bd3ff4c26 fixed up author and publisher drop-down lists to have right id/val, not sure if array subscripting the names will work. To be tested, also removed as many divs and margins and paddings as I can, still dont fully understand why some indent more than others, etc. but it works for now Damien De Paoli 2020-11-22 23:56:34 +11:00
  • afb132820b actually, no need for a publisher + button, so removed it, made the add button for authors be at the right, is more logical / neater Damien De Paoli 2020-11-22 12:07:48 +11:00
  • fc12536a83 reordered add button to be consistent with author and publisher, then allowed author to be a drop-down with a + or - button as appropriate Damien De Paoli 2020-11-22 12:02:01 +11:00
  • 60619c9d9c previous commit was by accident was testing speed of not using ORM for all books, it is still a bit slow, but much faster... I wonder whether I load in increments with ORM and ajax append them to the list, just need first 20, then add... OR, just load the lot without an ORM... oddly, cant just do this because both author/publisher would need to be fixed, AND I cant seem to change books[0].parent if I do that, it complains Damien De Paoli 2020-11-22 00:30:51 +11:00
  • 3fe99148c3 moved to using a Get*ById() in condition, covertype, owned files and exposing them in jinja and using them in books.html to fix-up the fact those columns were now raw forein keys (ids) Damien De Paoli 2020-11-22 00:24:11 +11:00
  • 9466e61db9 moved to using a Get*ById() in condition, covertype, owned files and exposing them in jinja and using them in books.html to fix-up the fact those columns were now raw forein keys (ids) Damien De Paoli 2020-11-22 00:23:18 +11:00
  • 1edf5082c7 added publisher list in, so publisher in book.html is about done Damien De Paoli 2020-11-21 17:57:06 +11:00
  • b58b968c66 added GetPublishers for use in book.html to make a publisher drop-down Damien De Paoli 2020-11-21 17:56:25 +11:00
  • 1a598ca59b renamed GetGenreList to GetGenres as it just gets them, does not make the html list as I was originally planning Damien De Paoli 2020-11-21 17:56:05 +11:00
  • 8641b3b140 first pass at edit/add buttons for publisher Damien De Paoli 2020-11-21 15:08:41 +11:00
  • 9dee77b057 removed clever code around publiseher/author, etc. it was just too cryptic, and it does not need to be so generic Damien De Paoli 2020-11-21 14:32:38 +11:00