Re: floatformat builtin filter broken by null

2007-08-24 Thread Masida
Hi Greg, Strictly speaking None ain't a number (nor a float), so it probably isn't a bug. Although it might be convenient at times to automatically convert None to 0 (as in your case). A simple workaround I always use is: {{ best_avg_reliability|default:0|floatformat:1 }} Greetings, - Matthias

Re: Simple python question

2007-04-10 Thread Masida
This should work: class Foo: def hello(self): return "Hello World" object = Foo() print object.hello() More information: http://www.diveintopython.org/object_oriented_framework/index.html Ciao, - Matt On Apr 11, 12:22 am, "Grupo Django" <[EMAIL PROTECTED]> wrote: > I know this i

Re: How to add a calendar to my app

2007-03-23 Thread Masida
r where I can test it? > Thank you. > L. > > On Mar 23, 10:14 pm, "Masida" <[EMAIL PROTECTED]> wrote: > > Ok, here you go:http://www.djangosnippets.org/snippets/129/ > > > > Hope you find it usefull. > > If you have any questions, do not hes

Re: How to add a calendar to my app

2007-03-23 Thread Masida
Ok, here you go: http://www.djangosnippets.org/snippets/129/ Hope you find it usefull. If you have any questions, do not hesitate to contact! Ciao, - Matthias On Mar 23, 8:49 pm, "Pythoni" <[EMAIL PROTECTED]> wrote: > Please post it. > Thank you > L. > > On Ma

Re: How to add a calendar to my app

2007-03-23 Thread Masida
I've written a very simple calendar template_tag, if you're interested I can post it here or put it on djangosnippets.org. Ciao, - Matthias Pythoni wrote: > How much difficult is to add calendar ,like that in the admin , to my > templates? > Or is there an easier way to add any different calen

Re: Django Gebruikers Groep

2006-11-12 Thread Masida
Goed idee, ik heb ook interesse! Is er toevallig al een Nederlandstalige Django website? Voor Rails weet ik dat er al wel een aantal alternatieven zijn... Groeten, - Matthias baasbartels schreef: > Aardig om te zien dat er interesse is. Als antwoord op de vraag van > Franklin: heel precies heb