{"action":"closed","issue":{"url":"https://api.github.com/repos/bleroy/vandelay/issues/17","repository_url":"https://api.github.com/repos/bleroy/vandelay","labels_url":"https://api.github.com/repos/bleroy/vandelay/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/bleroy/vandelay/issues/17/comments","events_url":"https://api.github.com/repos/bleroy/vandelay/issues/17/events","html_url":"https://github.com/bleroy/vandelay/issues/17","id":164596921,"number":17,"title":"Import/Export functionality for Part Drivers","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bleroy/vandelay/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/bleroy/vandelay/labels/low","name":"low","color":"5BB13D"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-08T19:09:56Z","updated_at":"2016-07-08T19:09:57Z","closed_at":"2016-07-08T19:09:57Z","body":"As described by jao28 in [ http://vandelay.codeplex.com/discussions/356335\n](http://vandelay.codeplex.com/discussions/356335)  \n  \nPlease add import/export functionality to all drivers.  \n  \nprotected override void Exporting(MetaPart part, ExportContentContext context)\n{  \n\n    \n    \n    context.Element(part.PartDefinition.Name).SetAttributeValue(\"Keywords\", part.Keywords);\n    context.Element(part.PartDefinition.Name).SetAttributeValue(\"Description\", part.Description);\n\n}  \n  \nprotected override void Importing(MetaPart part, ImportContentContext context)\n{  \n\n    \n    \n    var keywords = context.Attribute(part.PartDefinition.Name, \"Keywords\");\n    if (!String.IsNullOrWhiteSpace(keywords)) {\n        part.Keywords = keywords;\n    }\n    var description = context.Attribute(part.PartDefinition.Name, \"Description\");\n    if (!String.IsNullOrWhiteSpace(description)) {\n        part.Description = description;\n    }\n\n}  \n  \nThanks!  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 21](http://vandelay.codeplex.com/workitem/21)\n**Status:**\tClosed\n**Reason Closed:**\tFixed\n**Assigned to:**\tUnassigned\n**Reported on:**\tJun 7, 2012 at 9:29 AM\n**Reported by:**\tsnagypeter\n**Updated on:**\tApr 11, 2014 at 1:31 AM\n**Updated by:**\tBertrandLeRoy\n**Closed on:**\tApr 11, 2014 at 1:31 AM\n**Closed by:**\tBertrandLeRoy\n**Status:**\tClosed\n**Reason Closed:**\tFixed\n**Assigned to:**\tUnassigned\n**Reported on:**\tJun 7, 2012 at 9:29 AM\n**Reported by:**\tsnagypeter\n**Updated on:**\tApr 11, 2014 at 1:31 AM\n**Updated by:**\tBertrandLeRoy\n**Closed on:**\tApr 11, 2014 at 1:31 AM\n**Closed by:**\tBertrandLeRoy\n"}}
{"actor":{"display_login":"bleroy"}}