summaryrefslogtreecommitdiff
path: root/pgweb/misc/views.py
AgeCommit message (Collapse)Author
2020-09-10Turn off usergenerated flags for email from our own addressesMagnus Hagander
News, docs and bugs are all sending from our own noreply addresses these days, so they should not be flagged as usergenerated (flagging as usergenerated will revent dkim signing, amongst other things)
2019-01-26Fix unicode for hashlib operationsMagnus Hagander
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.
2019-01-17Redirect the user upon successful bug report submissionMagnus Hagander
Previously the result page was rendered directly and if the user hit the refresh button the bug woulb be duplicated. Instead redirect to a results page (with the bug number) which can be freely refreshed.
2019-01-17Create and track a mapping between bug ids and messageidsMagnus Hagander
Not used yet (though a prototype redirect view is present) since we need to populate it with data from the past, but with this we start collecting the mapping for future bugs.
2018-09-25Oops, fix generated messageid to include <>Magnus Hagander
2018-09-24Generate bug-specific messsageids when generating bug reportsMagnus Hagander
This makes the messageids shorter and easier to identify when linking to them in the archives.
2018-04-19Change submit button on "Submit a Bug" to "Submit and Send Email"Jonathan S. Katz
2018-04-17Update Documentation and Bug Report pages to use modern design.Jonathan S. Katz
2018-04-05Change title of submitbug save buttonMagnus Hagander
2018-03-10Replace NavContext and render_to_response with render_pgwebMagnus Hagander
render_to_response does not work on newer django, so it needs to be replaced. And using a speicfic context actually overcomplicates things, it's easier to just use a wrapper function. For those cases where we don't need NavContext, just use render() (the new shortcut function from django), which also removes the need to use RequestContext.
2017-12-18Set sender name on bug report and docs comments emailMagnus Hagander
2017-12-18Send -bugs and -docs emails from noreply addressStephen Frost
Sending from the submitters address runs afoul to DMARC and other restrictions. Instead, send the email from a defined noreply address. Instead, add the original submitter to both the Cc and the Reply-To header, to make sure they receive followups. Patch by Stephen, minor changes by Magnus
2017-07-04cc bugreports to the original submitterMagnus Hagander
This gives the submitter a chance to respond to their own message even if it's not delivered through the list (for example, because they are not subscribed, or because it's caught in moderation for other reasons). Per discussion at the developer meeting.
2016-05-24Replace login_required decorator with a validating oneMagnus Hagander
This one will validate that the url is under /accounts/, which is the only part we are going to be excluding from caching once we move the website to https-only.
2016-05-24Remove SSL decorators and middlewareMagnus Hagander
The site is now served regardless of SSL, and assumes that the webserver or web cache ensures that things rae always SSL.
2016-05-17Move submitbug under /account/Magnus Hagander
In passing make it require ssl, make it no longer csrf-exempt, and make it require a login so we don't let unauthenticated emails through.
2014-01-11Track which emails are "user generated" for different antispam treatmentMagnus Hagander
Basically, user generated email (bug report form) will be sent to the mail frontends for antispam. Any errors generated there will be ignored and the mails "dropped on the floor". Other emails keep entering the system through localhost and delivered there.
2014-01-01Replace wildcard imports with explicit onesMagnus Hagander
2014-01-01Clean up importsMagnus Hagander
Remove unused imports and some other completely unused code.
2012-11-07Exclude CSRF token and check for the bug submission formMagnus Hagander
2011-12-22Add a simple crash testing URLMagnus Hagander
It requires the file /tmp/crashtest to exist to actually test the crash, without that it just renders a plaintext string...
2011-11-27Only include supported versions. In particular, don't include 0.0.0Magnus Hagander
2011-11-08Set title on bug report formMagnus Hagander
2010-01-12Factor out the sending of a templated mail to a function, we're sureMagnus Hagander
to want to use this in the future.
2010-01-11Add bug submission formMagnus Hagander