Proposal: Optgroup integration with FilePathField and SelectField

2006-08-23 Thread scum
I'd like to integrate the optgroup tag (http://www.w3schools.com/tags/tag_optgroup.asp) into the FilePathField (which would in code would lead to this being tacked onto the SelectField object) and want to get people's thoughts before writing the code. My thought would be that: NAME_CHOICES = (

Proposal: Shorter comment tag

2006-01-11 Thread scum
Could the comment tag be simplified to something like {! !} or {# #}. The current convention is a bit bulky for my taste. {% comment %} {% if 1 %}{% endif %} {% endcomment %} could be simplified to... {! {% if 1 %}{% endif %} !} or {% comment %} Short comment about following code {% endcomme

Re: Proposal: Shorter comment tag

2006-01-12 Thread scum
For those that seem to like the idea of shorter comments, I whipped up this piece of middleware for your projects. It's my first attempt at middleware so the code might seem a bit immature for you advanced djangoers out there. I opted to use the {# #} syntax, but that can easily be changed in th

Re: Tinymce

2006-01-31 Thread scum
Try changing your js variable to js = ('js/tiny_mce/tiny_mce.js','js/tiny_mce/textareas.js'), For some reason on my installation, the /media/ is automagically added.

Re: DoJo Integration & JSON methods

2006-02-15 Thread scum
simplejson rocks. no objections here.

Re: are TinyMCE + other HTML input editors safe to use.

2006-02-15 Thread scum
I just started using TinyMCE inside django's admin interface on one site I'm working on. Simon is right... it's a bit sloppy and, from my experience, really falters when pasting text. I've even had pages not saving correctly after pasting text from another application. As long as I stick with e

Re: proposal: endif, endfor etc assume whatever follows in tag is comment

2006-03-15 Thread scum
+1 for {# #} comment tag. I've written some middleware to allow me to use the {# #} syntax and it has made templating much smoother. The {# #} middleware and other arguments on this subject can be found here: http://groups.google.com/group/django-developers/browse_frm/thread/d4e30079153011e1/55d