[Treepkg-commits] r371 - branches/treepkg-status/treepkg/info
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 22 13:09:52 CEST 2010
Author: bricks
Date: 2010-07-22 13:09:52 +0200 (Thu, 22 Jul 2010)
New Revision: 371
Modified:
branches/treepkg-status/treepkg/info/status.py
Log:
fixed some small issues
remember: run pychecker BEFORE the commit
Modified: branches/treepkg-status/treepkg/info/status.py
===================================================================
--- branches/treepkg-status/treepkg/info/status.py 2010-07-22 11:02:36 UTC (rev 370)
+++ branches/treepkg-status/treepkg/info/status.py 2010-07-22 11:09:52 UTC (rev 371)
@@ -56,7 +56,8 @@
group = get_packager_group(config)
treepkgrootinfo = TreepkgRootInfo(group.name, group.treepkg_dir,
group.tracks_dir)
- self.tpgkroot = TreepkgRoot(version, treepkgrootinfo)
+ version = "1.0"
+ self.tpkgroot = TreepkgRoot(version, treepkgrootinfo)
tracks = group.get_package_tracks()
for track in tracks:
@@ -118,7 +119,7 @@
class TreepkgRoot:
- def __init__(self, version, info)
+ def __init__(self, version, info):
self.version = version
self.info = info
self.tracks = []
@@ -134,7 +135,7 @@
for track in self.tracks:
tracksele.appendChild(track.toxml())
root.appendChild(tracksele)
- root.appendChild(info.toxml())
+ root.appendChild(self.info.toxml())
return root
@staticmethod
@@ -183,7 +184,7 @@
text = doc.createTextNode(self.version)
versionele.appendChild(text)
root.appendChild(versionele)
- return root
+ return root
@staticmethod
def fromxml(node):
@@ -195,8 +196,7 @@
treepkgpath = getTextFromNode(treepkgpathele)
trackspathele = getChild(infoele, "trackspath")
trackspath = getTextFromNode(trackspathele)
- trackinfo = TreepkgRootInfo(name, treepkgpath, trackspath, version)
- return trackinfo
+ return TreepkgRootInfo(name, treepkgpath, trackspath, version)
class TreepkgTrackInfo:
More information about the Treepkg-commits
mailing list