joerussbowman / AsyncMongo-Sessions

A sessions library for Tornado using AsyncMongo
30 stars 2 forks source link

Not work with args in function #4

Open karpitsky opened 12 years ago

karpitsky commented 12 years ago

Hello,

I use in url custom args, example

(r"/(\w+)", MainHandler)

class MainHandler:
    @asyncmongosession
    @gen.engine
    def get(self, who):
        print who

asyncmongo session decorator not send this args to function

joerussbowman commented 12 years ago

does it work without the session?

karpitsky commented 12 years ago

Yes, work,

this construction is default use case tornado

joerussbowman commented 12 years ago

I've never used that method before, I assume it's for working with pretty urls? I'm sure it's a case of me not passing arguments back down, but not 100% sure. If I can get some time to look at it I will, but my time to do side work is pretty much 0 right now as I'm in the middle of a remodeling project at home.