Sybren A. Stüvel
2aa79d3f09
MongoDB: more changing count() → count_documents()
2019-05-29 13:46:53 +02:00
Sybren A. Stüvel
6f8fd4cd72
Cerberus 1.3 renamed 'validator' → 'check_with'
...
This results in a change in schemas as well as in validator function names.
2019-05-29 12:58:40 +02:00
Sybren A. Stüvel
f53217cabf
Added some type declarations
2019-05-29 12:58:40 +02:00
Sybren A. Stüvel
8b42e88817
Cerberus 1.3 renamed '{value,key}schema' to '{values,keys}rules'
...
'valueschema' and 'keyschema' have been replaced by 'valuesrules' and
'keysrules'. Note the change from 2x singular ('value' and 'schema') to
2x plural ('values' and 'rules').
2019-05-29 12:57:38 +02:00
Sybren A. Stüvel
dd5cd5b61a
Compatibility with Eve 0.9.1
...
Note that Eve's update from 0.9 → 0.9.1 had a breaking API change, as the
return type of `app.data.find(...)` changed...
2019-05-29 10:50:55 +02:00
Sybren A. Stüvel
459a579964
Some extra type annotations
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
0b32e973a9
More thorough retrying in Blender ID communication
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
c6e70dc5d9
Removed and gitignored poetry.lock
...
The poetry.lock files are only relevant for repeatable deployments,
and the one in this project isn't used for that (only the Blender
Cloud project file is used, and that's still there).
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
1b90dd16ae
Re-locked dependencies
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
1e823a9dbe
MongoCollection.count() and update() are deprecated
...
Eve doesn't have any counting methods on `current_app.data`, so there is
no one-to-one translation for `cursor.count()` in
`file_storage/__init__.py`. Since the call was only used in a debug log
entry, I just removed it altogether.
I removed `pillar.cli.operations.index_users_rebuild()`, as it was
importing `pillar.api.utils.algolia.algolia_index_user_save` which doesn't
exist any more, so the code was dead anyway.
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
47d5c6cbad
UnitTest.assertEquals is deprecated, replaced by assertEqual
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
b66247881b
Relaxed required versions of all our dependencies
...
Some packages were upgraded; the rename from `CommonMark` to `commonmark`
was the only change breaking the unit tests.
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
90e5868b31
Dependencies: remove requests, it's pulled in via python-pillar-sdk anyway
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
94efa948ac
Development dependencies updates to their latest versions
2019-05-28 16:13:14 +02:00
Sybren A. Stüvel
ec344ba894
Generate Blender ID URL based on configuration
2019-05-23 13:48:24 +02:00
Sybren A. Stüvel
cb8c9f1225
Merge branch 'production'
2019-05-22 10:27:25 +02:00
Sybren A. Stüvel
51ed7a647d
put_project(project_dict): also log the error when we cannot PUT
...
Previously only a ValueError was raised, which was sometimes swallowed.
Instead of looking up the culprit and solving this properly, I just log the
error now.
2019-05-22 10:15:25 +02:00
Sybren A. Stüvel
c396c7d371
Allow web projects to un-attach project pictures
...
This makes it possible to PUT a project after attach_project_pictures()
has been called on it (which embeds the picture file documents).
This will be used in SVNman.
2019-05-22 10:14:19 +02:00
Sybren A. Stüvel
2d7425b591
Added 'idna' package as dependency
...
It's required by pyopenssl but for some reason wasn't installed by Poetry.
2019-05-14 11:19:03 +02:00
Sybren A. Stüvel
3f875ad722
Gitignore devdeps metadata directory
2019-05-14 10:42:15 +02:00
Sybren A. Stüvel
9c517b67c5
Documenting use of Poetry for dependency management
2019-05-14 10:42:15 +02:00
Sybren A. Stüvel
dd9a96d111
README: Removed trailing whitespace
2019-05-14 10:42:15 +02:00
Sybren A. Stüvel
3d6ff9a7bc
Moving to Poetry
2019-05-14 10:42:15 +02:00
Pablo Vazquez
8ba7122a01
Forms: Use own label element for fields instead of wtforms.
...
This way we can do two things:
* Tag the field for translation
* Use a filter (like undertitle for nicer labels)
2019-04-24 21:29:55 +02:00
Francesco Siddi
15d5ac687c
Attach all project pictures when viewing node
...
The Open Graph rendering code is not completely refactored yet,
so it still requires a mix of project.picture_header and
project.picture_16_9. By attaching all project pictures we prevent
unexpected errors.
2019-04-19 15:30:55 +02:00
Francesco Siddi
402f9f23b5
Use picture_16_9 as og_image
...
Previously we used picture_header, which did not guarantee a suitable
aspect ratio for an Open Graph image.
2019-04-19 14:12:43 +02:00
Francesco Siddi
486fb20dcf
Enhance project with attach_project_pictures
...
Instead of individually attaching project images, use the utility
function.
2019-04-19 14:11:42 +02:00
Francesco Siddi
34f2372082
Add picture_16_9 when attaching project pictures
2019-04-19 14:10:19 +02:00
Francesco Siddi
c217ec194f
Save 16_9 picture via Project edit form
2019-04-19 14:09:54 +02:00
Francesco Siddi
b68af6da8b
Rename 16x9 to 16_9
...
We do this to reduce ambiguity about resolution vs aspect ratio.
2019-04-19 11:50:41 +02:00
Francesco Siddi
06f5bc8f01
Add picture_16x9 attribute for Project
...
This image can be use as a source for Open Graph tags, as well as for
displaying a project thumbnail with a known (or at least expected)
aspect ratio.
2019-04-19 10:57:46 +02:00
Sybren A. Stüvel
53eb9f30fd
Bumped Jinja2 2.10 → 2.10.1
...
Github poked us about this being a security update.
2019-04-18 10:15:41 +02:00
Pablo Vazquez
43d464c60c
Fix missing icons.
2019-04-15 12:42:49 +02:00
Pablo Vazquez
d0ef76c19e
CSS: Utility classes for column count property.
2019-04-12 17:16:06 +02:00
Pablo Vazquez
a43eca4237
Timeline: Less prominent project title.
2019-04-10 17:08:14 +02:00
Pablo Vazquez
af020d4653
Cleanup CSS.
...
Extend Bootstrap classes instead of using own styling.
2019-04-10 17:08:01 +02:00
Pablo Vazquez
2c207b35e2
UI Asset List: Add custom class to meta items.
2019-04-10 14:14:04 +02:00
Francesco Siddi
3f3172e00e
Allow PUT method for owner on comment creation
...
Make use of the permission system and allow PUT method for the creator
of a Node of type comment. This enables comment owners to edit their
own posts.
2019-04-09 01:09:08 +02:00
Francesco Siddi
26a09a900f
PEP8 formatting
2019-04-09 01:01:58 +02:00
Francesco Siddi
90154896fb
PEP8 formatting
2019-04-09 01:01:49 +02:00
Francesco Siddi
95d611d0c5
Cleanup: remove unused import and blank line
2019-04-08 23:55:26 +02:00
Francesco Siddi
dc7d7bab4a
Extend projects/view.html for page templates
...
Using projects/landing.html was causing exception since the landing
template expects project attributes that are available only for
projects that are setup_for_film.
2019-04-08 16:43:20 +02:00
Pablo Vazquez
d047943a07
Cleanup duplicate code.
2019-04-04 14:21:34 +02:00
Pablo Vazquez
b64b75eecb
Jumbotron: Subtle text shadow on text
2019-04-04 14:21:34 +02:00
Pablo Vazquez
152dc50715
UI Timeline: Make buttons outline white when dark background.
2019-04-04 14:21:34 +02:00
Tobias Johansson
73edd5c5d2
Remove unused import
2019-04-04 14:15:03 +02:00
Tobias Johansson
3d8ee61b03
Clean up: Whitespace
2019-04-04 11:34:13 +02:00
Tobias Johansson
ee5a1a8bb7
Use kebab-case for vue names
...
https://vuejs.org/v2/guide/components-custom-events.html#Event-Names
2019-04-04 11:33:43 +02:00
Tobias Johansson
ccc78af742
white space clean up
2019-04-04 10:44:43 +02:00
Tobias Johansson
de40b4b2b6
Specify prop type
2019-04-04 10:44:22 +02:00