REQ: Help with row-level perms and model (item, user) method problems.

2008-10-26 Thread jfine
Hi I'm now doing serious (for me) work with Django (which I like a lot) and have come up against a problem. My application requires row-level permissions. I think I've got most of it sorted out, but I'm having problems with templates and views. My basis idea is this. Add a field edit_

Done? Database -> Python objects -> JSON -> JavaScript 'class instances'

2009-07-15 Thread jfine
Hi Django can, of course, serialize database objects into JSON: http://docs.djangoproject.com/en/dev/topics/serialization/ I'd like to turn that JSON into JavaScript objects. I'd like, of course, a Formula object to be turned into an 'instance of the Formula class'. (The quotes are because

Re: Done? Database -> Python objects -> JSON -> JavaScript 'class instances'

2009-07-15 Thread jfine
Oops. Pressed the button too soon. > Django can also, of course, serialize a whole database into JSON.  A > more ambitious task is to turn that JSON into a linked collection of > database objects. Should be JavaScript objects (of course). -- Jonathan --~--~-~--~~~--

Re: Done? Database -> Python objects -> JSON -> JavaScript 'class instances'

2009-07-15 Thread jfine
Hello Russell On Jul 16, 12:49 am, Russell Keith-Magee wrote: > Sure, this _could_ be done. You can write and install custom > serializer - you just need to work out exactly how a random database > object is realized as a JavaScript object. The existing serializers > should give you a reasonabl

Moodle and Django - access to Moodle databases

2010-08-11 Thread jfine
Hi Anyone here interested in Moodle (the leading open source virtual learning environment, with a vibrant community and written in PHP)? I've just started a project, whose goal is to give Django access to Moodle databases. You can see it at http://bitbucket.org/jfine/django-moodl

IP address and NetScaler application delivery device

2010-02-22 Thread jfine
I'm running a Django/Pinax website (www.mathtran.org) whose host wishes to move it to the NetScaler application delivery device. This will change the IP address from which the applications appear to come from (to the NetScaler device). The (real) client IP address is available in a HTTP header ca

Re: how to cache django javascript message file ('/jsi18n/') with apache (production setup)

2008-03-05 Thread jfine
On Mar 5, 5:58 pm, "alain D." <[EMAIL PROTECTED]> wrote: > Hi, > >If there a simple apache configuration that is know to make browser > cache the javascript message file ('jsi18n') in a standard apache > django production setup ? [snip] > To my django virtual host and then I get this heade

Re: Missing Documentation cross-reference to shortcuts ?

2007-11-13 Thread jfine
glopglop wrote: > A lookup on google shows that the page > http://www.djangoproject.com/documentation/shortcuts/ > isn't linked from anywhere on the documentation (and the site), and I > had to search it to find it. > > (see > http://www.google.com/search?hl=fr&c2coff=1&q=link%3Ahttp%3A%2F%2Fwww