From 876673902e5ea8d5336e144cad18d23fda613e94 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 19 Jul 2011 00:36:50 +0200 Subject: cleanup --- module/Api.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'module/Api.py') diff --git a/module/Api.py b/module/Api.py index 648174a1f..be72ee359 100644 --- a/module/Api.py +++ b/module/Api.py @@ -24,10 +24,11 @@ from time import time from remote.thriftbackend.thriftgen.pyload.ttypes import * from remote.thriftbackend.thriftgen.pyload.Pyload import Iface -from module.PyFile import PyFile -from module.database.UserDatabase import ROLE -from module.utils import freeSpace, compare_time -from module.common.packagetools import parseNames +from PyFile import PyFile +from database.UserDatabase import ROLE +from utils import freeSpace, compare_time +from common.packagetools import parseNames +from network.RequestFactory import getURL class Api(Iface): @@ -265,8 +266,13 @@ class Api(Iface): return pid def parseURLs(self, html): - #TODO implement - pass + html = getURL(html) + + # TODO parse + urls = [] + + return self.checkURLs(urls) + def checkURLs(self, urls): data = self.core.pluginManager.parseUrls(urls) @@ -318,7 +324,6 @@ class Api(Iface): return OnlineCheck(rid, result) - def generatePackages(self, links): """ Parses links, generates packages names only from urls -- cgit v1.2.3