def get_resource_docname(resource, is_list):
 if inspect.isclass(resource):
  class_name = resource.__name__
 else:
  class_name = resource.__class__.__name__
 class_name = class_name.replace('Resource', '')
 docname = uncamelcase(class_name, '-')
 if (is_list and (resource.name != resource.name_plural)):
  docname = ('%s-list' % docname)
 return docname

def get_resource_docname ( resource , is_list ) : if inspect . isclass ( resource ) : class_name = resource . __name__ else : class_name = resource . __class__ . __name__ class_name = class_name . replace ( 'Resource' , '' ) docname = uncamelcase ( class_name , '-' ) if ( is_list and ( resource . name != resource . name_plural ) ) : docname = ( '%s-list' % docname ) return docname
returns the name of the page used for a resources documentation .