Another tool i was introduced was {{less}} which helps writing CSS in a hierarchical style, without requiring to write full selector path for each block. It also allows defining variables which prevents redundancy when using same values multiple times. It's clearly more programmers way to CSS.
While being little late for proposal syncing feautre. I still could find some time to think on it and send a mail to community to discuss on it. There is no harm to copy/paste my current idea here :)
- When user goes to '.../proposal/submit...', represent a sub-page with two buttons : Edit HTML, Sync with GDocs
- Go to a different page for each selection, each represents different form. (e.g. '/proposal/submit/gdocs', '/proposal/submit/default')
One page requires to login GDocs and a gdocs flag will be True for proposal entity after saved. - For updating part, 'edit proposal' link's destination will be changed with regards to proposal's gdocs flag (either go to '/proposal/update/gdocs/id' or '/proposal/update/default/id')
. - Widget 'GDocs Link' will have a 'sync now' button near it. When user pastes link to field and presses "sync now" button, an ajax request will be executed. Text area 'Content' (which is not editable) will be updated with result of that AJAX request. So actually, in server-side, we won't process document link again and treat form like its content edited by hand.
Hey Orcun!
ReplyDeleteThanks for telling about the Mercurial Queues. Its
a really useful extension and I too needed such tool.
Here is a beginner tutorial I found.
http://zubin71.wordpress.com/2010/11/05/beginners-tutorial-to-using-mercurial-patch-queues/
Praveen it's great that we learn from eachother's blog posts :)
ReplyDelete