Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/trunk/gaphor@306 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
amolenaar committed May 14, 2004
1 parent d4ec54d commit d74370d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gaphor/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def save_reference(name, value):
This applies to both UML as well as canvas items.
"""
# Save a reference to the object:
assert value.id, 'Referenced element %s has no id' % value
buffer.write('<%s><ref refid="%s"/></%s>\n' % (name, value.id, name))
if value.id: #, 'Referenced element %s has no id' % value
buffer.write('<%s><ref refid="%s"/></%s>\n' % (name, value.id, name))

def save_collection(name, value):
"""Save a list of references.
Expand All @@ -47,8 +47,8 @@ def save_collection(name, value):
buffer.write('<%s><reflist>' % name)
for v in value:
#save_reference(name, v)
assert v.id, 'Referenced element %s has no id' % v
buffer.write('<ref refid="%s"/>' % v.id)
if v.id: #, 'Referenced element %s has no id' % v
buffer.write('<ref refid="%s"/>' % v.id)
buffer.write('</reflist></%s>' % name)

def save_value(name, value):
Expand Down

0 comments on commit d74370d

Please sign in to comment.