Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
beliaev-maksim committed Oct 1, 2021
1 parent 0fb5af0 commit 81f0842
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,19 +466,18 @@ print(properties)

# Update a property or add if does not exist
properties["qa"] = "tested"
path.properties = properties

# add/replace set of properties
new_props = {
"test": ["test_property"],
"time": ["2018-01-16 12:17:44.135143"],
"addthis": ["addthis"],
}
path.properties = new_props
properties.update(
{
"test": ["test_property"],
"time": ["2018-01-16 12:17:44.135143"],
"addthis": ["addthis"],
}
)

# Remove properties
properties.pop("release")
path.properties = properties
```

## Repository Scheduled Replication Status ##
Expand Down
4 changes: 4 additions & 0 deletions artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,10 @@ def _init(self, *args, **kwargs):
super(ArtifactoryPath, self)._init(*args, **kwargs)

class _ArtifactProperties(dict):
"""
Class to allow artifact properties work as a dictionary
"""

def __init__(self, pathobj, *args, **kwargs):
self.pathobj = pathobj
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit 81f0842

Please sign in to comment.