# Description: adjust module imports
# Author: Serafeim Zanikolas <serzan@hellug.gr>
# Last-Update: 2009-02-20
# Forwarded: not-needed
Index: nodebox-web/colr.py
===================================================================
--- nodebox-web.orig/colr.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/colr.py 2009-02-20 23:54:59.000000000 +0000
@@ -1,6 +1,6 @@
-from url import URLAccumulator
+from nodebox_web.web.url import URLAccumulator
from urllib import quote
-from cache import Cache
+from nodebox_web.web.cache import Cache
import simplejson
def clear_cache():
@@ -65,7 +65,7 @@
def draw(self, x, y, w=40, h=40):
- try: from web import _ctx
+ try: from nodebox_web.web.web import _ctx
except: pass
from nodebox.graphics import RGB
@@ -183,4 +183,4 @@
#size(500, 650)
#themes = search("office")
#theme = themes[0]
-#preview(theme)
\ No newline at end of file
+#preview(theme)
Index: nodebox-web/flickr.py
===================================================================
--- nodebox-web.orig/flickr.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/flickr.py 2009-02-20 23:54:59.000000000 +0000
@@ -1,8 +1,8 @@
from urllib import quote_plus
-from url import URLAccumulator
+from nodebox_web.web.url import URLAccumulator
from xml.dom.minidom import parseString
import os
-from cache import Cache
+from nodebox_web.web.cache import Cache
API_KEY = "787081027f43b0412ba41142d4540480"
Index: nodebox-web/mimetex.py
===================================================================
--- nodebox-web.orig/mimetex.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/mimetex.py 2009-02-20 23:54:59.000000000 +0000
@@ -5,9 +5,9 @@
# Copyright (c) 2007 by Tom De Smedt.
# See LICENSE.txt for details.
-from url import URLAccumulator
+from nodebox_web.web.url import URLAccumulator
from urllib import quote
-from cache import Cache
+from nodebox_web.web.cache import Cache
def clear_cache():
Cache("mimetex").clear()
@@ -33,4 +33,4 @@
return mimeTeX(eq).image
#eq = "E = hf = \frac{hc}{\lambda} \,\! "
-#image(gif(eq), 10, 10)
\ No newline at end of file
+#image(gif(eq), 10, 10)
Index: nodebox-web/morguefile.py
===================================================================
--- nodebox-web.orig/morguefile.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/morguefile.py 2009-02-20 23:54:59.000000000 +0000
@@ -9,8 +9,8 @@
from urllib import quote_plus
from xml.dom.minidom import parseString
-from url import URLAccumulator
-from cache import Cache
+from nodebox_web.web.url import URLAccumulator
+from nodebox_web.web.cache import Cache
def clear_cache():
Cache("morguefile").clear()
@@ -159,4 +159,4 @@
#img = images[0]
#img.download()
-#image(img.path, 0, 0)
\ No newline at end of file
+#image(img.path, 0, 0)
Index: nodebox-web/__init__.py
===================================================================
--- nodebox-web.orig/__init__.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/__init__.py 2009-02-20 23:54:59.000000000 +0000
@@ -34,7 +34,6 @@
import html
import page
import simplejson
-import json # wrapper for simplejson, backward compatibility.
packages = [
"yahoo", "google",
@@ -97,4 +96,4 @@
# url.parse() has a new .filename attribute (equals .page).
# Handy web.save() command downloads data and saves it to a given path.
# hex_to_rgb() improvement for hex strings shorter than 6 characters.
-# Upgraded to BeautifulSoup 3.0.7a
\ No newline at end of file
+# Upgraded to BeautifulSoup 3.0.7a
Index: nodebox-web/newsfeed.py
===================================================================
--- nodebox-web.orig/newsfeed.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/newsfeed.py 2009-02-20 23:55:13.000000000 +0000
@@ -8,7 +8,7 @@
import os
-from feedparser import feedparser
+import feedparser
from url import URLAccumulator
from html import strip_tags
@@ -159,4 +148,4 @@
print "Author:", item.author
print ">>", item.author_detail.name
print ">>", item.author_detail.email
-"""
\ No newline at end of file
+"""
Index: nodebox-web/urbandictionary.py
===================================================================
--- nodebox-web.orig/urbandictionary.py 2009-02-20 23:54:55.000000000 +0000
+++ nodebox-web/urbandictionary.py 2009-02-20 23:54:59.000000000 +0000
@@ -1,5 +1,5 @@
import url
-import soap
+import SOAPpy as soap
import re
from cache import Cache
import pickle
@@ -74,4 +74,4 @@
self.append(ubd)
def search(q, cached=True):
- return UrbanDictionary(q, cached)
\ No newline at end of file
+ return UrbanDictionary(q, cached)