【发布时间】:2010-09-10 18:04:40
【问题描述】:
我正在使用 pylons,我的控制器操作是:
class UserController(BaseController):
def create(self):
name = request.POST['name']
email = request.POST['email']
password = request.POST['password']
...
但我发现在涡轮齿轮中,我可以这样做:
class UserController:
def create(self, name, email, password):
...
如何在 pylons 中做同样的事情?
更新
我在谷歌搜索过,并在其他一些论坛中询问过,但仍然没有得到答案。没有人知道(或感兴趣)这样的问题?
【问题讨论】:
-
如何在 Turbogears 中设置路线? Turbogears 是否使用与 Pylons 相同的路由模块?
-
在Turbogears中好像不需要配置路由,Turbogears在后面做了这个
标签: controller pylons turbogears