4597 Commits

Author SHA1 Message Date
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
Christopher Allan Webber
6adee95a25 No need to run git submodule init/update, run by bootstrap.sh 2015-05-22 11:15:00 -05:00
Christopher Allan Webber
11199c3161 Switch git remote url 2015-05-22 11:11:42 -05:00
Christopher Allan Webber
4baccdf89e Wrong version number. Stupid copy-pasta! 2015-05-22 11:08:45 -05:00
Christopher Allan Webber
a87db7f547 0.8.0 release notes
Theoretically correct... I need to verify that the steps work as
expected
2015-05-22 10:53:43 -05:00
Christopher Allan Webber
b9db67d4c7 Updating AUTHORS for 0.8.0 2015-05-22 10:04:41 -05:00
Jim Campbell
52628d64a4 docs: Set paster service to start before celery
For some reason, celery wouldn't start if I started it first.
Setting paster to start first. Celery starts just fine on initial run
after paster is running.
2015-05-19 01:54:50 -05:00
Jim Campbell
4c89287c3d docs: Updated permissions. Tweaked install details
Added nginx to installation packages. We say that our install uses
nginx, so users should skip nginx if they want to use apache. Also,
our group permissions depend on a web server being installed.

Changed install directory for mediagoblin acct to /var/lib/mediagoblin
It works better if we need to back up data.

Assigned mediagoblin user to the same group as the web server. This
is needed so that the server can access uploaded media.

Created mediagoblin group for non-web-server things such as logs.
2015-05-19 01:50:07 -05:00
Jim Campbell
80fe8e4c39 docs: Removed systemcl enable/start. Already issued.
Debian-based platforms start the postgres server by default after
installation. For RPM-based distros, we've already issued these
commands prior to configuring the postgres server.
2015-05-18 21:19:42 -05:00
Jim Campbell
a03920751f docs: Need to start postgres on rpm distros
Need to enable / start postgres database on rpm-based distros
before you create the postgres mediagoblin user and database.
If you don't start the database server, you can't create a
database user or database.
2015-05-18 21:12:37 -05:00
Jim Campbell
041c93634b docs: Formatting tweaks to production-deployments.rst
Corrected typos and fixed rst formatting issues.
2015-05-15 18:38:31 -05:00
Christopher Allan Webber
ae69f816f8 Switch from "cp --no-clobber" to "cp -n" for bsd compatibility 2015-05-13 22:43:35 -05:00
Jim Campbell
7d74b404ac docs: Added systemd info. Reworked init script info.
Added tested systemd service files. Modified the structure of the
section about init scripts.
2015-05-11 22:38:06 -05:00
Jim Campbell
cd7af7899f docs: Clean up nginx instructions
Made it more clear what commands to use if you're on deb/rpm-based system.

Added a note that shows the user how to test their nginx configuration.
2015-05-11 21:16:30 -05:00
Jim Campbell
3948e44c9a docs: Added 'sudo' to cmd. Made 'exit' from postgres acct more clear.
Added a missing reference to 'sudo' in a command. Made the exit from
the postgres account more clear to reduce the chance for user error.
2015-05-11 20:41:01 -05:00
Jim Campbell
7bba6d2e9c docs: Removed chkconfig cmd. Made 'exit' more explicit.
The chkconfig command is only needed on CentOS 6, which isn't really
a supported multimedia platform. CentOS 7 and Fedora 21+
wouldn't require this command.

Also made the "exit" command (used after setting up the postgres
mediagoblin account and database) more explicit. This will help prevent
user errors for users who may skim through the documentation.
2015-05-11 20:15:08 -05:00
Jim Campbell
ec255f63be docs: Copy paste.ini to paste_local.ini
Some scripts on the internet have referenced paste_local.ini, so
it is safer to have a copy on the filesystem by default, even if
the user doesn't need to change any of the values for a regular
setup.
2015-05-11 19:00:40 -05:00
Jim Campbell
94a5d6a81d docs: Typo fix. Fixed repated reference to gstreamer1.0-libav 2015-05-11 19:00:40 -05:00
Jim Campbell
8af91ceae7 docs: Updated gstreamer audio media type requirements to gst-1.0
Previous media type docs referenced gstreamer0.10, but we've updated
to gstreamer1.0.

Also, Debian ships libav instead of ffmpeg now. Updated docs
accordingly

