(cls, collection, **kwargs)
| 80 | |
| 81 | @classmethod |
| 82 | def create_collection(cls, collection, **kwargs): |
| 83 | path = os.path.abspath(expand_path(kwargs['path'])) |
| 84 | |
| 85 | if collection is not None: |
| 86 | try: |
| 87 | path = path % (collection,) |
| 88 | except TypeError: |
| 89 | raise ValueError('Exactly one %s required in path ' |
| 90 | 'if collection is not null.') |
| 91 | |
| 92 | checkfile(path, create=True) |
| 93 | kwargs['path'] = path |
| 94 | kwargs['collection'] = collection |
| 95 | return kwargs |
| 96 | |
| 97 | def list(self): |
| 98 | self._items = collections.OrderedDict() |
nothing calls this directly
no test coverage detected