2ffe3940e6 
								
							 
						 
						
							
							
								
								Update OutOfDate message to show actual argument.  
							
							
							
						 
						
							2020-01-28 10:52:19 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								93eb693bee 
								
							 
						 
						
							
							
								
								Separate version_pragma from other pragmas!  
							
							... 
							
							
							
							This was a dumb bug. Because the version was included in the pragmas
that get set on every load, the database was receiving the new
user_version simply by setting skip_version_check=False and letting
the regular pragmas load, so all future checks passed without
having to run the db upgrader. 
							
						 
						
							2020-01-27 20:46:32 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								222d63857e 
								
							 
						 
						
							
							
								
								Replace which with winwhich.  
							
							
							
						 
						
							2020-01-21 23:50:11 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								1b308d7921 
								
							 
						 
						
							
							
								
								Fix seconds_to_hms bug!  
							
							... 
							
							
							
							Embarrassing. If M was zero then you got HH:SS. 
							
						 
						
							2020-01-06 20:21:41 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								3bd8fe6392 
								
							 
						 
						
							
							
								
								Raise FileNotFound from read_filebytes.  
							
							
							
						 
						
							2019-12-10 12:48:28 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								9fa49bbddf 
								
							 
						 
						
							
							
								
								Add parameter only_shrink to fit_into_bounds.  
							
							
							
						 
						
							2019-08-14 13:48:22 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								947d05a4fa 
								
							 
						 
						
							
							
								
								Revert 488d793, reinstate PhotoDB.normalize_tagname.  
							
							... 
							
							
							
							In that commit, I missed three more calls in objects.py and
now I'm deciding that 5x copy-paste is not worth it. 
							
						 
						
							2019-06-15 16:49:52 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								bdff14ecf2 
								
							 
						 
						
							
							
								
								Identify a logic error without actually fixing it.  
							
							... 
							
							
							
							😎  
						
							2019-04-26 23:14:14 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								cc6e7a8b16 
								
							 
						 
						
							
							
								
								Improve line consistency across the PhotoDB.new_* methods.  
							
							... 
							
							
							
							By clarifying why some lines are above / below the generate_id
call and putting similar code in similar order to each other. 
							
						 
						
							2019-04-26 23:12:55 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								a9865d8546 
								
							 
						 
						
							
							
								
								Replace PhotoDB.normalize_tagname with real call to Tag.norm_name.  
							
							... 
							
							
							
							I originally did this because I didn't want to accidentally call
Tag.normalize_name and forget to pass the valid parameters. However,
having this single method be on PhotoDB while the other norms are
part of their proper class has been an eyesore.
So since there are only a few calls to this I'm just inlining them
and trusting to not forget if I add more in the future. 
							
						 
						
							2019-04-26 23:06:41 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								8c74e42a74 
								
							 
						 
						
							
							
								
								Add Album.has_any_associated_directory.  
							
							
							
						 
						
							2019-04-26 18:55:03 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								ebde5c7ee8 
								
							 
						 
						
							
							
								
								Give each object class a table and centralize db_row normer.  
							
							
							
						 
						
							2019-04-26 18:52:56 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								fa97dd5d3c 
								
							 
						 
						
							
							
								
								Remove Tag._cached_synonyms. Not worthwhile.  
							
							
							
						 
						
							2019-04-05 23:26:11 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								d24f93809b 
								
							 
						 
						
							
							
								
								Add message parameter to commit instead of logging separately.  
							
							... 
							
							
							
							The upside is that we can get rid of some redundancy and reduce
