#NEWLINE# def __init__( self , uid , user = None ) : #NEWLINE# #INDENT# '\n        TODO:\n        * Provide ability to self.save()\n        * Extend __init__ to populate User obj as Storage\n        ' #NEWLINE# u = ( user if u else self . get ( uid ) ) #NEWLINE# if ( u is None ) : #NEWLINE# #INDENT# raise AttributeError ( ( 'No user found with id: %s' % uid ) ) #NEWLINE# #UNINDENT# for ( k , v ) in u . items ( ) : #NEWLINE# #INDENT# setattr ( self , k , v )