extend TimeFormat

2011-03-02 Thread marco ghidinelli
hello, i've a problem extending the TimeFormat class (used by "time" template filter). basically, i need a new method: def F(self): if self.date.minute == 0: return self.G() return u'%s:%s' % (self.G(), self.i()) very similar to the original one except for a G()

extend TimeFormat

2010-08-25 Thread marco ghidinelli
hello, i've a problem extending the TimeFormat class (used by "time" template filter). basically, i need a new method: def F(self): if self.date.minute == 0: return self.G() return u'%s:%s' % (self.G(), self.i()) very similar to the original one except for a G()

Re: nested template problem

2008-12-19 Thread marco ghidinelli
On Thu, Dec 18, 2008 at 11:42:19AM -0800, bruno desthuilliers wrote: > > i'm trying to display a nested array with no luck. > > > > that's my tries: > > > > --- python manage.py shell --- > > from django.template import Template, Context > > list_parts = { > >

nested template problem

2008-12-18 Thread marco ghidinelli
hello. Does django template engine supports nested dictionary? i'm trying to display a nested array with no luck. that's my tries: --- python manage.py shell --- from django.template import Template, Context list_parts = { 'root': {'value': [{'tag': 'a'},

Re: Apache Segmentation Fault on succesful authentication

2008-11-12 Thread marco ghidinelli
On Wed, Nov 12, 2008 at 03:22:02AM -0800, huw_at1 wrote: > > An update on this. > > 'which python' returns: > > libpython2.5.so.1.0 => not found > libpthread.so.0 => /lib64/libpthread.so.0 (0x0039a4a0) > libdl.so.2 => /lib64/libdl.so.2 (0x0039a460) >