### Eclipse Workspace Patch 1.0
#P FeedsPatch
Index: sites/all/modules/feeds/plugins/FeedsNodeProcessor.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feeds/plugins/FeedsNodeProcessor.inc,v
retrieving revision 1.17
diff -u -r1.17 FeedsNodeProcessor.inc
--- sites/all/modules/feeds/plugins/FeedsNodeProcessor.inc	3 Dec 2009 20:55:05 -0000	1.17
+++ sites/all/modules/feeds/plugins/FeedsNodeProcessor.inc	9 Dec 2009 16:47:03 -0000
@@ -60,8 +60,10 @@
 
         // Populate properties that are set by node_object_prepare().
         $node->log = 'Created/updated by FeedsNodeProcessor';
-        $node->uid = 0;
-
+        //Load the user object based on the user name
+        $assigned_user = user_load(array('name' => $this->config['owned_by_user']));
+        $node->uid = $assigned_user->uid;
+        
         // Execute mappings from $item to $node.
         $this->map($item, $node);
 
@@ -150,6 +152,7 @@
       'content_type' => $type, // @todo: provide default content type feed_item.
       'update_existing' => 0,
       'expire' => FEEDS_EXPIRE_NEVER,
+      'owned_by_user'=>'',
       'mappings' => array(),
     );
   }
@@ -181,6 +184,14 @@
       '#description' => t('Select after how much time nodes should be deleted. The node\'s published date will be used for determining the node\'s age, see Mapping settings.'),
       '#default_value' => $this->config['expire'],
     );
+    $form['owned_by_user'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Owner for created nodes'),
+      '#description' => t('Select the user that will set as author of nodes'),
+      '#autocomplete_path' => 'user/autocomplete', 
+      '#default_value' => $this->config['owned_by_user'],
+    );
+    
     return $form;
   }
 
