Debian Codegraph @

src/launchpadlib/docs/operations.rst

raw
1 ****************
2 Named operations
3 ****************
4
5 launchpadlib can transparently determine the size of the list even
6 when the size is not directly provided, but is only available through
7 a link.
8
9 >>> from launchpadlib.testing.helpers import salgado_with_full_permissions
10 >>> launchpad = salgado_with_full_permissions.login(version="devel")
11
12 >>> results = launchpad.people.find(text='s')
13 >>> 'total_size' in results._wadl_resource.representation.keys()
14 False
15 >>> 'total_size_link' in results._wadl_resource.representation.keys()
16 True
17 >>> len(results) > 1
18 True
19
20 Of course, launchpadlib can also determine the size when the size _is_
21 directly provided.
22
23 >>> results = launchpad.people.find(text='salgado')
24 >>> 'total_size' in results._wadl_resource.representation.keys()
25 True
26 >>> len(results) == 1
27 True