I meant in the text string: "No Vector Table"


On Tue, Mar 25, 2014 at 9:29 AM, loicgasser <notifications@github.com>wrote:

> In chsdi/views/mapservice.py:
>
> > @@ -253,6 +253,18 @@ def _find(request):
> >
> >      return {'results': features}
> >
> > +@view_config(route_name='featureAttributes', renderer='jsonp')
> > +def feature_attributes(request):
> > +    ''' This service is used to expose the
> > +    attributes of vector layers. '''
> > +    params = LayersParams(request)
> > +    layerId = request.matchdict.get('layerId')
> > +    models = models_from_name(layerId)
> > +    # Models for the same layer have the same attributes
> > +    if models is None:
> > +        raise exc.HTTPBadRequest('No Vector Table was found for %s' %layerId)
>
> Camel case is used for classes, variable names and parameters (at least in
> the mapservice).
> The snake notation is used for methods and functions.
> There is noe clear rule concerning that though.
> I should go through all the code and define some clear rules for that.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/geoadmin/mf-chsdi3/pull/542/files#r10920515>
> .
>



-- 
Twitter: http://twitter.com/cedricmoullet
Linked In: http://www.linkedin.com/in/cedricmoullet

<http://twitter.com/cedricmoullet>