Commit Graph

28 Commits

Author SHA1 Message Date
73001dd24c first pass at creating a book, it works, but I have messed up the series-div* html in book.html 2020-12-23 12:53:27 +11:00
8b9e017233 updated TODO 2020-12-14 23:23:50 +11:00
4691e50811 updated TODO 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 2020-12-13 22:21:38 +11:00
39e3838336 can now create/update/delete authors (base.html, using edit*.html, and authors.html) 2020-12-05 19:27:13 +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 2020-12-04 18:59:34 +11:00
cc9e7dff5b hacked around auto-increment primary key, so added note to README to come back to maybe fix this 2020-12-04 18:00:34 +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 2020-12-03 19:19:48 +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 2020-12-02 20:55:43 +11:00
b5e9c41cfd update BUGs and README, to show issues with saving book... Many fields now save, but still some bugged or not tried 2020-12-01 20:39:40 +11:00
9cce510669 cleaned up ORM notes 2020-12-01 20:26:53 +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 2020-11-30 21:59:50 +11:00
0f1935466b minor fixup 2020-11-29 13:46:37 +11:00
cc0ebea664 update 2020-11-28 18:48:01 +11:00
Damien De Paoli
40817ba969 updated by removing old, adding many new items todo 2020-11-24 21:26:51 +11:00
151e006154 done loan now 2020-11-21 12:26:01 +11:00
f765a18327 removed fix_db, fixes.sql, and updated todo 2020-11-17 21:30:51 +11:00
Damien De Paoli
9544790ffa removed all old *_lst tables, added corresponding new classes, etc. fro covertype, owned, rating, and dropped tables from DB, etc. Updated base.html to use new tables as drop-downs that are set correctly. So far slight hack on BookForm, will finish that after syncing this all back to mara. If I do the sync, and export/import this version of DB, then the fixes.sql and fix_db() code included in main.py can be removed. Finally, lamely added a favicon and a static/ to support it 2020-11-17 21:22:15 +11:00
e39a4da6a2 removed all refs to genre_lst, made genre table confirm to id, name, added classes/routes for genre*, tweaked book format to accommodate multiple authors, etc. still 1-line, but with 12 / num of <authors, etc.> col wide form-controls 2020-11-15 14:16:58 +11:00
c675786852 remove publisher* from main.py, for now remove ORM complexities for sub_books in books, just do it by hand and cleaned up a few debugs, comments 2020-11-15 12:22:41 +11:00
5fd4479555 first pass at a token navbar experience 2020-11-13 17:55:48 +11:00
1a036c7f47 fixed up missing dependencies when I tested on laptop 2020-11-13 16:58:02 +11:00
a4dca1dbf5 updated README to reflect next steps (will use flask-wtf and flask-boostrap), but proof-of-concept author/<id> works to save to database with a form / POST 2020-11-11 19:23:48 +11:00
8ff7a8ed02 first pass of the data required for editing a single book 2020-11-06 18:01:17 +11:00
1a2555739d half broke version, but its working... need to do the subquery to get list of all real books without subs, but also make sense of how author data is coming through without marshmallow of BookSchema? 2020-11-05 20:12:31 +11:00
2a7cbe5845 using font awesome, datatables, bootstrap and fixed so class attributes are serialized via marshmallow and it all works with jinja2 now 2020-11-04 19:26:36 +11:00
3a42b944df fix spelling mistakes, update flask-sqlachemy doc line, changed how to run to ref main.py instead of book.py && testing first real commit 2020-11-03 18:33:49 +11:00
a51db7c9e4 initial commit of book library in python with sqlalchemy (as an ORM), flask (for the web server) and jinja2 (as the web template front-end bit) 2020-11-03 18:29:41 +11:00