the friction of adding more commit messages.
The downside of this is that the log statement always reports from
commit, instead of the function calling commit. But with unique
messages this shouldn't be too much trouble and should be worth it. 
							
						 
						
							2019-04-01 23:29:01 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								68a567d266 
								
							 
						 
						
							
							
								
								Perform is None check before detailed type checks.  
							
							
							
						 
						
							2019-04-01 23:17:35 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								3aa064cde3 
								
							 
						 
						
							
							
								
								Move log statement to top of method.  
							
							
							
						 
						
							2019-04-01 23:17:01 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								2f33023025 
								
							 
						 
						
							
							
								
								Replace singular guard continue with simple if.  
							
							
							
						 
						
							2019-04-01 23:16:25 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								ad140e485e 
								
							 
						 
						
							
							
								
								Two small docstring improvements.  
							
							
							
						 
						
							2019-03-16 13:09:02 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								d66dc53215 
								
							 
						 
						
							
							
								
								Require voussoirkit 0.0.28 for sqlhelpers.listify.  
							
							... 
							
							
							
							Instead of defining that within etiquette. 
							
						 
						
							2019-01-01 18:08:47 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								5d7bc1ff4b 
								
							 
						 
						
							
							
								
								Somewhat improve prettiness of hyphen range parse code.  
							
							
							
						 
						
							2018-12-27 15:31:56 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								c6c6158062 
								
							 
						 
						
							
							
								
								Save this assignment until it's needed.  
							
							
							
						 
						
							2018-12-21 23:44:50 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								7674610b88 
								
							 
						 
						
							
							
								
								Somewhat simplify a few conditions in photodb init.  
							
							
							
						 
						
							2018-11-24 22:25:25 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								1eb5a6f465 
								
							 
						 
						
							
							
								
								Rename DatabaseOutOfDate's parameter 'current' -> 'existing'.  
							
							
							
						 
						
							2018-11-24 22:06:16 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								707fdcc637 
								
							 
						 
						
							
							
								
								Add album cards and improve album pages.  
							
							... 
							
							
							
							- album card has placeholder for future thumbnail.
- replaced nested tree hierarchy lists with separate boxes.
- list/grid view also applies to the root listing.
- added a sticky right panel for all the tools. not pretty yet.
- mechanism for adding sticky panel changed. instead of applying
  it to the #right, you apply it to #content_body so that its
  grid layout can be updated properly. 
							
						 
						
							2018-11-12 22:15:59 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								d0208154e4 
								
							 
						 
						
							
							
								
								Add a function to clarify SQL_COLUMNS creation.  
							
							
							
						 
						
							2018-11-11 19:08:31 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								dbdd509cd2 
								
							 
						 
						
							
							
								
								Rearrange imports so voussoirkit is right after lib imports.  
							
							... 
							
							
							
							Added a styleguide.md file to refer back to.
Since voussoirkit is a library it feels better to have it below
the rest of the library and above the local project imports. 
							
						 
						
							2018-11-04 19:27:20 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								de48105e32 
								
							 
						 
						
							
							
								
								When thumbnailing, don't call relative_to on return.  
							
							... 
							
							
							
							The path given by make_thumbnail_filepath will already have
it in the right place, so this is probably an accident waiting
to happen. 
							
						 
						
							2018-11-04 13:30:34 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								25a27e6241 
								
							 
						 
						
							
							
								
								Move dict_to_params to flask-specific helpers.py.  
							
							... 
							
							
							
							The rest of etiquette has nothing to do with URLs so this
doesn't belong in the backend helper file. 
							
						 
						
							2018-11-04 13:30:08 -08:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								20e41ad689 
								
							 
						 
						
							
							
								
								Extremely minor touchups.  
							
							
							
						 
						
							2018-09-23 14:57:25 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								95edc4d397 
								
							 
						 
						
							
							
								
								Add method Photo.move_file.  
							
							
							
						 
						
							2018-09-23 14:54:56 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								4d1575719b 
								
							 
						 
						
							
							
								
								Bump voussoirkit requirement to 0.0.24 for pathclass exceptions.  
							
							
							
						 
						
							2018-09-23 14:54:11 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								e9f567ffc9 
								
							 
						 
						
							
							
								
								Don't allow Groupable to add itself as a child.  
							
							... 
							
							
							
							omg what an oversight 
							
						 
						
							2018-09-22 23:14:41 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								670bc8b375 
								
							 
						 
						
							
							
								
								Allow setting searchhidden during new_photo.  
							
							
							
						 
						
							2018-09-21 21:31:57 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								0ccfa74709 
								
							 
						 
						
							
							
								
								Let helpers.generate_*_thumbnail raise FileNotFoundError.  
							
							
							
						 
						
							2018-08-17 22:05:47 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								bea9f905bd 
								
							 
						 
						
							
							
								
								Support downloading .zip of arbitrary photos, clipboard.  
							
							... 
							
							
							
							Now that creating zips of any photo set is easier, we can
