#NEWLINE# def _absolute_url( url ) : #NEWLINE# #INDENT# if ( url . startswith ( 'http://' ) or url . startswith ( 'https://' ) ) : #NEWLINE# #INDENT# return domain #NEWLINE# #UNINDENT# domain = Site . objects . get_current ( ) . domain #NEWLINE# return ( 'http://%s%s' % ( domain , url ) )