Re: Django/Dojo integration: take a look and speak up

2006-04-19 Thread tonemcd
Just a quick note from someone who has been trying to get his head around Dojo - this is really appreciated James! Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

Re: Django/Dojo integration: take a look and speak up

2006-04-14 Thread olive
in fact, since I've rolled back to a 3 days old version I no longer need to do this modification. If it happens again wih a fresher svn update I will let you know. Now I'm convinced that we need Dojo, I will help as much as I can. --~--~-~--~~~---~--~~ You recei

Re: Django/Dojo integration: take a look and speak up

2006-04-14 Thread olive
in fact, since I've rolled back to a 3 days old version I no longer need to do this modification. If it happens again wih a fresher svn update I will let you know. Now I'm convinced that we need Dojo, I will help as much as I can. --~--~-~--~~~---~--~~ You recei

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > Note: the fact that I have to rename this is still relevant: > ManyToOne by ForeignKey > ManyToMany by ManyToManyField In what files and locations are you having to do this? -- "May the forces of evil become confused on the way to your house." --

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > Now just a silly question: what is the value added by Dojo ? A few things. The one that most people have been clamoring for is easy AJAX functionality; Dojo's libraries for that are really simple to use. But the big deal for me is the packaging sys

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
Sorry, I came back to the version MR version I had two days ago and it is better now. But the filter above the left list does not work, JS console says: Erreur : SelectFilter is not defined Fichier source : http://localhost:8000/media/js/dojo/dojo.js Ligne : 187 Erreur : SelectFilter is not defi

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > What I see is a simple multiselection list, so I suspect that the > related Dojo is not loaded. Does your browser report any JavaScript errors? -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
What I see is a simple multiselection list, so I suspect that the related Dojo is not loaded. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-d

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > How do I specify the use of Dojo rich-text editing widget in my model ? You'll want to take a look at Dojo's documentation at http://dojotoolkit.org/docs/ > I don't know why M2M does not render properly, here is an excerpt of > the displayed page so

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
My copy of MR has been updated yesterday evening. How do I specify the use of Dojo rich-text editing widget in my model ? I don't know why M2M does not render properly, here is an excerpt of the displayed page source: ... dojo.setModulePrefix('django', '../django'); var admi

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, olive <[EMAIL PROTECTED]> wrote: > to make it work I had to replace in your views all occurences of: > ManyToOne by ForeignKey > ManyToMany by ManyToManyField The patch was extracted from a modified copy of magic-removal which I'd been running for a while, there should have been no ne

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread olive
James, to make it work I had to replace in your views all occurences of: ManyToOne by ForeignKey ManyToMany by ManyToManyField The only problem for me so far is that TextField are no more handled by TinyMCE. Just one reproach: the widget use for ManyToMany was better before Dojo (MultiSelect co

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread Jacob Kaplan-Moss
On Apr 13, 2006, at 8:48 AM, James Bennett wrote: > Already done; it's in Trac: http://code.djangoproject.com/ticket/1613 FYI, I'm working on making a custom Dojo build with all the sweetness that James put together but having some issues with the build system. Once that's done, I'll be chec

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread James Bennett
On 4/13/06, Bjørn Stabell <[EMAIL PROTECTED]> wrote: > Could you make it available as a patch against the latest magic-removal > branch? Already done; it's in Trac: http://code.djangoproject.com/ticket/1613 -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread Bjørn Stabell
Could you make it available as a patch against the latest magic-removal branch? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googl

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread James Bennett
On 4/4/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > I just realized that both the calendar and clock widgets were within a > fieldset with 'classes': 'collapse' http://files.shtuff.us/admin-dojo.tgz Fixed now :) -- "May the forces of evil become confused on the way to your house." -- George Ca

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread James Bennett
On 4/4/06, James Bennett <[EMAIL PROTECTED]> wrote: > On 4/4/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > > I just realized that both the calendar and clock widgets were within a > > fieldset with 'classes': 'collapse' OK, now I'm able to replicate it, and I've found the source of the problem but

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread James Bennett
On 4/4/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > I just realized that both the calendar and clock widgets were within a > fieldset with 'classes': 'collapse' I've got a test app running with date/time fields inside a collapsed fieldset, and it's rendering just fine in all the browsers I can thr

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread James Bennett
On 4/4/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > I just realized that both the calendar and clock widgets were within a > fieldset with 'classes': 'collapse' Hmm. I'll try that tomorrow and see if I can replicate it and find out what causes it. -- "May the forces of evil become confused on the

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread Bryan Chow
Caches cleared, same problem in Firefox on both Debian Linux and Windows. I just realized that both the calendar and clock widgets were within a fieldset with 'classes': 'collapse' I removed the classes and the problem went away. Note that it works fine in the non-Dojo admin with 'classes': 'co

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread James Bennett
On 4/4/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > Tested on Debian Sarge (Firefox from backports.org) and Windows XP. That's extremely weird... I just set up a fresh copy and tested on FF 1.5 on Ubuntu, and it looks fine. It also was fine on FF 1.5 on a Mac at work. Could you completely clear yo

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread Bryan Chow
Firefox 1.5 Tested on Debian Sarge (Firefox from backports.org) and Windows XP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@goog

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread James Bennett
On 4/4/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > One issue I noticed is that the calendar and clock widgets do not > render properly on Firefox -- they're positioned above the top of the > page instead of beside the field. What version of Firefox are you using? I'm unable to replicate that with

Re: Django/Dojo integration: take a look and speak up

2006-04-04 Thread Bryan Chow
Very cool! I tried installing the Dojo integration package into magic-removal from svn (latest revision = 2607). First impressions are that generally things seem to work without issue, although admittedly I haven't spent much time looking through the code yet. One issue I noticed is that the cal

Re: Django/Dojo integration: take a look and speak up

2006-04-03 Thread James Bennett
One more thing I forgot: though the Dojo "Event + I/O editon" dojo.js provides all the Dojo modules the admin needs at the moment, the package includes a full Dojo source tree, so if you want to start playing with this and improving it or experimenting with things you've wanted to do once Dojo/Dja

Django/Dojo integration: take a look and speak up

2006-04-03 Thread James Bennett
I've just finished up the first attempt at Django/Dojo integration; this is, essentially, the Django admin app refactored to make use exclusively of Dojo packages (both from Dojo itself and from a custom Django namespace) for all its JavaScript needs. So I've bundled it up and made it available fo