#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# extra = '' . join ( [ ( ', %s=%r' % ( k , v ) ) for ( k , v ) in iteritems ( self . __kwargs ) ] ) #NEWLINE# if ( self . database is None ) : #NEWLINE# #INDENT# return ( 'DBRef(%r, %r%s)' % ( self . collection , self . id , extra ) ) #NEWLINE# #UNINDENT# return ( 'DBRef(%r, %r, %r%s)' % ( self . collection , self . id , self . database , extra ) )