# Path: config/setting.py



from base import base
from config.setting import blankrender
import web
import urllib
# /bookmarklet

class bookmarklet(base):
    def GET(self):
        super(bookmarklet,self).GET()
        input = web.input()
        url = input["url"]
        title = urllib.unquote(input["title"])
        data = {"url":url,"title":title}
        if len(url) > 36:
            shorturl = url[:36]+"..."
        else:
            shorturl = url


# Path: config/setting.py



# Path: controller/page/bookmarklet.py
from base import base
from config.setting import blankrender
import web
import urllib

# /bookmarklet

class bookmarklet(base):
    def GET(self):
        super(bookmarklet,self).GET()
        input = web.input()
        url = input["url"]
        title = urllib.unquote(input["title"])
        data = {"url":url,"title":title}
        if len(url) > 36:
            shorturl = url[:36]+"..."
        else:
            shorturl = url


        data["shorturl"] = shorturl