Finally, simplified the install instructions to two commands instead
of four commands.
2015-05-11 19:00:40 -05:00
Christopher Allan Webber
8d59cd1f98 Note on what --without-virtualenv does 2015-04-28 14:14:44 -05:00
Christopher Allan Webber
fd4ddeb14e #5314 Prevent ZeroDivisionError in exif.py 2015-04-27 17:26:59 -05:00
Christopher Allan Webber
ab62a7c0d2 Paste 2.0 breaking wsgi 2015-04-24 21:10:25 -05:00
Christopher Allan Webber
16cf193d9b TinyMCE plugin loading should NOT be here.
This might break the blog plugin, but it's kind of broken already :\
2015-04-23 14:10:47 -05:00
Boris Bobrov
3510f94811 Move check that metadata exists earlier
Because of gstreamer-1.0 we need to migrate from old format of storing
metadata to new one. It seems that there are cases when original
metadata is empty for some reason.

The patch adds an earlier check that original metadata exists, skipping
everything is it doesn't.

Closes bug 5071
2015-04-23 11:48:23 -05:00
Christopher Allan Webber
a1bde56fd2 #5074: Added set -e to bootstrap.sh
This should make it so that if any of the commands in the script fail,
the whole script fails.
2015-04-23 11:36:55 -05:00
Boris Bobrov
364253857b fixed 5068 2015-04-22 17:20:31 -05:00
ayleph
dcd8c8348a Redirect which stderr to /dev/null 2015-04-22 17:18:35 -05:00
Jim Campbell
ef2642f7bb docs: Require nodejs-legacy on Debian-based systems. Remove un-needed text.
Per this announcement [0], Debian is using 'nodejs-legacy' as a
compatability package for what they used to call 'node'.
- Fixes bug 5080 [1].

Remove note about warning that users would no longer see.

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614907#108
[1] https://issues.mediagoblin.org/ticket/5080
2015-04-19 12:39:05 -05:00
Jim Campbell
3252f73836 setup.py: Updated version requirement for 'requests'. Fixes 5313.
If we don't speficify a version for 'requests', Debian installs
v2.4.x, but there is an issue with urllib3 and pyopenssl in versions
prior to 2.6.0. This issue caused our installs to fail.

Updating our requirement to 2.6.0 or greater resolves this issue
and allows our installation processes to proceed normally.
`
2015-04-19 12:26:11 -05:00
Jim Campbell
44db13fa84 docs: Updated deployment docs to use sudo. Other various fixes.
- Use sudo instead of root user but give info on how to configure sudo.
- Changed docs to reference Jessie as the stable version of Debian
- Corrected the command to create the 'mediagoblin' system account
  - Fixes https://issues.mediagoblin.org/ticket/5083
2015-04-19 12:01:10 -05:00
Christopher Allan Webber
a35b7c7fb3 Merge branch 'stable'
Conflicts:
	docs/source/siteadmin/deploying.rst
	docs/source/siteadmin/relnotes.rst
2015-04-17 17:09:06 -05:00
Christopher Allan Webber
9fa1e602b4 Noting the possibility that users may need to update origin to Savannah 2015-04-17 17:00:54 -05:00
Boris Bobrov
4fd98b70d2 change git address to savannah's git 2015-04-17 16:56:18 -05:00
Christopher Allan Webber
3ae2371242 Don't forget to stop the processes, too! 2015-04-17 16:31:56 -05:00
Christopher Allan Webber
50c6dc2bf1 Always be backing up 2015-04-17 16:31:56 -05:00
Boris Bobrov
f6d1b29f82 fix incorrect syntax in docs (bug 5310) 2015-04-11 01:02:08 +03:00
Christopher Allan Webber
94af358779 Whoops, fix --without-virtualenv's helptext 2015-04-03 15:46:10 -05:00
ayleph
b0e3ba4c68 Use virtualenv set by configure 2015-04-03 14:58:42 -05:00
Christopher Allan Webber
ad5a20aa4f Remove the very strange "pybabel" entry point I added in 2011
Why did I do that, past self?
2015-04-03 06:21:35 -05:00
Jim Campbell
9a1ba0e87f docs: Removed note about installing from master. Clarified root/nonroot usage.
There was a note informing the user that they should be aware that we
encourage them to install from the *master* branch, but we no longer
do that. If they follow our deployment docs, they will pull in &
use the *stable* branch.

Also clarified some root / non-root system usage by either specifying
a leading *hash* symbol to indicate a root-based command, or a
dollar sign to indicate a non-root command.
2015-03-30 23:47:49 -05:00
Jim Campbell
c3075e9178 docs: Updated instructions re: Postgresql setup
Added information about needed packages for RPM-based systems,
and simplified instructions to rely on the root account rather than
sudo-based instructions.

If a user has sudo access, they can easily add "sudo" to the needed
commands.

Also added information about enabling postgres to start on boot
and how to start it for the current session.
2015-03-30 23:40:01 -05:00