ucd-cws / arcpy_metadata

Python metadata editing classes for ArcGIS feature classes
90 stars 32 forks source link

Added option to insert tags into any position #50

Closed ryankdalton closed 4 years ago

ryankdalton commented 4 years ago

Added "metadata.tags.insert(index,value)" to allow users to insert new tags at specified index locations within the list of tags. This is particularly useful if you want a new tag to be the first tag

nickrsan commented 4 years ago

Hi Ryan,

Thanks for the contribution. It looks good to me, but I'd love to get the parameters in the docstrings completed for consistency. I know they're not full on the existing ones, but hoping to not create more debt to fix. If you can't get to that, I'll do it before merging, but wanted to mention it. Thanks!

nickrsan commented 4 years ago

I added the missing parameters to the docstrings. I tried to run tests, but they were failing on my machine for FGDB items - but I'm almost certain it's unrelated - they failed on master and I think it's an ArcGIS problem, not ours.

This code is now on PyPI as arcpy_metadata 0.5.3. Thanks Ryan!