- Jul 29, 2018
-
-
With NSS, unlike python sockets, the timeout should be passed on every recv call. But since it's implemented in C, we're forced to reimplement read/readinto/etc. Use io.BufferedRWPair and io.RawIOBase to implement some of them and implement the others by hand.
-
NSS uses different filenames for its certificate database depending on its version (cert8.db before NSS 3.35, cert9.db after). This filename is checked to determine if the certificate db must be created, so we need to find the correct filename.
-
-
- Jul 16, 2018
-
-
Romain Bignon authored
-
- Jul 12, 2018
-
-
Benjamin Bouvier authored
-
- Jun 29, 2018
-
-
- Jun 19, 2018
-
-
hydrargyrum authored
Python 2's json module stringifies values using the builtin str() function, so any custom __str__ function will be used instead of the number representation: json.dumps([AccountType.CHECKING]) will then return invalid JSON "[CHECKING]" instead of "[1]". By enforcing use of int.__str__, the previous behavior is restored. See https://bugs.python.org/issue18264 (it's fixed in Python 3).
-
- Jun 16, 2018
-
-
hydrargyrum authored
-
hydrargyrum authored
Use enums instead of plain old int constants.
-
hydrargyrum authored
Python 3.4 added new Enum types that enforce a value belonging to the enumeration. This commit retires our homemade enum and use Python's Enum type. Python 2 compatibility is achieved with "enum34" package. Housing and Calendar capabilities are updated to use those new enums.
-
- Jun 09, 2018
-
-
A TestCase doesn't have a logger, but the backend obj has one.
-
Since the currencies dictionary is ordered, it is preferable to first iter over this dictionary and then iter over the curtexts in order to prevent mismatches. For example, the get_currency method selected the 'PEN' currency in several cases: if the text contains 'en EUR', the curtexts list will be ['en', 'EUR'] and if we iterate over curtexts first, 'en' will be matched with 'PEN' because of the "if curtext in currency" line without ever trying to match 'EUR' with 'EUR'. Therefore, curtexts are now strictly matched with currencies since most websites use the ISO-4217 norm anyways and because it is better to return None than to match wrong currencies such as peruvian sols. Example: if the text contains 'CHAUDE', it will match it with 'AUD' (australian dollars) with is wrong, whereas "if curtext == currency" is stricter but avoids false matches. Closes: 5548@zendesk
-
-
refs #5557@zendesk return unicode
-
-
-
It may be executed multiple times per source page though. Since property "page" will generate a Page object on every access. It should be idempotent then.
-
-
Old module PIL(not pillow) doesn't support float for image crop
-
Since pages can have a lot of javascript, URL change does not reflect when page changed. Use full page_source instead, and save when browser.page attribute is used. Requests can't be saved. page_source contains inline images which can be heavy, so support a configurable size quota.
-
By default, phantomjs might log in current dir. Use a temp path or responses_dirname if available.
-
Romain Bignon authored
-
- May 28, 2018
-
-
hydrargyrum authored
Having "class obj_x(ItemElement)" to do nested object parsing is possible. Support "class obj_x(ListElement)" to parse a list of sub-objects, and coerce to list instead of an iterator.
-
-
- May 12, 2018
-
-
use `==` instead of `is` to compare. make test to pass under python3
-
-
-
- May 05, 2018
-
-
When switching to another browser, the old Session object must be deinited (if KEEP_SESSION is not set).
-
-
-
The '|' in xpath list all matched elements. Add xpath function to get only the first non empty element like 'or' statement
-
Some sites show deferred debit transactions on checking account. The new helpers omit_deferred_transactions and keep_only_card_transactions can be used to separate such transactions from other ones, allowing a module to return dedicated card accounts, basing on the checking account's history. Also, update __all__.
-
SimpleVirtualKeyboard: - no need 'color' parameter to handle a simple grid - can cut image or tile margin - can alter virtual keyboard image with overwrite alter_image function
-
Warning: it doesn't seem to work on Firefox or PhantomJS. It has a restriction: operation is done per domain.
-
Selenium treats frames and iframes in a different way. One has to "switch to" a frame before being able to interact with the frame. Then, one must go out of it. Add a context manager to limit block scope and also a condition wrapper.
-
Weboob modules can thus set their own settings
-
-
-
don't crash handling non-mandatory fields instead we fill them with the new FetchError EmptyField
-