4939 Commits

Author SHA1 Message Date
Berker Peksag
750ddf32b5 Fix urlparse import in tools/routing.py
urlparse is already a function, so we don't need to specify
a module name.

Refs #5339
2015-08-01 05:05:07 +03:00
Jessica Tallon
d7f35f6fbe Add the user models to the MODELS list
This adds the two new user models (LocalUser and RemoteUser) to the
MODELS list that is in models.py. This stops the strange bug that occurs
if you migrate a fresh database, the two models don't exist however
migrating an existing database would create them as the migrations
exist.
2015-07-31 15:15:24 +02:00
Jessica Tallon
d88fcb03e2 Change codebase to query or create correct User model
The code base had many references to User.username and other
specific to LocalUser attributes as that was the way it use to exist.
This updates those to query on the generic User model but filtering
by attributes on the LocalUser.
2015-07-31 15:15:24 +02:00
Jessica Tallon
283e6d8b9f Add polymorphic properties to User
This adds the ability to search for any user based on the generic
User case and be given back the specific LocalUser or RemoteUser.

This will require any code using the model to look which attributes
they are searching on and specify the specific User model they are
on if they're not on the generic User model. This will also require
new users to be created with LocalUser.
2015-07-31 15:14:41 +02:00
Jessica Tallon
aa9ba3ed80 Add LocalUser and RemoteUser and migration 2015-07-31 15:14:41 +02:00
Berker Peksag
da0be53c3b Regenerate po file after 8e832f84597bd1505f23f4abd4eef96ce12d3822 2015-07-22 11:26:08 +03:00
Berker Peksag
75b60cde01 Fix typos reported in #1102 2015-07-22 11:25:39 +03:00
Berker Peksag
b4b04522bf Regenerate po file after 8e832f84597bd1505f23f4abd4eef96ce12d3822 2015-07-22 11:24:49 +03:00
Berker Peksag
8e832f8459 Fix typos reported in #1102 2015-07-22 11:24:12 +03:00
Berker Peksag
47a2ab9cfc Return non-zero exit code if the command cannot be completed successfully.
Fixes #5084
2015-07-22 10:52:37 +03:00
Berker Peksag
287ba3a0f1 Pin mock 1.0.1 in Python 2 for now.
mock recently dropped Python 2.6 support and then
re-introduced it in its latest release (however,
it's a bit unstable right now).

I think at this point, we can be more cautious
and just use mock==1.0.1.
2015-07-22 10:20:15 +03:00
Berker Peksag
e340879d3c Pin mock 1.0.1 in Python 2 for now.
mock recently dropped Python 2.6 support and then
re-introduced it in its latest release (however,
it's a bit unstable right now).

I think at this point, we can be more cautious
and just use mock==1.0.1.
2015-07-22 10:18:00 +03:00
Berker Peksag
cc92922386 Change all unicode() calls with six.text_type().
Fixes #5329.
2015-06-25 22:24:50 +03:00
Berker Peksag
896d00fbf2 Change all unicode() calls with six.text_type().
Fixes #5329.
2015-06-25 22:24:03 +03:00
Berker Peksag
2c1b0dc3e3 Fix typo. 2015-06-25 16:05:53 +03:00
Berker Peksag
8e4b1fab36 Fix more print statements. Refs #5331 2015-06-25 16:05:39 +03:00
Sebastian Spaeth
9051f99391 Fix print statements to be python3 compatible. Refs #5331 2015-06-25 16:05:26 +03:00
Berker Peksag
a17845d42e Fix typo. 2015-06-25 16:03:30 +03:00
Berker Peksag
790f31e275 Fix more print statements. Refs #5331 2015-06-25 16:00:18 +03:00
Sebastian Spaeth
fe124c8979 Fix print statements to be python3 compatible. Refs #5331 2015-06-25 16:00:18 +03:00
Jessica Tallon
380ea91dab Merge branch Generic Foreign Key changes 2015-06-24 21:45:39 +02:00
Jessica Tallon
ddc2db746f Fix removal of ActivityIntermediatory migration
The migration had a problem where other tables still referenced the migration
as well as a typo in an earlier migration. They have both been fixed and tested
on PostgreSQL and SQLite3.

This also fixes a bug where sometimes when creating an activity it'd raise an
Exception as the object hadn't got an ID. This has been fixed globally with a
fix to the create_activity federation tool.
2015-06-24 21:43:16 +02:00
Berker Peksag
bf6ae3816f Import urlparse from six.moves to work on both Python 2 and 3. 2015-06-05 19:45:51 +03:00
Berker Peksag
39da994058 Import urlparse from six.moves to work on both Python 2 and 3. 2015-06-05 19:45:00 +03:00
Christopher Allan Webber
853b74cd81 v0.8.0! Let's get this party started! 2015-06-04 08:30:54 -05:00
Christopher Allan Webber
30dbf9f524 More things to include in MANIFEST.in 2015-06-04 00:18:47 -05:00
Christopher Allan Webber
3169dde0c4 Note that users have to install node.js :\ 2015-06-03 22:15:11 -05:00
Christopher Allan Webber
270caff0d3 More adjustments to manifest.in
- include Makefile.in
 - include configure scripts
 - graft on devtools
2015-06-03 21:32:44 -05:00
Christopher Allan Webber
095c85972b We now store mediagoblin.example.ini, not mediagoblin.ini 2015-06-03 21:26:42 -05:00
Christopher Allan Webber
3801d51ca3 Committing extracted and compiled translations 2015-06-03 21:15:44 -05:00
Christopher Allan Webber
193c509bf1 Potentially require virtualenv as a requirement for "make dist" 2015-06-03 15:08:45 -05:00
Christopher Allan Webber
90dbaefb80 "make check" should work, and "make dist" should use setup.py 2015-06-03 14:21:37 -05:00
Christopher Allan Webber
eb8a6ba0cc Right, also don't build _version.py in configure.ac 2015-06-03 13:45:57 -05:00
Christopher Allan Webber
bc84e1882a readthedocs can't read the version using autotools, so back to _version.py specifying it 2015-06-03 10:36:33 -05:00
Christopher Allan Webber
e82c7edee5 Comment on why we're not using make dist... yet 2015-06-02 10:56:30 -05:00
Christopher Allan Webber
9bb2291aac Fix link from Gitorious -> Savannah 2015-06-01 14:06:43 -05:00
Christopher Allan Webber
f5ac2b61f7 Better phrasing: "Should I Keep Open Registration Enabled?" 2015-05-30 10:34:10 -05:00
Christopher Allan Webber
3f088a3f3d "Should I enable registration?" section 2015-05-30 10:27:54 -05:00
Jessica Tallon
2d73983e8c Fix some problems with activity mixins and migrations 2015-05-26 16:48:59 +02:00
Jessica Tallon
c1d27aa019 Add a more verbose GenericForeignKey implementation 2015-05-26 16:48:59 +02:00
Jessica Tallon
d2256d0b3b Remove deprecated fields and fix activity creation in tools 2015-05-26 16:48:59 +02:00
Jessica Tallon
2e4782ef6d More fixed recommended by Elrond
This fixes the problem where GenericForeignKey could only be used with models
that are in the core of Mediagoblin, it now can be used with any model
that SQLAlchemy knows about, including plugins. This also fixes some small bugs
caused by incorrect ordering of params into a function.
2015-05-26 16:48:59 +02:00
Jessica Tallon
0b405a3ee2 Add some fixes Elrond suggested and doc strings 2015-05-26 16:48:59 +02:00
Jessica Tallon
e8b44d7c09 Add migration to remove ActivityIntermediator
Migration to drop the table and removal of it from the model as it has
now been superseeded by the GenericForeignKey field.
2015-05-26 16:48:59 +02:00
Jessica Tallon
6185a4b9e6 Fix the GenericForeignKey implementation 2015-05-26 16:48:58 +02:00
Jessica Tallon
bfe1e8ce88 Migrate Activity to using the new GenericForeignKey 2015-05-26 16:48:58 +02:00
Jessica Tallon
641ae2f1e1 Add GenericForeignKey field and reference helper model 2015-05-26 16:48:58 +02:00
Jim Campbell
b791ae973c docs: Added handling of user_dev permissions
The user_dev directory gets created when users get established
and they start uploading media. However, the permissions aren't
correct on the directory as it gets created.

As a workaround, we create the directory at this stage, and then
set the proper permissions.

See this mailing list post for more information:
http://lists.mediagoblin.org/pipermail/devel/2015-May/001201.html
2015-05-26 00:44:10 -05:00
Christopher Allan Webber
5b8e0b2a63 Use of deprecated frombytes when processing videos causes the task to fail
(Anonymous contribution, not by me)

  When transcoding a video using a recent version of PIL transcoding a
  video fails reproducible. The reason for this is an AttributeError:
  'module' object has no attribute 'frombytes'gets raised, while a
  thumbnails is being created. This is because frombytes alias was
  deprecated in favor of fromstring.
2015-05-22 14:16:45 -05:00
Christopher Allan Webber
c2382bd4ea Clarifying the "note these steps" 2015-05-22 11:28:23 -05:00