Closed jeffmikels closed 10 years ago
What's the rationale behind this?
The google chrome RSS extension is designed to work with Get Requests for adding feeds. Additionally, a get request allows for the creation of bookmarklets to easily add feeds from any site.
(from my phone) On Jul 23, 2014 4:05 AM, "Andrea Peltrin" notifications@github.com wrote:
What's the rationale behind this?
— Reply to this email directly or view it on GitHub https://github.com/passiomatic/coldsweat/issues/70#issuecomment-49844257 .
I don't know if this mixes well with feed auto-discovery (sooner or later it will arrive).
I dream about a bookmarklet, but it should handle authentication too. That is, if a user is logged off it should land on a special page (not the current modal dialog) with the ability to specify link, username and password, then submit data and start subscription routine.
On the pedantic side, when possible a POST action should be preferred to alter database contents. Sometimes there are side-effects after a GET (think "mark as read" after an entry view) but ideally I would like to avoid that.
The change does not bypass authentication. If you are logged in, the bookmarklet works. If you are not, you will be sent to the login page.
(from my phone) On Jul 23, 2014 10:24 AM, "Andrea Peltrin" notifications@github.com wrote:
I don't know if this mixes well with feed auto-discovery (sooner or later it will arrive).
I dream about a bookmarklet, but it should handle authentication too. That is, if a user is logged off it should land on a special page (not the current modal dialog) with the ability to specify link, username and password, the submit data and start subscription routine.
On the pedantic side, when possible a POST action should be preferred to alter database contents. Sometimes there are side-effects after a GET (think "mark as read" after an entry view) but ideally I would like to avoid that.
— Reply to this email directly or view it on GitHub https://github.com/passiomatic/coldsweat/issues/70#issuecomment-49880507 .
I've made some changes to the frontend code. Not sure if it's really what you need but now the URL:
{the application url}/feeds/add?self_link={the feed url}
Shows the feed subscription modal with the feed URL text field populated. I've also added a bookmarket and commented because right now it is rather useless, since it just passes the page document.location and not a valid feed address.
Note though, that you still cannot add a feed wth a GET.
Thanks. Your method turns my one click system into a two-click system, but it makes sense, so thank you.
(from my phone) On Aug 10, 2014 10:18 AM, "Andrea Peltrin" notifications@github.com wrote:
I've made some changes to the frontend code. Not sure if it's really what you need but now the URL:
{the application url}/feeds/add?self_link={the feed url}
Shows the feed subscription modal with the feed URL text field populated. I've also added a bookmarket and commented because right now it is rather useless, since it just passes the page document.location and not a valid feed address.
Note though, that you still cannot add a feed wth a GET.
— Reply to this email directly or view it on GitHub https://github.com/passiomatic/coldsweat/issues/70#issuecomment-51716074 .
I have modified the frontend.py function to allow adding feeds using a GET request. Here is the diff.