Re:Scratch.py -- hyper-fast mini-webapp production, in Python
by rogeriopvl on Friday August 28, 2009 @04:11AM
(#790999)
Tried it in OS X, and the web server crashed on first request. I'll try it later on linux. Either way, it's an interesting prototyping tool.
[ Parent
| on HN ]
Re:Scratch.py -- hyper-fast mini-webapp production, in Python
by cturner on Friday August 28, 2009 @05:37AM
(#791082)
Happens on osx, linux, win32 for me.
Quick workaround (this is the first time I've ever sent out a patch. heh)
--- scratch.py.original 2009-08-28 10:49:38.000000000 +0100
+++ scratch.py 2009-08-28 10:42:17.000000000 +0100
@@ -213,10 +213,13 @@
def one_line_description(self):
"""DOC"""
- if len(self.mod.__doc__) > 0:
- return self.mod.__doc__.splitlines()[0]
- else:
- return "(no description)"
+ try:
+ if len(self.mod.__doc__) > 0:
+ return self.mod.__doc__.splitlines()[0]
+ else:
+ return "(no description)"
+ except:
+ return "(no description)"
def long_description(self):
"""DOC"""
Save that to a file called scratch.patch (make sure there's no indentation at the beginning of lines) in the dir. Then run this: patch < ../scratch.patch
Re:Scratch.py -- hyper-fast mini-webapp production, in Python
by LionKimbro on Saturday August 29, 2009 @02:22AM
(#792871)
OK; I've applied the fix to the master. Thank you!