Cleanup all imports

* Should fix problems with needing to do inline imports
This commit is contained in:
JonnyWong16 2016-05-07 11:26:00 -07:00
parent 600bca7e8b
commit f4e719749a
40 changed files with 256 additions and 145 deletions

View file

@ -1,7 +1,7 @@
<%
import plexpy
from plexpy import version
from plexpy.helpers import anon_url
import plexpy
from plexpy import version
from plexpy.helpers import anon_url
%>
<!doctype html>

View file

@ -36,9 +36,10 @@ DOCUMENTATION :: END
</%doc>
<%!
from plexpy import common
import re
from plexpy import common
# Get audio codec file
def af(codec):
for pattern, file in common.MEDIA_FLAGS_AUDIO.iteritems():

View file

@ -1,6 +1,6 @@
<%inherit file="base.html"/>
<%!
from plexpy import helpers
from plexpy import helpers
%>
<%def name="headIncludes()">

View file

@ -1,5 +1,5 @@
<%!
from plexpy import helpers
from plexpy import helpers
%>
% if data:
<div class="modal-dialog" role="document">

View file

@ -1,5 +1,5 @@
<%!
from plexpy import helpers
from plexpy import helpers
%>
% if data:
<div class="modal-dialog" role="document">

View file

@ -10,11 +10,11 @@ DOCUMENTATION :: END
</%doc>
<%!
import arrow
import plexpy
from plexpy import common
import arrow
import plexpy
from plexpy import common
scheduled_jobs = [j.id for j in plexpy.SCHED.get_jobs()]
scheduled_jobs = [j.id for j in plexpy.SCHED.get_jobs()]
%>
<table class="config-scheduler-table small-muted">

View file

@ -1,12 +1,13 @@
<%inherit file="base.html"/>
<%!
import os
import sys
import plexpy
from plexpy import notifiers, common, versioncheck
from plexpy.helpers import anon_url
import os
import sys
available_notification_agents = sorted(notifiers.available_notification_agents(), key=lambda k: k['name'])
import plexpy
from plexpy import common, notifiers, versioncheck
from plexpy.helpers import anon_url
available_notification_agents = sorted(notifiers.available_notification_agents(), key=lambda k: k['name'])
%>
<%def name="headIncludes()">
</%def>

View file

@ -26,7 +26,7 @@ DOCUMENTATION :: END
<%inherit file="base.html"/>
<%!
from plexpy import helpers
from plexpy import helpers
%>
<%def name="headIncludes()">

View file

@ -1,6 +1,6 @@
<%
import plexpy
from plexpy import common
import plexpy
from plexpy import common
%>
<!doctype html>