1073 Commits

Author SHA1 Message Date
9abdd1ee90 Synced dev requirements with Pillar Python SDK 2017-03-09 10:18:19 +01:00
db98c681a2 Added missing redis requirement 2017-03-08 17:16:44 +01:00
a7cd515fdb Fixed version conflict with pillarsdk dev requirements 2017-03-08 17:06:55 +01:00
7967b80ab3 Auto-install -e pillar
It uses ../pillar instead of . so that it is a valid path from blender-cloud as well.
2017-03-07 14:25:56 +01:00
4e36ea5aae Remove redundant requirement
It is already defined in requirements.txt in pillar-python-sdk.
2017-03-07 12:50:03 +01:00
47ca614ea3 Remove Linux venv specific dependencies
Was giving install error on macOS.
2017-03-07 12:49:17 +01:00
662f1276d2 Upgraded development requirements to speed up code coverage recording
Removed requests from requirements.txt file, because it's already a req
of pillar-python-sdk.
2017-03-03 14:53:44 +01:00
a0a8257df0 Python 3.6: Fixed issue with gravatar function
Hashing of string object doesn't work. Also added a deprecation warning
that pillar.api.utils.gravatar should be used; pillar.web.utils.gravatar
is just a copy.
2017-03-03 14:42:13 +01:00
3fe9472d27 Python 3.6 compatibility: random bits & bcrypt
Switched from Sybren's RSA library to the new stdlib module 'secrets' to
generate secret tokens. This also means that the rsa library was demoted
to secondary requirement.
2017-03-03 14:16:29 +01:00
a9e40ccf10 Python 3.6 compatibility: bytes vs strings stuff
These changes mostly revolve around the change in ObjectId constructor
when running on Python 3.6. Where on 2.7 the constructor would accept
12- and 24-byte strings, now only 12-byte bytes and 24-character strings
are accepted. Good thing, but required some changes in our code.

Other changes include hashing of strings, which isn't supported, so they
are converted to bytes first, and sometimes converted back afterwards.
2017-03-03 14:14:36 +01:00
6fb58a3f26 Python 3.6 compatibility: Prevent comparison with None 2017-03-03 14:10:47 +01:00
86b13557fb Don't run failed unittests first.
This can cause false positives when the failure was caused by inter-test
interference.
2017-03-03 12:33:48 +01:00
60c608d095 Fixup of syntax error introduced by 2to3 2017-03-03 12:33:23 +01:00
72b002491a Referring to Pillar Python SDK requirements
This forces us to remove common requirements from Pillar's requirements.txt
file (which is a good thing).
2017-03-03 12:33:01 +01:00
82157af84b Removed no longer compatibility thingy for Python 3 2017-03-03 12:32:21 +01:00
b454b011b0 Ran 2to3 on unittests, same sort of manual fixups as before 2017-03-03 12:07:18 +01:00
b65dd49aa6 Renamed static.py to staticfile.py
Python 3 supports 'namespace packages', and thus can see a directory
without __init__.py as something importable. This caused a name conflict,
since there were both the file static.py and the dir static.
2017-03-03 12:01:38 +01:00
7c055b5f56 Ran 2to3 on pillar + some manual fixups
The 'manual fixups' are:

- incorrect use of dict.items() where dict.iteritems() was meant; this
  results in list(dict.items()), which I changed to dict.items().
- removal of 'from __future__ import' lines, which 2to3 changes into
  empty lines; I removed the empty lines.
2017-03-03 12:00:30 +01:00
2d6bdd350f Added development requirements to requirements-dev.txt
In this commit (and the previous ones on requirements files) I haven't
changed the package versions. Upgrading our dependencies is for another
time.
2017-03-03 11:42:23 +01:00
eadb91abc9 Removed development requirements and unused secondary requirements. 2017-03-03 11:37:55 +01:00
3e7152bb93 Made requirements.txt py36-compatible
Some packages had to be removed; they are deployment-specific anyway,
and may not even be needed any more.

