| 1 |
Sun, 25 Apr 2010 23:51:38 +0200 |
| 2 |
------------------------------- |
| 3 |
|
| 4 |
You can use the "require_version" function in mygpoclient to require a minimum |
| 5 |
version of the mygpoclient library. The "require_version" function has been |
| 6 |
added in version 1.3, so you have to check (e.g. with hasattr) if mygpoclient |
| 7 |
has got a "require_version" attribute. You can then do the version check like |
| 8 |
this: |
| 9 |
|
| 10 |
if not hasattr(mygpoclient, 'require_version') or \ |
| 11 |
not mygpoclient.require_version('1.3'): |
| 12 |
# Show error message and tell user to upgrade to version 1.3 |
| 13 |
|
| 14 |
Fri, 23 Apr 2010 17:43:03 +0200 |
| 15 |
------------------------------- |
| 16 |
|
| 17 |
The parameter signature for the EpisodeAction constructor has been updated. |
| 18 |
It now contains not only the optional "position" argument, but two new |
| 19 |
arguments as well. The order of these parameters is: |
| 20 |
|
| 21 |
started |
| 22 |
position |
| 23 |
total |
| 24 |
|
| 25 |
If one of "started" or "total" is set, "position" becomes mandatory. This |
| 26 |
means that the following combinations are now possible: |
| 27 |
|
| 28 |
None |
| 29 |
position |
| 30 |
position and started |
| 31 |
position and total |
| 32 |
position and started and total |
| 33 |
|
| 34 |
Also, the format has been changed. Instead of having a "HH:MM:SS" timestamp |
| 35 |
format, we now only accept integer values (the number of seconds). |
| 36 |
|