[Grok-dev] using **kw in a View's Update?

Christian Klinger cklinger at novareto.de
Tue Feb 3 06:05:50 EST 2009


Jeroen Michiel schrieb:
> I'm trying to make a view that can handle any request data fed to it by
> declaring the update function as:
>     def update(self, **kw):
>         self.params = kw
> 
> However, it seems params is always empty???

Hi Jeroen,

maybe this helps

def update(self):
     self.params = self.request.get('form',{})

Christian



More information about the Grok-dev mailing list