let the user download whatever is on their clipboard. 
							
						 
						
							2018-08-14 23:02:06 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								bc6a0aa907 
								
							 
						 
						
							
							
								
								Improve & generalize zipfile code.  
							
							... 
							
							
							
							Moved some heavy lifting out of the flask album.zip endpoint
and into helpers.py.
Renamed some things for clarity. 
							
						 
						
							2018-08-14 22:58:26 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								53c86c30a1 
								
							 
						 
						
							
							
								
								Improve clarity of the recursive_dict_ helper functions & usage.  
							
							
							
						 
						
							2018-08-11 18:19:55 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								3b3c690ae3 
								
							 
						 
						
							
							
								
								Remove return value from load_config, so no illusion of purity.  
							
							... 
							
							
							
							This method already relies on object state anyway and writes back
to self.config, so the return value is unnecessary. 
							
						 
						
							2018-08-11 18:19:10 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								9eb9220ca9 
								
							 
						 
						
							
							
								
								Read and write the config file as UTF-8.  
							
							
							
						 
						
							2018-08-11 17:57:19 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								fb052a2d56 
								
							 
						 
						
							
							
								
								Fix Album.add_associated_directory not letting duplicates.  
							
							... 
							
							
							
							The docstring and the actual code were disagreeing. 
							
						 
						
							2018-07-29 16:30:30 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								30e3aa9c6f 
								
							 
						 
						
							
							
								
								Simplify and improve rollback logic.  
							
							
							
						 
						
							2018-07-29 16:28:57 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								30d96139c2 
								
							 
						 
						
							
							
								
								Remove commit param from PDB.sql_* methods nobody was using.  
							
							... 
							
							
							
							And is better left to the caller anyway. 
							
						 
						
							2018-07-29 16:05:49 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								9328600355 
								
							 
						 
						
							
							
								
								Add message parameter to PDB.savepoint for better logging.  
							
							... 
							
							
							
							Helps to have a visual on which methods are creating the saves. 
							
						 
						
							2018-07-29 16:03:04 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								56e7472c93 
								
							 
						 
						
							
							
								
								Revert f-strings to %s for logging calls.  
							
							... 
							
							
							
							In my excitement I forgot about that rule. 
							
						 
						
							2018-07-29 16:01:26 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								8447fb3343 
								
							 
						 
						
							
							
								
								Make deleting and unlinking tags require confirmation.  
							
							... 
							
							
							
							Added text inside the delete buttons and made them confirm. 
							
						 
						
							2018-07-28 20:25:25 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								1b90850818 
								
							 
						 
						
							
							
								
								Oops, add the required_feature decorators to remove_child.  
							
							
							
						 
						
							2018-07-22 21:06:16 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								2a45f4e17e 
								
							 
						 
						
							
							
								
								Add parameter albums to purge_empty_albums as starting set.  
							
							... 
							
							
							
							Like purge_deleted_files, you can provide a list of albums to
act as the starting point instead of letting it use the default
of all albums. 
							
						 
						
							2018-07-22 20:21:00 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								8a12a24e8e 
								
							 
						 
						
							
							
								
								Add tag_autocomplete.js.  
							
							... 
							
							
							
							Instead of embedding the entire tag list in the search.html template
every single time, this script loads the tags from the new,
cache-enabled endpoint /all_tags.json. Then we can use html5
datalists to create autocomplete forms on the search and photo pages. 
							
						 
						
							2018-07-22 20:19:05 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								bbf07f4401 
								
							 
						 
						
							
							
								
								Fix image thumbnail wrong variable bug.  
							
							... 
							
							
							
							How long has that been there? 
							
						 
						
							2018-07-22 20:19:05 -07:00 
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								d740e6d686 
								
							 
						 
						
							
							
								
								Oops, fix read_filebytes not stopping at the range_max properly.  
							
							
							
						 
						
							2018-07-22 20:18:58 -07:00