{"action":"created","issue":{"url":"https://api.github.com/repos/ucd-cws/arcpy_metadata/issues/16","repository_url":"https://api.github.com/repos/ucd-cws/arcpy_metadata","labels_url":"https://api.github.com/repos/ucd-cws/arcpy_metadata/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ucd-cws/arcpy_metadata/issues/16/comments","events_url":"https://api.github.com/repos/ucd-cws/arcpy_metadata/issues/16/events","html_url":"https://github.com/ucd-cws/arcpy_metadata/issues/16","id":155417697,"number":16,"title":"Several Python errors .Append()","user":{"login":"samisnunu","id":17934795,"avatar_url":"https://avatars.githubusercontent.com/u/17934795?v=3","gravatar_id":"","url":"https://api.github.com/users/samisnunu","html_url":"https://github.com/samisnunu","followers_url":"https://api.github.com/users/samisnunu/followers","following_url":"https://api.github.com/users/samisnunu/following{/other_user}","gists_url":"https://api.github.com/users/samisnunu/gists{/gist_id}","starred_url":"https://api.github.com/users/samisnunu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samisnunu/subscriptions","organizations_url":"https://api.github.com/users/samisnunu/orgs","repos_url":"https://api.github.com/users/samisnunu/repos","events_url":"https://api.github.com/users/samisnunu/events{/privacy}","received_events_url":"https://api.github.com/users/samisnunu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-18T05:09:37Z","updated_at":"2016-05-21T20:14:13Z","closed_at":"2016-05-21T20:14:13Z","body":"Hi,\r\n\r\nDuring running the following simple test below, I ran into the following errors:\r\n\r\n------------------------------------------------------------------------------------------\r\nimport arcpy_metadata as md\r\nimport datetime\r\nimport unittest\r\nimport os\r\nimport shutil\r\nimport arcpy\r\nimport gc\r\n\r\nfeaure_class =r\"C:\\Temp\\arcpy_metadata-master\\tests\\test_data_temp_folder\\test.gdb\\root_poly\"\r\nmetadata = md.MetadataEditor(feaure_class)\r\nmetadata.title.set(\"The metadata title!\")\r\n\r\ngenerated_time = \"This layer was generated on {0:s}\".format(datetime.datetime.now().strftime(\"%m/%d/%Y %I:%M %p\"))\r\n\r\nmetadata.purpose.set = (\"Layer represents locations of the rare Snipe.\")\r\n\r\nmetadata.abstract.append(\"generated by ___ software\")\r\nmetadata.abstract.append(generated_time)\r\nmetadata.tags.add([\"foo\", \"bar\", \"baz\"])\r\n\r\nmetadata.finish()  # save the metadata back to the original source feature class and cleanup\r\ngc.collect()\r\n\r\n--------------------------------------------------------------------------------------------------------------------\r\n\r\nAt:\r\n**metadata.title.set(..)**\r\n**metadata.purpose.set (..)**\r\n\r\nError encountered:\r\nAttributeError: 'str' object has no attribute 'set'\t\t\t\t\r\n\r\nalso for:\r\n**metadata.abstract.append(..)**\r\n\r\nError encountered:\r\nAttributeError: 'str' object has no attribute 'append'\r\n\r\nAlso for:\r\n**metadata.tags.add([..])**\r\n\r\nError encountered:\r\nAttributeError: 'list' object has no attribute 'add'\t\t\t\r\n\r\nI'm using:\r\npython 2.7.5\r\nArcGIS 10.2.2\r\n\r\nPlease advise,\r\nThanks,"},"comment":{"url":"https://api.github.com/repos/ucd-cws/arcpy_metadata/issues/comments/220798062","html_url":"https://github.com/ucd-cws/arcpy_metadata/issues/16#issuecomment-220798062","issue_url":"https://api.github.com/repos/ucd-cws/arcpy_metadata/issues/16","id":220798062,"user":{"login":"thomas-maschler","id":7538337,"avatar_url":"https://avatars.githubusercontent.com/u/7538337?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-maschler","html_url":"https://github.com/thomas-maschler","followers_url":"https://api.github.com/users/thomas-maschler/followers","following_url":"https://api.github.com/users/thomas-maschler/following{/other_user}","gists_url":"https://api.github.com/users/thomas-maschler/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-maschler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-maschler/subscriptions","organizations_url":"https://api.github.com/users/thomas-maschler/orgs","repos_url":"https://api.github.com/users/thomas-maschler/repos","events_url":"https://api.github.com/users/thomas-maschler/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-maschler/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T20:14:13Z","updated_at":"2016-05-21T20:14:13Z","body":"Thanks Sami.\r\nI will include your suggestions in the next update.\r\n\r\nClosing this ticket"}}
{"actor":{"display_login":"thomas-maschler"}}