view UPGRADING @ 283:1d6a422fdb40
self._data_walker -> self.data_walker
| author |
Sybren A. Stüvel <sybren@stuvel.eu> |
| date |
Thu, 29 Dec 2011 16:39:49 +0100 |
| parents |
5b3a355d3450 |
| children |
|
line source
1 Upgrading from previous versions
2 =================================
5 ---------------------------------
7 Some methods have been deprecated in version 1.1, which are now
8 removed. Those are the class methods:
15 The default parser format has been changed from XMLNode to
16 ElementTree. Either convert your code to use the new ElementTree
17 parser, or pass the ``format='xmlnode'`` parameter to the FlickrAPI
20 The upload and replace methods now use the format parameter, so if you
21 use ElementTree as the parser, you'll now also get an ElementTree
22 response from uploading and replacing photos. To keep the old
23 behaviour you can pass ``format='xmlnode'`` to those methods.
26 ---------------------------------
28 A lot of name changes have occurred in version 0.16 to follow PEP 8.
29 Some properties have also had their name shortened. For example, an
30 ``XMLNode`` now has a ``text`` property instead of ``elementText``.
31 After all, the nodes describe XML elements, so what other text would
34 Here is a complete list of the publicly visible changes, broken down
35 per class. Changes in the internals of the FlickrAPI aren't documented
39 The constructor has its parameter ``apiKey`` changed to
42 All methods names that were originally in "camelCase" are now
43 written in Python style. For example, ``getTokenPartOne`` has been
44 changed to ``get_token_part_one``. The same is true for the class
45 variables that point to the Flickr API URLs. For example,
46 ``flickrHost`` became ``flickr_host``.
48 ``send_multipart`` became a private method.
50 The ``main`` method was removed. It only served as a simple
51 example, which was obsoleted by the documentation.
54 The method ``parseXML`` has become ``parse``, since it can't parse
55 anything but XML, so there is no need to state the obvious.
57 Properties ``elementName`` and ``elementText`` have been renamed
58 to ``name`` resp. ``text``.