This method can be used to fill all empty fields with the same value.
A field is empty when is value is None, NotLoaded or NotAvailable.
Example:
# It will be impossible to get all empty fields, except
# of 'url' (with a call to fillobj())
video.set_empty_fields(NotAvailable, ('url',))
Types were taken from KMyMoney, which is for personal tracking, however
some types had no use (cash not something the bank can provide,
maybe credit card but it is usually the "coming" field for us).
Sources: https://en.wikipedia.org/wiki/Bank_account (but not focused on
personal banking) and it's French translation which was more interesting.
Other websites for American and Australian banking almost always mentioned three
accounts: checking/current, savings/deposits, term/fixed deposits.
And some code refactoring.
Collections are not stored in replapplication.objects anymore, but in
replapplication.collections. This fixes the IDs issue. There was no gain
from storing them in objects.
Completion right after cd should be faster (and should always have been
like that, it was pretty much a bug).
The display of do_ls() should be much clearer. Collections are always at
the end, have ids/title/backend like objects (but using a formatter
would be better than my current hack).
There are still many issues with the current implementation.
refs #774closes#785
While this changes constants names, I think it is important as "accused" is
complely wrong. E-mails use the term "Read-receipts" so I chose
to go with RECEIVED.
* Make the declaration of fct and it in the constructor Collection,
instead of adding them from the outside
* Add a function to flatten a list containing collection (solves the
radioob search crash)
* Better display of collections in the "ls" command (and display both id
and title)
* The "cd" command goes to the root of the path (like the UNIX cd)
* Move the Video object of canalplus in a correct path
* Make Collection iterable
* Add comments to CapCollection
* Cache the result of fct in a Collection; it is only called once
* CollectionNotFound errors can be more explicit by providing a path
* Require utf-8 in collection paths
* Code cleanups
This allowed to fix a crash when parsing descriptions with invalid
unicode (KickAss is quite horrible it seems).
A new attribute, filename, has been added. It is the recommended
filename of the .torrent file, and should simplify downloading files when
it will be supported by weboorents.
The usage text/tail was useless, lxml supports text_content() for HTML,
which is much simpler.