Commits

Anonymous committed cee08e9

make assigning a list to a property in ordf.vocab.owl replace rathern than augment the values

Comments (0)

Files changed (2)

     >>> norman.name = Literal("Norman Bethune")
     >>> [str(x) for x in norman.name]
     ['Norman Bethune']
+    >>> norman.name = [Literal('Bob Smith')]
+    >>> [str(x) for x in norman.name]
+    ['Bob Smith']
     >>> del norman.name
     >>> len(list(norman.name))
     0
         if not value: return
         if not isinstance(value, list) and not isinstance(value, tuple):
             value = (value,)
+        else:
+            obj.graph.remove((obj.identifier, self.term, None))
         for x in value:
             if hasattr(x, "identifier") and isinstance(x.identifier, Node):
                 x = x.identifier
 from setuptools import setup, find_packages
 import sys, os
 
-version = '0.29'
+version = '0.30'
 
 try:
     from mercurial import ui, hg, error