[pyjamas-dev] Hand translation of django-pagination into JavaScript

2 views
Skip to first unread message

jfine

unread,
Jul 18, 2009, 6:26:40 AM7/18/09
to pyjamas-dev, js...@googlegroups.com
Hi

I'm doing some (manual) Django Python to JavaScript translation, and I
thought you might like to see it.

The task is to implement django-pagination in JavaScript so that I can
send JSON to a web-page and allow the user to paginate it.

Here's where I'm doing the work, and I'll be committing frequently
today, so if you're bored you could take a look.
http://mathtran.svn.sourceforge.net/viewvc/mathtran/trunk/mathtran_site/help_widget/

The goal is to provide a help widget on pages such as:
http://www.mathtran.org/formulas/details/137/
which behaves a bit like the help widget on
http://www.mathtran.org/editor/
but for which the pagination is as supplied by Django (I use Pinax),
as on
http://www.mathtran.org/formulas/

I want to serve JSON for the content of the help widget, not HTML, and
so that's why what I'm doing is basically forced upon me.

It will be interesting to see how the translation of this selected by
chance piece of code converts to JavaScript.

--
Jonathan

Reply all
Reply to author
Forward
0 new messages