parameters: (self, page_url)
return_statement: return page_temp
docstring: Given an url, return that url suffixed by counter if it already exists
              :param page_url : the url to be checked for uniqueness
docstring_summary: Given an url, return that url suffixed by counter if it already exists
              :param page_url : the url to be checked for uniqueness
docstring_tokens: Given an url return that url suffixed by counter if it already exists : param page_url : the url to be checked for uniqueness
function: def get_unique_path(self, page_url):
          """ Given an url, return that url suffixed by counter if it already exists
              :param page_url : the url to be checked for uniqueness
          """
          inc = 0
          # we only want a unique_path for website specific.
          # we need to be able to have /url for website=False, and /url for website=1
          # in case of duplicate, page manager will allow you to manage this case
          domain_static = [('website_id', '=', self.get_current_website().id)]  # .website_domain()
          page_temp = page_url
          while self.env['website.page'].with_context(active_test=False).sudo().search([('url', '=', page_temp)] + domain_static):
              inc += 1
              page_temp = page_url + (inc and "-%s" % inc or "")
          return page_temp
function_tokens: def get_unique_path ( self , page_url ) : inc = 0 # we only want a unique_path for website specific. # we need to be able to have /url for website=False, and /url for website=1 # in case of duplicate, page manager will allow you to manage this case domain_static = [ ( 'website_id' , '=' , self . get_current_website ( ) . id ) ] # .website_domain() page_temp = page_url while self . env [ 'website.page' ] . with_context ( active_test = False ) . sudo ( ) . search ( [ ( 'url' , '=' , page_temp ) ] + domain_static ) : inc += 1 page_temp = page_url + ( inc and "-%s" % inc or "" ) return page_temp