parameters: (self, featuretype)
return_statement: return self._check_spatial_resource(style_url, nsfeaturetype,
                                              style_obj)
docstring: Check Geoserver to see if a named style exists. Creates the style if not.
  
          @returns: True if the object exists or was created. False on error.
docstring_summary: Check Geoserver to see if a named style exists. Creates the style if not.
docstring_tokens: Check Geoserver to see if a named style exists . Creates the style if not .
function: def create_style(self, featuretype):
          """
          Check Geoserver to see if a named style exists. Creates the style if not.
  
          @returns: True if the object exists or was created. False on error.
          """
          nsfeaturetype = '%s:%s' % (
              self.ns,
              featuretype,
          )
          style_obj = {
              'style': {
                  'name': nsfeaturetype,
                  'filename': '%s.sld' % nsfeaturetype
              }
          }
  
          # Create the styles for the demographic layers
          style_url = '%s/rest/styles' % self.origin
  
          # Get or create the spatial style
          return self._check_spatial_resource(style_url, nsfeaturetype,
                                              style_obj)
function_tokens: def create_style ( self , featuretype ) : nsfeaturetype = '%s:%s' % ( self . ns , featuretype , ) style_obj = { 'style' : { 'name' : nsfeaturetype , 'filename' : '%s.sld' % nsfeaturetype } } # Create the styles for the demographic layers style_url = '%s/rest/styles' % self . origin # Get or create the spatial style return self . _check_spatial_resource ( style_url , nsfeaturetype , style_obj )