Moving Away from if/else Template Logic

2011-06-14 Thread Greg Corradini
Hello All, I'm try to get away from doing if/else in a template: {% if x.message|regtest == "True" %} do something cool {% else %} do something less cool {% endif %} given this template filter: @register.filter(name='regtest') def regtest(value): regex = re.compile(r'^\*\*(?P.*)\*\*

Re: Django.contrib.gis.gdal Questions

2010-10-10 Thread Greg Corradini
the scenes to do interop to other data formats? Or is the point of these wrappers more as a utility for users to inspect data (mainly shapefiles)? Just wondering :) On Oct 9, 7:50 am, Greg Corradini wrote: > I'm wondering if django.contrib.gis.gdal Python wrappers were only > meant to

Django.contrib.gis.gdal Questions

2010-10-09 Thread Greg Corradini
I'm wondering if django.contrib.gis.gdal Python wrappers were only meant to implement read functionality of OGR? It seems that way. I don't see any implementation of CreateDatasource in the driver.py class. Is this correct or is there a way to write to shapefiles with these bindings that I'm missin