It totally is--- the idea is to replace this with a real method when we get
to plot creation.


On Tue, Jul 23, 2013 at 10:15 AM, Justin Walgran
<notifications@github.com>wrote:

> In opentreemap/treemap/views.py:
>
> > +def create_plot(user, instance, *args, **kwargs):
> > +    if 'x' in kwargs and 'y' in kwargs:
> > +        geom = Point(
> > +            kwargs['x'],
> > +            kwargs['y'])
> > +    elif 'lon' in kwargs and 'lat' in kwargs:
> > +        geom = Point(
> > +            kwargs['lon'],
> > +            kwargs['lat'])
> > +    else:
> > +        geom = Point(50, 50)
> > +
> > +    p = Plot(geom=geom, instance=instance, created_by=user)
> > +    p.save_with_user(user)
> > +
> > +    if 'height' in kwargs:
>
> Were if 'height' in kwargs and the hard coded t.height > 1000 carried
> over from OTM 1. Looks like some crufty cruft.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/azavea/OTM2/pull/85/files#r5345601>
> .
>



-- 
Adam Hinz
Software Engineer, Azavea
hinz.adam@gmail.com | c: 608-445-8391 | Twitter: @ahinz