Scratch.py -- hyper-fast mini-webapp production, in Python
speakeasy.org
speakeasy.org
2) "if I face a problem with it, will the author help me debug it for fix it?"
3) "if the last changes to this software were made X years ago, how does it apply the number of industry practices and techniques that have been developed since then?"
def greetings(ladies: int, gentlemen: (int, 80, 40)): passEncoding presentation code into the controller layer seems like a bad idea in my mind. Besides being ugly to look at.
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