Places.objects.all() returns a Django Queryset object: <a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#queryset-api">https://docs.djangoproject.com/en/dev/ref/models/querysets/#queryset-api</a><br><br>
<div class="gmail_quote">On Mon, Jun 4, 2012 at 11:44 AM, Mr Mark E Erbaugh <span dir="ltr">&lt;<a href="mailto:mark@microenh.com" target="_blank">mark@microenh.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Jim,<div><br></div><div>Does Places.objects.all() return an iterator or a sequence?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Mark</div></font></span><div class="im">
<div><br><div><div>On Jun 4, 2012, at 10:28 AM, <a href="mailto:jep200404@columbus.rr.com" target="_blank">jep200404@columbus.rr.com</a> wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">   def handle(self, *args, **options):<br>
       for record in Places.objects.all():<br>           if record.x and record.y:<br>               record.point = (<br>                   Point(float(record.x)/1000.,<br>                   float(record.y)/1000.))<br>           else:<br>
               record.point = None<br>           record.save()<br>       django.db.connection.close()<br></span></blockquote></div><br></div></div></div><br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br>