Ticket created by ~andy47 on ~andy47/simple_log
I'd like to look at alternatives to packaging with setuptools. The first tool I would like to try is Flit.
Ticket created by ~andy47 on ~andy47/Portfolio
Create a modal dialogue to add a HoldingMovement record from the holdings page.
Ticket created by ~andy47 on ~andy47/Portfolio
Add 2 new columns to the HoldingMovement model and associated screens;
- transaction type. one of; 'buy', 'sell', 'drp'.
- money column for fees/brokerage
Ticket created by ~andy47 on ~andy47/Portfolio
This may also require some changes to code and configuration
Comment by ~andy47 on ~andy47/Portfolio
Added with this commit - https://hg.sr.ht/~andy47/Portfolio/rev/92e141cbbb0f4c523f7709a572dd3dd73b9ef333
REPORTED
RESOLVED CLOSEDTicket created by ~andy47 on ~andy47/Portfolio
If the FLASK_ENV (and ENV config value) is not set to 'production' display the value in the banner of the base template. This will easily enable people viewing the web interface to know if they are using a production or non-production environment.
Comment by ~andy47 on ~andy47/Portfolio
REPORTED
RESOLVED CLOSEDComment by ~andy47 on ~andy47/Portfolio
The code is of the form;
from playhouse.db_url import connect from models import db ... connection_string = config[<whatever>].DATABASE this_db = connect(connection_string) db.initialize(this_db) ...
Ticket created by ~andy47 on ~andy47/Portfolio
Each client module or script has roughly the same code to connect to the target database and then initialise the
db
object inmodels.py
.Let's just put this in
models.py
as a callable function to reduce the complexity of the calling code and the number of modules they need to import.
Comment by ~andy47 on ~andy47/Portfolio
Got the link in the commit wrong but this is resolved by https://hg.sr.ht/~andy47/Portfolio/rev/53ebaae1c0ca3c6a52f136c1a40841c24dc3d75f
REPORTED
RESOLVED CLOSED