Imported Upstream version 0.12.0
SVN-Git Migration
8 years ago
0 | 0 |
Metadata-Version: 1.0
|
1 | 1 |
Name: lazr.restfulclient
|
2 | |
Version: 0.11.2
|
|
2 |
Version: 0.12.0
|
3 | 3 |
Summary: A programmable client library that takes advantage of the commonalities among
|
4 | 4 |
Home-page: https://launchpad.net/lazr.restfulclient
|
5 | 5 |
Author: LAZR Developers
|
|
55 | 55 |
NEWS for lazr.restfulclient
|
56 | 56 |
===========================
|
57 | 57 |
|
|
58 |
0.12.0 (2011-06-30)
|
|
59 |
===================
|
|
60 |
|
|
61 |
- Give a more useful AttributeError
|
|
62 |
|
58 | 63 |
0.11.2 (2011-02-03)
|
59 | 64 |
===================
|
60 | 65 |
|
0 | 0 |
===========================
|
1 | 1 |
NEWS for lazr.restfulclient
|
2 | 2 |
===========================
|
|
3 |
|
|
4 |
0.12.0 (2011-06-30)
|
|
5 |
===================
|
|
6 |
|
|
7 |
- Give a more useful AttributeError
|
3 | 8 |
|
4 | 9 |
0.11.2 (2011-02-03)
|
5 | 10 |
===================
|
83 | 83 |
>>> recipe.is_great
|
84 | 84 |
Traceback (most recent call last):
|
85 | 85 |
...
|
86 | |
AttributeError: 'Entry' object has no attribute 'is_great'
|
|
86 |
AttributeError: http://cookbooks.dev/1.0/recipes/1 object has no attribute 'is_great'
|
87 | 87 |
|
88 | 88 |
The client can set more than one attribute on an entry at a time:
|
89 | 89 |
they'll all be changed when the entry is saved.
|
141 | 141 |
>>> not_really_a_cookbook.cuisine
|
142 | 142 |
Traceback (most recent call last):
|
143 | 143 |
...
|
144 | |
AttributeError: 'Entry' object has no attribute 'cuisine'
|
|
144 |
AttributeError: http://cookbooks.dev/1.0/recipes/3 object has no attribute 'cuisine'
|
145 | 145 |
|
146 | 146 |
Cleanup.
|
147 | 147 |
|
329 | 329 |
try:
|
330 | 330 |
return self.lp_get_parameter(attr)
|
331 | 331 |
except KeyError:
|
332 | |
raise AttributeError("'%s' object has no attribute '%s'"
|
333 | |
% (self.__class__.__name__, attr))
|
|
332 |
raise AttributeError("%s object has no attribute '%s'"
|
|
333 |
% (self, attr))
|
334 | 334 |
|
335 | 335 |
def lp_values_for(self, param_name):
|
336 | 336 |
"""Find the set of possible values for a parameter."""
|
0 | 0 |
Metadata-Version: 1.0
|
1 | 1 |
Name: lazr.restfulclient
|
2 | |
Version: 0.11.2
|
|
2 |
Version: 0.12.0
|
3 | 3 |
Summary: A programmable client library that takes advantage of the commonalities among
|
4 | 4 |
Home-page: https://launchpad.net/lazr.restfulclient
|
5 | 5 |
Author: LAZR Developers
|
|
55 | 55 |
NEWS for lazr.restfulclient
|
56 | 56 |
===========================
|
57 | 57 |
|
|
58 |
0.12.0 (2011-06-30)
|
|
59 |
===================
|
|
60 |
|
|
61 |
- Give a more useful AttributeError
|
|
62 |
|
58 | 63 |
0.11.2 (2011-02-03)
|
59 | 64 |
===================
|
60 | 65 |
|