update the help and contact links on header/ footer #1651
open help page in a new tab
Merge pull request #1652 from pculture/gh-1651

#1651 - update the help and contact links
Remove the gauge third party accounts task

We no longer use that since we've moved on to externalsites.
Don't try to import accountlinker accounts if channel_id is not set

When we have run the command to lookup the channel ids, it fails for
many of the rows in our database.  I believe this is because the user
has either revoked access to amara, deleted/altered their account, or
done something similar.  We should just forget about the account and
ask the user to re-link it if they want to.
Fixes for creating youtube feeds

When creating them for users, correctly set the user field

Handle an existing feed for the same URL:
  - If the feed is owned by the same user/team as the youtube account,
    then link it to the account
  - If it's owned by a different user/team, then throw an error
    (if this happens in practice we'll need to handle it).
Schedule youtube feed updates immediately when linking an account
added entry script to help in launching
Updated youtube syncing docs
Move the documentation requirements to their own files

In order to make things work on readthedocs, I think we need to point
them to a requirements file so that sphinxcontrib-httpdomain gets
installed.  Making a documentation-specific requirements file seems
like a good way to do this.
Fix sections in the syncing and importing docs
Merge pull request #1659 from pculture/youtube-tweaks

Youtube tweaks
Add allow_sync_teams field to YouTubeAccount

This is based off a pending change where we will only sync to team
YouTube accounts for video's owned by that team.  One issue with that
system is when one group of users controls multiple teams (for example
a prep team and a delivery team).  This field will allow the admins to
add those additional teams to sync.

Updated the docs to reflect the new system (which hasn't been totally
implemented yet).

Updated the migrations a bit:
  - Added the allowed_sync_teams field to
    0006_create_youtube_account_table
  - Updated a couple migrations to fix the unique_together constraint
    on type/owner id for Kaltura.  This is just a change to the
    database schema that is stored for South.  We were always actually
    creating that constraint.  For some reason the south schema was
    correct for Brightcove, but not Kaltura.

Changed models.py so that the unique_together constraints are in the
BrightcoveAccount/KalturaAccount classes.  Before they were in the
base class, but that wasn't working correctly.  Not sure if it was a
bug in our code or south, but the direct way fixes the issue.
Rename "allow_sync_teams" to just "sync_teams"

I like the new name better and we're already going to have to mess
with staging's DB so it doesn't add any additional work.
Added method to set sync_teams
Renamed lookup_account to get_sync_account

I like having a name that specifies exactly what we're looking up,
especially since I'm going to add more rules for youtube accounts.
Reworked get_sync_videos logic for youtube videos

The new logic matches the old logic better.

Refactored the tests a bit.  Put the tests against is_for_video_url()
with the tests for get_sync_account().  These methods should use the
same logic, so testing them both makes sense.
Renamed "is_for_video_url" -> "should_sync_video_url"

Like with get_sync_account(), I think it makes sense to have the
method name indicate that it's checking the syncing logic.
Refactor for the integration forms/formsets

Moved the logic from the AccountFormSet class to the AccountForm
classes.  This allows for a greater variety of forms.  Before there
were a lot of requirements for the form classes, now basically
anything should work.  I'd like to add some forms for youtube accounts
and they weren't going to fit with the old system.

Started using the nose assertion functions.  I like they PEP-8 syntax
and not having to type "self.".
Move youtube account add/remove logic into forms

These forms are pretty trivial at this point, but this allows us to
add more complexity for youtube accounts.  I want to add a field to
update sync_teams and this seems like the best way to do it.

Added ability for account forms to redirect to other pages (needed for
the AddYouTubeAccountForm).  Updated AccountFormset a bit.

Added field to render a button.

Removed the views tests.  We were only testing the redirect logic and
that's now tested by the forms tests.