From 8e101c92f930422f0ec97d8d15511732732a9f37 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Tue, 16 Mar 2010 23:17:46 +0100 Subject: Disconnected the property creation function The function used to create a new property has been changed to be a callback function, so that later on a UI might use a dialog. --- download.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'download.py') diff --git a/download.py b/download.py index 2405805..05a5328 100644 --- a/download.py +++ b/download.py @@ -25,7 +25,8 @@ import htmlparser #import progressbar import config -savedir = config.Configuration().get_download_location() +conf = config.Configuration() +savedir = conf.get_download_location() if not os.path.exists(savedir): os.makedirs(savedir) @@ -127,7 +128,7 @@ class Downloader(object): if __name__ == "__main__": # Get a file-like object for the 4chan.org w/imgboard - base_url = "http://boards.4chan.org/" + config.Configuration().get_category() + "/" + base_url = "http://boards.4chan.org/" + conf.get_category() + "/" # Get the hyperlinks. t = get_thread_links(base_url) -- cgit v1.2.3-54-g00ecf