← Back to team overview

project-leonov team mailing list archive

[Bug 243767] Re: unique user agent

 

With revision 143 of the intrepid.merge branch there are two
possibilities to add a username to the user-agent header:

1.) using a global config-file:
      echo myusername > ~/.python-launchpad-bugs.conf
   this will generate a user-agent header like:
      python-launchpad-bugs/0.2.33 (Python-urllib2/2.5) (user: myusername)

2.) setting the username part via HTTPConnection.set_username():
     >>> from launchpadbugs.connector import ConnectBug
     >>> Bug = ConnectBug()
     >>> Bug.connection.set_username("myusername")
   this will result in the same user-agen header as in 1.). Same with BugList.

I suggest going with the second method.

Markus

-- 
unique user agent
https://bugs.launchpad.net/bugs/243767
You received this bug notification because you are a member of The
Leonov Project Team, which is subscribed to Leonov.

Status in Leonov - A Launchpad Desktop Client: Confirmed

Bug description:
I'm not certain if the this doesn't exit but if it doesn't then it should!  There have been some issues in the past with bughelper and python-launchpad-bug users causing some excessive load on Launchpad.  A couple of things we have done is implement unique useragents for each application and there is now or will be soon the possibility to identify yourself in the user agent string.  This will allow Launchpad admins to quickly contact us in the event there is a problem.  I'd appreciate it if Leonov had at least a unique useragent.  Thanks!



References