Jonathan Golder
e13320820c
Add API to manage status per article
To be able to track changes to articles to update redfam status
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=89 FS#89]
8 years ago
Jonathan Golder
6149dcdb8b
Apply changes to data structure
See related ticket
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=94 FS#94]
8 years ago
Jonathan Golder
8c56125a7b
Update talkpage notice template
Exact date is not necessary and end could be ommited if of the same
month
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=93 FS#93]
8 years ago
Jonathan Golder
c0b18f88e5
Add filter options to redfam.article_generator
To give the posibility to filter not existing pages or redirect pages or
vice versa.
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=87 FS#87]
8 years ago
Jonathan Golder
e5989305a4
Add a generator to redfam yielding article pages
To work on articles of a redfam a generator which yields belonging
articles is necessary
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=87 FS#87]
8 years ago
Jonathan Golder
6717fa4fba
Add method to generate notice for article discpage
We need a method to generate the template to add to article discpages
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=29 FS#29]
8 years ago
Jonathan Golder
3723aba578
Add a method to get link to related reddisc
To generate notices or other stuff it is necessary to add links to the
related reddisc.
This method returns a wikilink to text the redfam's reddisc.
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=81 FS#81]
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=81 FS#81]
8 years ago
Jonathan Golder
b36dc250d2
Request information about reddisc page for redfams
To generate links to related reddisc it is necessary to get at least the
Title of the related reddisc page. As saving the same data in db is
worse, we retreive it via join from red_pages table
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=26 FS#26]
8 years ago
Jonathan Golder
b271a0b0b1
Add generator wrapper to fetch RedFams by status and ending
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=26 FS#26]
8 years ago
Jonathan Golder
ad088126e7
Define method to update Status after Working with RedFam
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=26 FS#26]
8 years ago
Jonathan Golder
151c22a735
Add fetched mysql_data to _mysql-Object of parent class for using change-method to update db
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=26 FS#26]
8 years ago
Jonathan Golder
a97d8c722e
Move handling of mysql-Connection from RedFamParser and RedFamWorker to RedFam-Class and make it protected instead of private
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=26 FS#26]
8 years ago
Jonathan Golder
78eda10562
Remove deprecated methods
Deprecated functions which are not used anymore can be removed to make
code more clearer and improve maintainability
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=80 FS#80]
8 years ago
Jonathan Golder
e28acf88d1
Introduce new directory structure
To clarify which is a bot and which are helper scripts
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=74 FS#74]
8 years ago
Jonathan Golder
ac54aea698
Use callback to detect redfam.section
Detecting redfam-Sections via RegExp caused some false positives due to
wrong formated things in wikisyntax. See Task
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=78 FS#78]
8 years ago
Jonathan Golder
1e4c8646bf
Reparse redfam-heading with mwparser
See related ticked for detailed failure explanation
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=77 FS#77]
8 years ago
Jonathan Golder
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]
8 years ago
Jonathan Golder
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]
8 years ago
Jonathan Golder
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]
8 years ago
Jonathan Golder
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]
8 years ago
Jonathan Golder
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
8 years ago
Jonathan Golder
7422307985
Rewrite RedPage.parse using mwparserfromhell to make it simpler
8 years ago
Jonathan Golder
b81694c6d3
Rewrite heading_parser using mwparserfromhell to make it simpler
8 years ago
Jonathan Golder
a2dfffc74b
Let old date-extracting methods use dates_extract and mark them as deprecated
8 years ago
Jonathan Golder
163972c924
New method dates_extract which finds begining and ending at once
8 years ago
Jonathan Golder
10f64199ab
Remove relativ imports as we don't are in a package anymore
8 years ago
Jonathan Golder
24adafeee7
Changes for new jogobot-module
8 years ago
Jonathan Golder
7d6cd8bb30
Strip leading and trailing whitespace in Links to prevent wrong fam_hashes (when receiving redfam from db) since MySQL drops it
9 years ago
Jonathan Golder
4e21b6696a
Remove unnecessary whitespace from error messages
9 years ago
Jonathan Golder
6992f82f02
Start Implementing of RedFamWorker
9 years ago
Jonathan Golder
8059bb9992
Change behavior of MysqlRedFam to be able to get instance without knowen fam_hash
9 years ago
Jonathan Golder
b5ca69077c
Remove double appearence of heading parameter in repression of RedFam
9 years ago
Jonathan Golder
523d029fdc
Fix bug causing db table cells containing empty strings
9 years ago
Jonathan Golder
b1b37f9b9e
Implement functions for flushing db query caches
9 years ago
Jonathan Golder
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
9 years ago
Jonathan Golder
b514eb5c42
Move configuration to jogobot module
Use custom Error classes
9 years ago
Jonathan Golder
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
9 years ago
Jonathan Golder
7c9061d37f
Use redundances as python package
9 years ago
Jonathan Golder
74b2dc727c
Clean up PEP8 styleguide compatibility with flake8
9 years ago
Jonathan Golder
cafe08dd7f
Added license GPLv3 + Reworked code
Better compatibility with https://www.mediawiki.org/wiki/Manual:Pywikibot/Development_guidelines
9 years ago