Skip to content

Commit

Permalink
Bundle.trees -> Bundle.as_View and View.treants -> View.as_Bundle
Browse files Browse the repository at this point in the history
See CHANGELOG for summary.
  • Loading branch information
dotsdl committed Mar 27, 2016
1 parent 006e013 commit e250c6e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
24 changes: 21 additions & 3 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
========================
datreant.core CHANGELOG
========================
=======================
datreant.core CHANGELOG
=======================

The rules for this file:
* entries are sorted newest-first.
Expand All @@ -17,6 +17,24 @@ The rules for this file:

* 0.7.0

API Changes

* ``Bundle.trees`` -> ``Bundle.as_View`` and ``View.treants`` ->
``View.as_Bundle``; change was made to remove ambiguity of
``Bundle.trees`` in light of ``View.trees``, and to make clear
that these properties serve as transformations in some way.

Enhancements


Fixes


Changes





03/23/16 dotsdl, andreabedini, richardjgowers, orbeckst, sseyler

Expand Down
4 changes: 2 additions & 2 deletions src/datreant/core/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def relpaths(self):
return [member.relpath for member in self]

@property
def treants(self):
def as_Bundle(self):
"""A Bundle of all existing Treants among the Trees and Leaves
in this View.
Expand Down Expand Up @@ -1015,7 +1015,7 @@ def flatten(self, exclude=None):
return flattened

@property
def trees(self):
def as_View(self):
"""Obtain a View giving the Tree for each Treant in this Bundle.
"""
Expand Down

0 comments on commit e250c6e

Please sign in to comment.