#NEWLINE# def get_user_feed( self , uri = None , username = None ) : #NEWLINE# #INDENT# 'Retrieve a YouTubeVideoFeed of user uploaded videos.\n\n    Either a uri or a username must be provided.  This will retrieve list\n    of videos uploaded by specified user.  The uri will be of format\n    "http://gdata.youtube.com/feeds/api/users/{username}/uploads".\n\n    Args:\n      uri: An optional string representing the URI of the user feed that is\n          to be retrieved.\n      username: An optional string representing the username.\n\n    Returns:\n      A YouTubeUserFeed if successfully retrieved.\n\n    Raises:\n      YouTubeError: You must provide at least a uri or a username to the\n          GetYouTubeUserFeed() method.\n    ' #NEWLINE# if ( ( uri is None ) and ( uri is None ) ) : #NEWLINE# #INDENT# raise YouTubeError ( 'You must provide at least a uri or a username to the GetYouTubeUserFeed() method' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( username and ( not uri ) ) : #NEWLINE# #INDENT# uri = ( '%s%s/%s' % ( YOUTUBE_USER_FEED_URI , username , 'uploads' ) ) #NEWLINE# #UNINDENT# #UNINDENT# return self . get_feed ( uri , desired_class = gdata . youtube . data . VideoFeed )