News for hackers. Stuff that matters.
Re:Reworder – A tale of learning Python and launching an app... by sahillavingia on Tuesday October 26, 2010 @06:50PM (#1836472)
Ah yes, I randomly generate a permalink on load of the page, so it uses the old permalink, hence why it loads the first submission. Any ideas on how to change this?
Re:Reworder – A tale of learning Python and launching an app... by torme on Tuesday October 26, 2010 @07:02PM (#1836514)
I guess just generate the permalink in the action and redirect to that instead of having it in the form itself.

Something like:

Form: /reworder/generate

Action: Generates text, creates permalink and then redirects user to that permalink.

In the web world this pattern is common, called redirect-after-post. I'm not sure if thats much help, I've only used python in the context of the Pylons framework (and have only a few days experience with it at that). If you need more guidance let me know and I'll try and clarify.

edit: Link to redirect after post: http://en.wikipedia.org/wiki/Post/Redirect/Get

edit2: I should also say this is a pretty sweet project, sorry if I just listed criticisms.

Re:Reworder – A tale of learning Python and launching an app... by sahillavingia on Tuesday October 26, 2010 @09:52PM (#1836928)
Of course not, I love criticisms. How else do I improve? I'll implement that ASAP.