flickrapi

view UPGRADING @ 80:5b3a355d3450

Lots and lots of small changes in naming and code style.
author Sybren Stüvel <sybren@stuvel.eu>
date Tue, 05 Feb 2008 11:17:02 +0000
parents
children 0fd7dc9527bd
line source
1 Upgrading from previous versions
2 =================================
4 From 0.15
5 ---------------------------------
7 A lot of name changes have occurred in version 0.16 to follow PEP 8.
8 Some properties have also had their name shortened. For example, an
9 ``XMLNode`` now has a ``text`` property instead of ``elementText``.
10 After all, the nodes describe XML elements, so what other text would
11 there be?
13 Here is a complete list of the publicly visible changes, broken down
14 per class. Changes in the internals of the FlickrAPI aren't documented
15 here.
17 ``FlickrAPI``
18 The constructor has its parameter ``apiKey`` changed to
19 ``api_key``.
21 All methods names that were originally in "camelCase" are now
22 written in Python style. For example, ``getTokenPartOne`` has been
23 changed to ``get_token_part_one``. The same is true for the class
24 variables that point to the Flickr API URLs. For example,
25 ``flickrHost`` became ``flickr_host``.
27 ``send_multipart`` became a private method.
29 The ``main`` method was removed. It only served as a simple
30 example, which was obsoleted by the documentation.
32 ``XMLNode``
33 The method ``parseXML`` has become ``parse``, since it can't parse
34 anything but XML, so there is no need to state the obvious.
36 Properties ``elementName`` and ``elementText`` have been renamed
37 to ``name`` resp. ``text``.