I've also added some secondary requirements that weren't specified yet.
The next steps will be to split into runtime and development requirements.
2017-03-03 11:30:24 +01:00
4570b4637b Move attachment parsing on the node level last-py27 2017-02-27 16:23:21 +01:00
e381ca774e On Page load use replaceState instead of pushState
Fix T50797 and replace the id-based url with a custom url for page in the browser's history.
2017-02-27 13:08:56 +01:00
6765276519 Introducing attachments fixes for blog posts and assets.
Requires migration of attachments schema using
python manage.py maintenance upgrade_attachment_schema --all
2017-02-21 18:08:42 +01:00
eca4ade9d8 Linking to Blender Cloud add-on (and no longer to bundle)
Added a note that states the add-on requires Blender 2.78+. Even though
this isn't strictly true (it also supports 2.77a if you manually install
the Blender ID add-on), it simplifies things greatly.

Fixes T49721
2017-02-21 11:14:46 +01:00
2e00e81b30 Raise z-index of col_right by 1 2017-02-14 16:03:37 +01:00
0a86ad357f Analytics for videojs 2017-02-08 16:27:52 +01:00
02f736dcc4 Hide missing summaries on projects homepage 2017-02-08 15:27:20 +01:00
d8eae2c44b Fix OG crash on projects without picture_header 2017-02-08 15:26:56 +01:00
c98cd82b3f OpenGraph: Check if we have a description/post content 2017-02-08 14:48:55 +01:00
69b3e06b1c Use project picture as fallback if og_picture/node is undefined 2017-02-07 18:03:35 +01:00
7b9fef2fc8 Update caches 2017-02-06 14:44:05 +01:00
528887b1a6 Unify Twitter cards and Open Graph data 2017-02-06 14:37:53 +01:00
10df0af355 Fix search list not scrolling 2017-02-06 14:35:51 +01:00
ae38bec218 Fix project header videos 2017-02-06 12:07:05 +01:00
3ef0bf6761 Typo 2017-02-02 18:08:21 +01:00
1e56ca5227 Only load videojs when there are sources, and minor style tweaks 2017-02-02 18:05:30 +01:00
b8ad0cd18f Update cache version 2017-02-02 17:40:32 +01:00
e049ab0a08 Fire videojs via js 2017-02-02 17:40:04 +01:00
089b0f1535 Own copy of videojs 5.8.8 2017-02-02 16:57:31 +01:00
bf0ebce81a Videojs for project video headers 2017-02-02 16:57:18 +01:00
eb02fa5eec Replace Flowplayer with the open source Video.js library 2017-02-02 16:06:41 +01:00
bc6f526b72 Don't use ?format=amp after url_for()
url_for() is smart enough to add variables to the query string if there is
no route parameter for them.
2017-01-24 16:35:02 +01:00
0e07cb2b1d Link to AMP view if we're in a node 2017-01-24 16:01:05 +01:00
2b528f0fff Added pillar.api.utils.bsonify(some_dict)
It was used in an experiment in Flamenco as an alternative to JSON; it
might still be used in the future if BSON turns out to be significantly
faster to generate.
2017-01-24 09:19:24 +01:00
9b90070191 AMP: break too long words 2017-01-23 16:15:53 +01:00
68fcae64ae AMP: Use srcset to load different headers depending on screen size 2017-01-23 15:56:41 +01:00
e3fc5d1b9b Initial support for AMP (Accelerated Mobile Pages)
https://www.ampproject.org/

Basic implementation. Still needs the node description to be parsed,
as <img> tags need to be <amp-img> with special tags.
2017-01-23 15:47:14 +01:00
85988bb8c9 Fix for some project names breaking javascript 2017-01-20 17:35:08 +01:00
85dba5e9e9 Blog: Re-order hideOverlay to be re-used 2017-01-20 13:13:11 +01:00