So even if the user is member of "LP beta testers" the stable version of lp can be used with py-lp-bugs.
This would allow the scripts be more independent from the (frequent) changes to edge
Please test this, if this works this should land into .main as soon as possible.
I added a branch where the user can choose wether he/she wants to use edge or not.
Example: connector as Connector
In [1]: import launchpadbugs.
In [2]: Bug = Connector. ConnectBug( method= "html")
In [3]: b = Bug(123456)
In [4]: b.url /bugs.launchpad .net/ubuntu/ +source/ xine-lib/ +bug/123456'
Out[4]: 'https:/
In [5]: from launchpadbugs. lpconstants import HTTPCONNECTION
In [6]: Bug.set_ connection_ mode(HTTPCONNEC TION.MODE. EDGE)
In [7]: b = Bug(123456)
In [8]: b.url /bugs.edge. launchpad. net/ubuntu/ +source/ xine-lib/ +bug/123456'
Out[8]: 'https:/
In [9]: Bug.set_ connection_ mode(HTTPCONNEC TION.MODE. STABLE)
In [10]: b = Bug(url="https:/ /bugs.edge. launchpad. net/ubuntu/ +source/ xine-lib/ +bug/123456")
In [11]: b.url /bugs.launchpad .net/ubuntu/ +source/ xine-lib/ +bug/123456'
Out[11]: 'https:/
In [12]: Bug.authentication = "/home/ markus/ .gnome2/ epiphany/ mozilla/ epiphany/ cookies. txt"
In [13]: Bug.set_ connection_ mode(HTTPCONNEC TION.MODE. DEFAULT)
In [14]: b = Bug(123456)
In [15]: b.url /bugs.edge. launchpad. net/ubuntu/ +source/ xine-lib/ +bug/123456'
Out[15]: 'https:/
In [16]: Bug.set_ connection_ mode(HTTPCONNEC TION.MODE. STABLE)
In [17]: b = Bug(123456)
In [18]: b.url /bugs.launchpad .net/ubuntu/ +source/ xine-lib/ +bug/123456'
Out[18]: 'https:/
In [19]:
So even if the user is member of "LP beta testers" the stable version of lp can be used with py-lp-bugs.
This would allow the scripts be more independent from the (frequent) changes to edge
Please test this, if this works this should land into .main as soon as possible.
Markus