def __init__(self, session, request): WebScreen.__init__(self, session, request) from Components.MovieList import MovieList from Tools.Directories import resolveFilename, SCOPE_HDD from WebComponents.Sources.Movie import Movie movielist = MovieList(None) self["MovieList"] = Movie(session, movielist, func=Movie.LIST) self["MovieFileDel"] = Movie(session, movielist, func=Movie.DEL) self["MovieFileMove"] = Movie(session, movielist, func=Movie.MOVE)
def __init__(self, session, request): WebScreen.__init__(self, session, request) from Components.MovieList import MovieList from Tools.Directories import resolveFilename, SCOPE_HDD from WebComponents.Sources.Movie import Movie movielist = MovieList( eServiceReference("2:0:1:0:0:0:0:0:0:0:" + resolveFilename(SCOPE_HDD))) self["MovieList"] = Movie(session, movielist, func=Movie.LIST) self["MovieFileDel"] = Movie(session, movielist, func=Movie.DEL) self["localip"] = RequestData(request, what=RequestData.HOST)