summaryrefslogtreecommitdiff
path: root/pgweb/news/struct.py
AgeCommit message (Collapse)Author
2020-09-26Slugify URLs to news articlesMagnus Hagander
2020-09-10Re-work moderation of submitted itemsMagnus Hagander
This includes a number of new features: * Move some moderation functionality into shared places, so we don't keep re-inventing the wheel. * Implement three-state moderation, where the submitter can edit their item and then explicitly say "i'm done, please moderate this now". This is currently only implemented for News, but done in a reusable way. * Move moderation workflow to it's own set of URLs instead of overloading it on the general admin interface. Admin interface remains for editing things, but these are now separated out into separate things. * Do proper stylesheet clearing for moderation of markdown fields, using a dynamic sandboxed iframe, so it's not ruined by the /admin/ css. * Move moderation email notification into dedicated moderation code, thereby simplifying the admin subclassing we did which was in some places quite fragile. * Reset date of news postings to the date of their approval, when approved. This avoids some annoying ordering issues.
2019-01-26Update syntax for relative importsMagnus Hagander
2019-01-17Fix whitespace and indentation, per pep8Magnus Hagander
2019-01-17Tabs, meet your new overlords: spacesMagnus Hagander
In a quest to reach pep8, use spaces to indent rather than tabs.
2014-01-01Clean up importsMagnus Hagander
Remove unused imports and some other completely unused code.
2011-07-12Only index news items 4 years or youngerMagnus Hagander
2011-06-01Add comments about why we're not indexing some archive pagesMagnus Hagander
2010-09-29Fix URLs as generated, and don't index pointless pagesMagnus Hagander
2010-09-28Add support for generating sitemap.Magnus Hagander
Each module now contains a struct.py file that will return all the URLs that it can generate (yes, this is a small break of the abstraction of url.py, but we've broken that elsewhere as well), and also which search-engine-weight (0.1-1.0) that this URL should be given.