Closed strk closed 9 years ago
It would be also useful to save session cookies, to avoid more than a single GET on every single command
@tamentis don't you like this approach ? I've started using cartman with trac.osgeo.org and I'm often slowed down by these upfront requests for no reason...
I don't like adding a login()
call in get()
. Ideally I would prefer to do two things:
Some commands would still benefit from controlling when login happens. See the 'comment' command for example: immediately starting the editor and postponing login is a better experience
Agreed, then for the purpose of that PR, I would rather see self.login()
in the right places for specific commands than a parameter to .get()
My assumption was that "the right place" is really whenever a "get" or a "post" are needed.
It can be some "get" which do not need authentication (like the one to send login) thus the added parameter.
It's much less intrusive that way.
I'd like to keep get()
as a wrapper around the HTTP GET
method which implies a single query. I also don't like inverse flags like nologin
and even though calling self.login()
is more intrusive, it is a more explicit representation of what is actually going on to make that command work.
inverse flag is gone, the other arguments still hold :)
Alright, now changed to explicit call. See if you like it now.
Awesome, thank you :)
Greately speeds up commands like "help"