ab430e0085
Use month of reddisc as beginning if missing
...
Construct a fictive but sensfull beginning if we cant detect one
Needed since beginning is mandatory
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=76 FS#76]
2016-08-24 16:56:54 +02:00
95be313859
Pass reddisc pywikibot.page object to redfam
...
To access page information like page title (eg. to get dates from it)
of the reddisc page
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=76 FS#76]
2016-08-24 16:53:45 +02:00
0bb0b2d957
Make sure var beginning is always defined
...
To prevent unbound Errors caused by using undeclared variable beginning
if the redfam-section does not contain any timestamp
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=76 FS#76]
2016-08-24 16:51:23 +02:00
79dbde2413
Provide Replacement to @deprecated() as str
...
Since use of pywikibot-master (or Python3.5 @see ticket below)
the @deprecator requires a str as param and no callable object like
done before
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=69 FS#69]
2016-08-23 21:23:24 +02:00
0af7eb11d6
Move parsing of redfams from RedPageParser to RedFamParser.parser so RedPageParse won't do anything with redfams
...
except for returning a generator of text-sections
2016-03-03 20:41:14 +01:00
7422307985
Rewrite RedPage.parse using mwparserfromhell to make it simpler
2016-03-03 17:37:46 +01:00
b81694c6d3
Rewrite heading_parser using mwparserfromhell to make it simpler
2016-03-03 17:30:39 +01:00
a2dfffc74b
Let old date-extracting methods use dates_extract and mark them as deprecated
2016-03-03 17:23:44 +01:00
163972c924
New method dates_extract which finds begining and ending at once
2016-03-03 17:20:57 +01:00
10f64199ab
Remove relativ imports as we don't are in a package anymore
2016-03-02 17:19:11 +01:00
24adafeee7
Changes for new jogobot-module
2016-02-29 11:35:48 +01:00
7d6cd8bb30
Strip leading and trailing whitespace in Links to prevent wrong fam_hashes (when receiving redfam from db) since MySQL drops it
2015-09-19 22:44:43 +02:00
4e21b6696a
Remove unnecessary whitespace from error messages
2015-09-19 20:51:52 +02:00
6992f82f02
Start Implementing of RedFamWorker
2015-09-19 20:51:21 +02:00
8059bb9992
Change behavior of MysqlRedFam to be able to get instance without knowen fam_hash
2015-09-19 19:49:20 +02:00
b5ca69077c
Remove double appearence of heading parameter in repression of RedFam
2015-09-19 19:47:09 +02:00
523d029fdc
Fix bug causing db table cells containing empty strings
2015-09-19 19:45:34 +02:00
b1b37f9b9e
Implement functions for flushing db query caches
2015-09-17 20:00:13 +02:00
8dc7fe678d
Fix bug caused by adding fam_hash to repr of RedFam class since it was not defined yet while output of warning caused by to many articles
2015-09-17 19:57:53 +02:00
b514eb5c42
Move configuration to jogobot module
...
Use custom Error classes
2015-09-15 21:21:05 +02:00
db5bb7401e
Update RedFam class to rebuild the whole structure of RedFamPaser generated object
...
Move fam_hash() method from RedFamParser to RedFam
Define custom Error classes
2015-09-15 21:19:07 +02:00
7c9061d37f
Use redundances as python package
2015-09-13 13:13:28 +02:00
74b2dc727c
Clean up PEP8 styleguide compatibility with flake8
2015-09-13 11:53:47 +02:00
cafe08dd7f
Added license GPLv3 + Reworked code
...
Better compatibility with https://www.mediawiki.org/wiki/Manual:Pywikibot/Development_guidelines
2015-09-13 01:22:27 +02:00