RockefellerArchiveCenter / pyfc4

Python client for Fedora Commons 4
MIT License
7 stars 0 forks source link

resource create return True or resource instance? #77

Closed ghukill closed 7 years ago

ghukill commented 7 years ago

Just encountered a scenario where this:

tester = pcdm.models.PCDMCollection(repo).create()

as expected, returned True. But that wasn't terribly helpful. To write one-liners, it would be handy if it returned self perhaps? Then again, keying off result of .create is harder when not boolean.

ghukill commented 7 years ago

Keeping as True - two lines is fine.