def _format_slug_for_request(slug):
 index = slug.find(TEMPLATE_TITLE_PREFIX)
 if (index != (-1)):
  slug = ('%s%s' % (TEMPLATE_TITLE_PREFIX, slug[(index + len(TEMPLATE_TITLE_PREFIX)):].lower()))
 return slug

def _format_slug_for_request ( slug ) : index = slug . find ( TEMPLATE_TITLE_PREFIX ) if ( index != ( - 1 ) ) : slug = ( '%s%s' % ( TEMPLATE_TITLE_PREFIX , slug [ ( index + len ( TEMPLATE_TITLE_PREFIX ) ) : ] . lower ( ) ) ) return slug
formats a document slug which will play nice with kumascript caching .