[{"pk": 4, "model": "sh.shclasses", "fields": {"comment": "List Applications", "lang": "python", "name": "ListApps", "field": "Application", "parents": [], "deps": [], "public": false}}, {"pk": 3, "model": "sh.shmethods", "fields": {"comment": "", "body": "\r\nhtmlopen = r' Lazy Landscape Shell '\r\nhtmlClose = ''\r\nstyle = r' '\r\ntitle = r'

Applications

'\r\n\r\nret = [htmlopen, style, title]\r\n\r\n\r\nfor c in ShClasses.objects.all():\r\n if c.lang == 'python':\r\n hasexec = False\r\n for m in c.methods.all():\r\n if m.name == 'app':\r\n hasexec = True\r\n break\r\n \r\n exec_warning = ''\r\n if not hasexec:\r\n exec_warning = '
This app lacks an \"app\" method.
'\r\n \r\n ret += r'
%s
%s
' % (c.name, c.name, c.comment, exec_warning)\r\n \r\nret += '
'\r\nret += htmlClose\r\n\r\nresponse.write(''.join(ret))", "args": "", "name": "app", "cls": 4}}]