Commit graph

65 commits

Author SHA1 Message Date
Romain Bignon
9a6017da5e fix parsing of thread title 2015-01-24 12:11:13 +01:00
Romain Bignon
a86f71b90b fix encoding of urls 2015-01-23 16:49:36 +01:00
Romain Bignon
be34d90395 way used to vote has changed 2015-01-23 16:35:08 +01:00
Romain Bignon
cd922779a3 fix parsing of profiles 2015-01-23 16:35:01 +01:00
Romain Bignon
387124522f make all attributes of optim start with an underscore 2015-01-23 16:34:27 +01:00
Romain Bignon
0e57dd9559 handle logged page 2015-01-23 16:33:56 +01:00
Romain Bignon
1104529d77 correctly detect when login fails 2015-01-23 16:23:53 +01:00
Laurent Bachelier
88df613a53 Fix English: "childs" into "children"
refs #1675
2014-11-22 16:36:03 +01:00
Florent
feb1405813 bump to 1.1 2014-10-17 14:10:38 +02:00
Laurent Bachelier
f4c17cdc9d pep8: Fix E303 too many blank lines 2014-10-11 02:15:28 +02:00
Laurent Bachelier
7aeb3e942e pep8: Fix indentation is not a multiple of four
autopep8 -a -r -i --select E111 .

Manual check.
2014-10-11 01:41:00 +02:00
Laurent Bachelier
21e8f82fd7 pep8: Use "X not in Y" instead of "not X in Y"
flake8 --select E713, semi-manual fixing
2014-10-11 01:27:24 +02:00
Laurent Bachelier
448c06d125 pep8 blank lines fixes
flake8 --select W391,E302,E301,E304

autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Romain Bignon
be7d49312d add check to prevent prints in weboob modules 2014-10-06 17:22:37 +02:00
Laurent Bachelier
74a4ef6723 Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w

With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00
Florent
0088013ae1 Rename BaseBrowser to Browser 2014-09-26 10:18:12 +02:00
Florent
444d36eee8 Rename BasePage to Page 2014-09-26 10:18:12 +02:00
Florent
5a1d83b567 Rename BaseModule to Module and Module to LoadedModule 2014-09-26 10:18:12 +02:00
Florent
f3aeddffbc Rename backend.py to module.py 2014-09-26 10:18:12 +02:00
Florent
9370b2fae7 s/Backend/Module 2014-09-26 10:18:11 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +02:00
Laurent Bachelier
3da02fde24 Remove useless __all__ in modules
They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.

The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
2014-09-09 19:00:02 +02:00
Florent
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Florent
1daa866949 Move the import oh html2text outside of misc 2014-07-09 11:43:14 +02:00
Florent
c122e6f9cc Do not import/export dates utils in misc 2014-07-09 11:20:56 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +02:00
Romain Bignon
535f5fc0a1 do not crash on 'like' messages 2014-05-18 16:46:14 +02:00
Romain Bignon
54d9efd05a better profile parsing 2014-05-18 15:11:35 +02:00
Romain Bignon
b948c3247b use fixed dates for messages 2014-05-18 13:54:31 +02:00
Romain Bignon
f33ba07b30 don't crash on removed contacts 2014-05-17 19:17:12 +02:00
Romain Bignon
db2494d3ad can use okc with monboob 2014-05-17 19:07:37 +02:00
Romain Bignon
1ca3c09479 handle sent page 2014-05-17 18:25:25 +02:00
Romain Bignon
3e3d121bff first sent message is configurable 2014-05-17 18:19:13 +02:00
Romain Bignon
cbe5b3a47d remove useless optimizations and fix code 2014-05-17 18:02:24 +02:00
Ahmed Bousadia
64bfc47695 Adding a message to send to ok profile walker 2014-05-17 17:15:56 +02:00
Ahmed Boussadia
16477b4649 Adding rating support for OKC browser and PROFILE_WALKER optimizer 2014-05-17 17:15:55 +02:00
Ahmed Boussadia
720fd5ba1a Improving okc profile alker optimizer 2014-05-17 17:15:53 +02:00
Ahmed Boussadia
bf4300e9be Adding profile walker to okc 2014-05-17 17:15:52 +02:00
Ahmed Boussadia
641bbf7a7a Query visit a profile for OKC implemented 2014-05-17 17:15:50 +02:00
Ahmed Boussadia
296d6b7c9f Starting work on okc module : adding optimization 2014-05-17 17:15:46 +02:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +02:00
Laurent Bachelier
a6ad7e83ff Use newer form of catching exceptions
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +02:00
Romain Bignon
c0740e695d remove useless import of with_statement (we do not support anymore python2.5)
refs #806
2013-07-27 14:38:18 +02:00
Florent
9484099a1d bump to 0.g 2013-03-26 18:31:12 +01:00
Laurent Bachelier
f37e3c5742 Fix indents not multiples of four 2013-03-16 00:57:31 +01:00
Laurent Bachelier
fbe0fb8d52 Some manual style fixes 2013-03-16 00:57:31 +01:00
Laurent Bachelier
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00