mementum / bfpy

Automatically exported from code.google.com/p/bfpy
Other
1 stars 0 forks source link

Share Login credentials if a BfClient or BfApi instance is cloned before login #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. This will avoid to wait until the first login to clone the objects
2. Making it easier to prepare threads for different actions

Before the following was needed

import bfpy
bf = bfpy.BfClient()

bf1 = bf.clone()
bf.login(username='xx', password='yy')
bf2 = bf.clone

print bf2.username
>> 'xx'
print bf1.username
>> Error (exception thrown because bf1 doesn't have a username, because it was 
cloned before login)

With this feature:

import bfpy
bf = bfpy.BfClient(shareLogin=True)

bf1 = bf.clone()
bf.login(username='xx', password='yy')
bf2 = bf.clone

print bf2.username
>> 'xx'
print bf1.username
>> 'xx'

Original issue reported on code.google.com by danj...@gmail.com on 23 Apr 2011 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by danj...@gmail.com on 29 Apr 2011 at 5:50

GoogleCodeExporter commented 9 years ago
Fixed in 1.11

Original comment by danj...@gmail.com on 27 May 2011 at 12:18

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r63.

Original comment by danj...@gmail.com on 27 May 2011 at 3:07

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 10e86daa8028.

Original comment by danj...@gmail.com on 14 Aug 2011 at 8:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 5cb2bb6e033c.

Original comment by danj...@gmail.com on 7 Nov 2012 at 2:28