diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-07-27 23:24:40 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-07-27 23:24:53 +0300 |
commit | dd0fcc28ddc4768fb8fa3edcec32ee205d77101b (patch) | |
tree | aaabe658bb8beeaecbb108b76dc31a9db20cd169 /parsers/caves.py | |
parent | 3d7cb78e4733cb2adcab16fe83c93cbe00665d79 (diff) | |
download | troggle-dd0fcc28ddc4768fb8fa3edcec32ee205d77101b.tar.gz troggle-dd0fcc28ddc4768fb8fa3edcec32ee205d77101b.tar.bz2 troggle-dd0fcc28ddc4768fb8fa3edcec32ee205d77101b.zip |
update todo strings
Diffstat (limited to 'parsers/caves.py')
-rw-r--r-- | parsers/caves.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/parsers/caves.py b/parsers/caves.py index 3549c75..bc2bfbc 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -13,23 +13,16 @@ from troggle.core.models.caves import Area, Cave, Entrance, CaveSlug, EntranceSl '''Reads all the cave description data by parsing the xml files (stored as e.g. :EXPOWEB:/cave_data/1623-161.html ) and creating the various Cave, Entrance and necessary Area objects. -This is the first import that happens after the dabase is reinitialised. +This is the first import that happens after the database is reinitialised. So is the first thing that creates tables. -BUT in Django 2.0 and later we cannot do any queries on data we have just entered -because this is all happening inside one transaction. Bummer. - -django.db.transaction.TransactionManagementError: -An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block. ''' -todo='''- db Update does not work when a cave id is in the pending list but a proper cave description file exists - and is being imported. It should work. But currently Django aborts and he file is not read in. - +todo=''' - Cannot use Edit This Page for pendingcaves.txt_edit as Edit This Page is expecting an html file. So we will need a separate file-editing capability just for this configuration file ?! -- crashes on MariaDB on server when deleting Caves and complains Area needs a non null parent, But this is not true. +- crashes on MariaDB in databasereset.py on server when deleting Caves and complains Area needs a non null parent, But this is not true. The only solution we have found is to let it crash, then stop and restart MariaDB (requires a logon able to sudo) and then restart the databasereset.py again. (status as of July 2022) ''' |