2006-11-08から1日間の記事一覧

テンプレートの動的な選択

@expose() def foo(self): ... if s==1: template = '.templates.success' else: template = '.templates.failure' return dict(tg_template=template,....) @expose(template="templates.ok") def foo(self): if (not s): return(tg_template="templates.no…

TurboEntity

http://turboentity.ematia.de/ "I suggest you to take TurboEntity a try. TurboEntity is build upon SA and provide SO's simplicity. It's pretty cool to save lots of coding effort of plain SA."