This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
james@potato-linux ~/dev/wz-tut-1 $ python manage.py shell | |
Interactive Werkzeug Shell | |
>>> from shorty.models import session, URL | |
>>> URL( "http://www.google.com" ) | |
Traceback (most recent call last): | |
File "<console>", line 1, in <module> | |
File "<string>", line 4, in __init__ | |
File "/usr/local/lib/python2.6/dist-packages/sqlalchemy/orm/state.py", line 100, in initialize_instance | |
return manager.events.original_init(*mixed[1:], **kwargs) | |
File "/home/james/dev/wz-tut-1/shorty/models.py", line 23, in __init__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def render_template(template, **context): | |
mylookup = TemplateLookup(directories=[TEMPLATE_PATH]) | |
mytemplate = mylookup.get_template( template ) | |
return Response( mytemplate.render_unicode( **context ) ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file:///home/james/Music/A Hawk And A Hacksaw/Délivrance/10. A Hawk And A Hacksaw - Lassú.mp3 Backend error. 'ascii' codec can't decode byte 0xc3 in position 48: ordinal not in range(128) | |
Traceback (most recent call last): | |
File "/home/james/Dropbox/Development/porcupine/porcupine/scanner.py", line 84, in add_track | |
self.backend.add( track ) | |
File "/home/james/Dropbox/Development/porcupine/porcupine/backend.py", line 16, in add | |
track.store( self.db ) | |
File "/usr/lib/pymodules/python2.6/couchdb/schema.py", line 375, in store | |
db[self.id] = self._data | |
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 327, in __setitem__ | |
resp, data = self.resource.put(id, content=content) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = create_connection( ( self.server.host, self.server.port ) ) | |
s.sendall( "GET / HTTP/1.0" ) | |
r = s.recv( 64 ) | |
s.close() | |
print r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /tracks/file:///home/james/Music/Noisia/Vision Recordings/02. Noisia - Omissions.mp3 HTTP/1.0 | |
Content-Length: 289 | |
Content-Type: application/json | |
{"ALBUM": "Vision Recordings", "TITLE": "Omissions", "_rev": false, "ARTIST": "Noisia", "ALBUM ARTIST": "Noisia", "TOTALTRACKS": "2", "YEAR": "2006", "GENRE": "Drum & Bass / Jungle", "TRACKNUMBER": "2", "_id": "file:///home/james/Music/Noisia/Vision Recordings/02. Noisia - Omissions.mp3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /tracks/%2Fhome%2Fjames%2FMusic%2FNoisia%2FVision+Recordings%2F02.+Noisia+-+Omissions.mp3 HTTP/1.0 | |
Content-Length: 282 | |
Content-Type: application/json | |
{"ALBUM": "Vision Recordings", "TITLE": "Omissions", "_rev": false, "ARTIST": "Noisia", "ALBUM ARTIST": "Noisia", "TOTALTRACKS": "2", "YEAR": "2006", "GENRE": "Drum & Bass / Jungle", "TRACKNUMBER": "2", "_id": "/home/james/Music/Noisia/Vision Recordings/02. Noisia - Omissions.mp3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/lib/python2.6/dist-packages/gevent/greenlet.py", line 388, in run | |
result = self._run(*self.args, **self.kwargs) | |
File "/home/james/Dropbox/Development/porcupine/porcupine/couchdb/client.py", line 32, in save | |
_id = urllib.quote_plus( document._id ) | |
File "/usr/lib/python2.6/urllib.py", line 1228, in quote_plus | |
s = quote(s, safe + ' ') | |
File "/usr/lib/python2.6/urllib.py", line 1222, in quote | |
res = map(safe_map.__getitem__, s) | |
KeyError: u'\xe9' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "/home/james/Music/1200 Micrograms/The Time Machine/06. 1200 Micrograms - Glories Of Greece.mp3", | |
"_rev": "1-ebdf37df1f6d913eec0f04bdcab9d571", | |
"ALBUM": "The Time Machine", | |
"TITLE": "Glories Of Greece", | |
"ARTIST": "1200 Micrograms", | |
"TAGS": "Psy-Trance", | |
"TOTALTRACKS": "9", | |
"YEAR": "2004", | |
"GENRE": "Psytrance / Goa", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t = ( "F", | |
( "B", | |
( "A" ), | |
( "D", | |
( "C", | |
( "Z" ), | |
( "M" ) | |
), | |
( "E" ) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> print sys.path | |
['', '/usr/local/lib/python2.6/dist-packages/Jinja2-2.4-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/greenlet-0.3.1-py2.6-linux-i686.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages'] |