gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 37126 - gump/trunk/python/gump/rdf
Date Fri, 27 Aug 2004 17:13:57 GMT
Author: ajack
Date: Fri Aug 27 10:13:57 2004
New Revision: 37126

Modified:
   gump/trunk/python/gump/rdf/describer.py
Log:
Cope w/ None repo for RDF.

Modified: gump/trunk/python/gump/rdf/describer.py
==============================================================================
--- gump/trunk/python/gump/rdf/describer.py	(original)
+++ gump/trunk/python/gump/rdf/describer.py	Fri Aug 27 10:13:57 2004
@@ -164,12 +164,15 @@
                         Literal(project.getName()),
                         'Named')
         
-        #  With a repository...
-        self.addTriple( store,
-                        pSubject, 
-                        RDFDescriber.GUMP_NS["residesWithin"], 
-                        self.createURIRef(project.getModule().getRepository()),
-                        'Resides within')            
+        #  Within a repository...
+        
+        # :TODO: Why can this return None?
+        if project.getModule().hasRepository():
+            self.addTriple( store,
+                            pSubject, 
+                            RDFDescriber.GUMP_NS["residesWithin"], 
+                            self.createURIRef(project.getModule().getRepository()),
+                            'Resides within')            
                             
         # Describe dependencies...
         for dependency in project.getDirectDependencies():

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message