ajack 2003/11/18 12:58:18
Modified: python/gump/model owner.py ant.py
python/gump/utils xmlutils.py
python/gump/document forrest.py
Log:
Another fix, another bug. Creating unit tests, but need more coverage...
Revision Changes Path
1.3 +1 -0 jakarta-gump/python/gump/model/owner.py
Index: owner.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/model/owner.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- owner.py 18 Nov 2003 19:28:05 -0000 1.2
+++ owner.py 18 Nov 2003 20:58:18 -0000 1.3
@@ -61,6 +61,7 @@
"""
This module contains information on an object's owner
"""
+from gump import log
from gump.utils import getIndent
class Ownable:
1.4 +2 -2 jakarta-gump/python/gump/model/ant.py
Index: ant.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/model/ant.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ant.py 18 Nov 2003 17:29:17 -0000 1.3
+++ ant.py 18 Nov 2003 20:58:18 -0000 1.4
@@ -148,7 +148,7 @@
# :TODO: Convert to ModelObject
project.addDependency(dependency)
else:
- log.error('No such project [' + projectName + '] for property')
+ project.addError('No such project [' + projectName + '] for property')
def expandDependencies(self,project,workspace):
#
@@ -166,7 +166,7 @@
elif not hasattr(property,'name') or not property['name']:
# :TODO: Reconsider later, but default to project name for now...
property['name']=depend.project
- log.warn('Unnamed property for ' + project.name + ' in depend on: '
+ depend.project )
+ project.addWarn('Unnamed property for [' + project.name + '] in
depend on: ' + depend.project )
# :TODO: AJ added this, no idea if it is right/needed.
if depend.id: property['ids']= depend.id
1.2 +2 -1 jakarta-gump/python/gump/utils/xmlutils.py
Index: xmlutils.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/utils/xmlutils.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xmlutils.py 17 Nov 2003 22:10:55 -0000 1.1
+++ xmlutils.py 18 Nov 2003 20:58:18 -0000 1.2
@@ -190,7 +190,8 @@
except AttributeError:
# It is OK if people extend the GOM...
log.info("No metadata related to " +
- "name '%s' on %s" % (name, self.__class__.__name__))
+ "name '%s' on %s" % \
+ (name, self.__class__.__name__))
#
# Process characters...
1.5 +2 -3 jakarta-gump/python/gump/document/forrest.py
Index: forrest.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/document/forrest.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- forrest.py 18 Nov 2003 17:29:18 -0000 1.4
+++ forrest.py 18 Nov 2003 20:58:18 -0000 1.5
@@ -958,7 +958,7 @@
except Exception, details:
stream.write('Failed to XML serialize the data. ' + str(details))
stream.seek(0)
- document.createSource(stream.read())
+ xmlSection.createSource(stream.read())
stream.close()
def documentSummary(self,document,summary,description='Project Summary'):
@@ -978,8 +978,7 @@
if not worklist: return
- workSection=document.createSection(description)
-
+ workSection=document.createSection(description)
workTable=workSection.createTable(['Name','Type','State','Start','Elapsed'])
for work in worklist:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]