summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-15 09:46:27 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-15 09:46:27 -0400
commit00ee09dcea30e0afa6d22331d6e2eff624f928d3 (patch)
tree398cb738d59b99eadea70befb7ba8811139e7b9b
parent14ff0892f13ad45c99043fd9c90b6b1b7829b268 (diff)
downloadbcfg2-00ee09dcea30e0afa6d22331d6e2eff624f928d3.tar.gz
bcfg2-00ee09dcea30e0afa6d22331d6e2eff624f928d3.tar.bz2
bcfg2-00ee09dcea30e0afa6d22331d6e2eff624f928d3.zip
added len() to PackagesSources object
-rw-r--r--src/lib/Server/Plugins/Packages/PackagesSources.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages/PackagesSources.py b/src/lib/Server/Plugins/Packages/PackagesSources.py
index e03303d30..d399838ae 100644
--- a/src/lib/Server/Plugins/Packages/PackagesSources.py
+++ b/src/lib/Server/Plugins/Packages/PackagesSources.py
@@ -97,3 +97,6 @@ class PackagesSources(Bcfg2.Server.Plugin.SingleXMLFileBacked,
def __str__(self):
return "PackagesSources: %s" % str(self.entries)
+
+ def __len__(self):
+ return len(self.entries)