#NEWLINE# def generate_non_minimized( self , kargs ) : #NEWLINE# #INDENT# 'Generate a non-minimal version of the URL' #NEWLINE# for k in ( self . maxkeys - self . minkeys ) : #NEWLINE# #INDENT# if ( k not in kargs ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . make_unicode ( kargs [ k ] ) != self . make_unicode ( self . defaults [ k ] ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for arg in self . minkeys : #NEWLINE# #INDENT# if ( ( arg not in kargs ) or ( kargs [ arg ] is None ) ) : #NEWLINE# #INDENT# if ( arg in self . dotkeys ) : #NEWLINE# #INDENT# kargs [ arg ] = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for k in k : #NEWLINE# #INDENT# if ( k in self . maxkeys ) : #NEWLINE# #INDENT# if ( k in self . dotkeys ) : #NEWLINE# #INDENT# if kargs [ k ] : #NEWLINE# #INDENT# kargs [ k ] = url_quote ( ( '.' + as_unicode ( kargs [ k ] , self . encoding ) ) , self . encoding ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# kargs [ k ] = url_quote ( as_unicode ( kargs [ k ] , self . encoding ) , self . encoding ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ( self . regpath % kargs )