33d506ddaf
Rearrange tables in preparation for foreign keys.
...
In order to create a foreign key the table has to already exist.
So move the object types to the top, with Users first since other
things have authors.
2018-03-17 17:54:15 -07:00
269cfb6762
Improve some variable names for clarity.
2018-03-17 16:48:09 -07:00
ffe0be21f5
Fix Photo thumbnail paths to be relative to the PDB's thumb dir.
...
Previously they were relative to the directory from which the client
was launched, meaning it usually started with ./_etiquette.
Now it should be more portable and less tight.
2018-03-13 02:50:54 -07:00
1cd78a678b
Minor linter appeasements.
2018-03-11 01:54:59 -08:00
c90585665a
Add md and rst as text/plain mimetypes.
2018-03-10 13:27:21 -08:00
5f6d21fdee
Give Photos a searchhidden property.
...
By default, photos with searchhidden do not appear in the search
results. This allows a small number of representative images from
a large album to appear in the results, while the rest can be
found on the album's page.
The same effect could be achieved with a tag and forbid search,
but tag searching has much higher cost and it would be more difficult
to implement as a default behavior without requiring lots of special
checks whenever listing tags etc.
2018-03-09 17:10:27 -08:00
1c1e7f158f
Minor fixes & pylint appeasements.
2018-02-16 21:28:36 -08:00
e5a316ff9c
Remove old SQL_ constants. Use the dicts.
2018-02-16 20:40:58 -08:00
655d1fa235
Prepare to use dicts SQL_COLUMNS, _INDEX instead of separate.
2018-02-16 18:48:03 -08:00
14750eafc5
Move DB_INIT to constants; auto parse column names.
2018-01-13 16:48:48 -08:00
d548e09a96
Add .nfo to the custom mimetypes as text/plain.
2018-01-09 18:46:32 -08:00
b859dbd22a
Add bookmark cache, replace get_bookmark code with call to get_thing.
2017-12-20 20:10:58 -08:00
e6a50500b9
Fix missing file_read_chunk from default config
2017-11-26 02:37:33 -08:00
8f000543ea
Add exceptions.DatabaseOutOfDate instead of just using an error string.
...
And don't raise SystemExit. Not sure what I was thinking.
2017-11-16 16:33:40 -08:00
96856e9361
Cleanup: More minor dusting, commenting, clarity renaming.
2017-11-11 22:49:03 -08:00
a0f68fa858
Add .opus to the extended mimetypes.
2017-10-04 16:54:28 -07:00
bd847159fa
Organize config by nesting related stuff.
...
I thought about switching to .ini files but that's even less desirable.
2017-07-29 16:23:15 -07:00
4fc203634c
Add new config "enable_login".
2017-07-20 23:25:23 -07:00
6bed300496
Add more feature_required decorators and config.
2017-06-14 23:15:47 -07:00
d10fe47dc4
Add parentheses to default tag chars.
2017-06-11 22:56:21 -07:00
a4a278c173
Give Tags a description field.
2017-05-12 17:31:17 -07:00
09f209719b
Add decorators.@required_feature to centralize FeatureDisabled exc.
2017-05-01 20:41:56 -07:00
24b6970617
Move default DB filename etc. to constants
2017-04-20 18:26:15 -07:00
13040d559b
Cache objects for faster re-access; Cache album.sum_bytes result
2017-03-22 22:54:17 -07:00
55ed6a6d28
Give each PDBMixin an init and a cache. Not used yet
2017-03-22 21:24:53 -07:00
80a861deee
Add 'enable_photo_reload_metadata' and '...generate_thumbnail'
2017-03-17 14:01:39 -07:00
f222ae7182
Add 'enable_photo_add_remove_tag' config
2017-03-17 00:10:33 -07:00
efa930f4a8
Make associated_directory its own table so albums can have multiple
...
Also renamed a bunch of indices
2017-03-16 23:57:31 -07:00
8692d826c5
Add 'enable_new_...' config options. Decent until actual permission system
2017-03-16 19:54:12 -07:00
db628d158e
Shorten lines longer than 100 characters
2017-03-14 21:18:42 -07:00
d7cd1e9748
Add more docstrings; Remove unused code
2017-03-10 15:01:12 -08:00
83408aca4a
Give Albums their own ID counter, own group rel table
2017-03-04 01:13:22 -08:00
92880ba3eb
Rearrange mimetype-icon dict for clarity
2017-03-03 22:50:36 -08:00
9ba1a88174
Fix bug in which only the last photo of a digest was added; Improve mimetype usage by not deleting the subtype
2017-02-27 23:39:06 -08:00
c6615284e0
Improve Photo Card CSS: Filename hover and metadata font
2017-02-27 23:05:43 -08:00
fcc671a617
Move many errors + warnings to properties of Exception classes
2017-02-26 01:04:07 -08:00
5d1c2dfc40
Use URL to indicate POST action
...
Instead of passing 'action' as a field like a dummy.
2017-02-26 00:33:26 -08:00
c80e2003ff
checkpoint
...
add photo and search css for narrow screens; incorporate new expressionmatch kit; entry_with_history cursor moves to end; albums indicate total filesize; etc
2017-02-24 22:07:59 -08:00
c84acca6c9
Move modules into an actual package
2017-02-04 19:55:13 -08:00
2b34854910
Move files to top of repository
2016-11-28 20:19:31 -08:00
2d4b07c10f
Add database upgrader script
2016-11-28 20:18:44 -08:00
5de1736347
checkpoint
2016-11-05 21:24:43 -07:00