I download newest version web2py and download this appliance from
https://github.com/mdipierro/web2py-appliances/tree/master/UrlShortening
But when i run, i can't shorten URL. (No input form?)

And when I click Bookmark button:
<type 'exceptions.KeyError'> '127.0.0.1:8000'

Traceback (most recent call last):
  File "/home/minhcd/My_Python/web2py/gluon/restricted.py", line 205,
in restricted
    exec ccode in environment
  File 
"/home/minhcd/My_Python/web2py/applications/UrlShortening/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/UrlShortening/controllers/default.py>,
line 32, in <module>
  File "/home/minhcd/My_Python/web2py/gluon/globals.py", line 175, in <lambda>
    self._caller = lambda f: f()
  File "/home/minhcd/My_Python/web2py/gluon/tools.py", line 2665, in f
    return action(*a, **b)
  File 
"/home/minhcd/My_Python/web2py/applications/UrlShortening/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/UrlShortening/controllers/default.py>,
line 11, in bookmark
    rating = cache.ram(link.url,lambda:wotrate(link.url),3600)
  File "/home/minhcd/My_Python/web2py/gluon/cache.py", line 194, in __call__
    value = f()
  File 
"/home/minhcd/My_Python/web2py/applications/UrlShortening/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/UrlShortening/controllers/default.py>,
line 11, in <lambda>
    rating = cache.ram(link.url,lambda:wotrate(link.url),3600)
  File 
"/home/minhcd/My_Python/web2py/applications/UrlShortening/models/myutils.py"
<http://127.0.0.1:8000/admin/default/edit/UrlShortening/models/myutils.py>,
line 13, in wotrate
    return loads(urlopen(wot % url).read())[url]
KeyError: '127.0.0.1:8000'


Can you help me pls, thanks!

Reply via email to