Re: is "nodelist" a magic member of django.template.Node?

2007-09-29 Thread shaunc
> > Also: in the future, please post questions like this to the django-users list. > I'm sorry, I should have known that... since I've started, I'll follow up here too, though, as doubling msg doesn't seem worthwhile. > As far as I know, you can't conditionally define a block -- in other > words,

Re: is "nodelist" a magic member of django.template.Node?

2007-09-29 Thread James Bennett
On 9/30/07, shaunc <[EMAIL PROTECTED]> wrote: > If I have the following in a parent context, with form.field a > BoundField without a HiddenInput widget: > > {% ifdisplayed form.field %} {% block a %} bar {% endblock %} {% > endifdisplayed %} >

is "nodelist" a magic member of django.template.Node?

2007-09-29 Thread shaunc
I have the following templatetag code to display differently based on whether a field is hidden: @register.tag def ifdisplayed( parser, token ): contents = token.contents.split() fieldName = template.Variable( contents[ 1 ] ) yesnodes = parser.parse( ( 'endifdisplayed', 'else' ) )

Re: I18n seems not to work with mod_wsgi

2007-09-29 Thread [EMAIL PROTECTED]
Doh, it was not mod_wsgi, or localemiddleware, it was the set_language_view() that after rev 6177 requires a post request On Sep 30, 4:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Found it, LocaleMiddleware is having some issues on mod_wsgi, i'll try > figuring out why. > > On Sep 30,

Re: I18n seems not to work with mod_wsgi

2007-09-29 Thread [EMAIL PROTECTED]
Found it, LocaleMiddleware is having some issues on mod_wsgi, i'll try figuring out why. On Sep 30, 1:55 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > What does your mod_python Apache configuration look like? > > Only difference at this point is that mod_wsgi hosted app would run as > distinc

Re: I18n seems not to work with mod_wsgi

2007-09-29 Thread Graham Dumpleton
What does your mod_python Apache configuration look like? Only difference at this point is that mod_wsgi hosted app would run as distinct user whereas mod_python would run it as Apache user. Need to see how you set PythonPath in mod_python configuration. Also, I am ignorant of a lot of what Dja

Re: unit test error on win

2007-09-29 Thread Carl Karsten
already reported: http://code.djangoproject.com/ticket/5507 Carl K --~--~-~--~~~---~--~~ 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@googlegroups.com T

unit test error on win

2007-09-29 Thread Carl Karsten
$ svnversion 6435 using the settings_sqlite.py here: http://code.djangoproject.com/wiki/TestingDjango works ok on linux, got this on win. Carl K C:\home\python\django\django_src\tests>runtests.py --settings settings == FAIL: