web/views/editforms.py
changeset 4277 35cd057339b2
parent 4252 6c4f109c2b03
child 4278 24736a127bf1
--- a/web/views/editforms.py	Wed Jan 20 08:43:41 2010 +0100
+++ b/web/views/editforms.py	Wed Jan 20 10:06:12 2010 +0100
@@ -30,21 +30,6 @@
 
 _pvdc = uicfg.primaryview_display_ctrl
 
-def relation_id(eid, rtype, role, reid):
-    """return an identifier for a relation between two entities"""
-    if role == 'subject':
-        return u'%s:%s:%s' % (eid, rtype, reid)
-    return u'%s:%s:%s' % (reid, rtype, eid)
-
-def toggleable_relation_link(eid, nodeid, label='x'):
-    """return javascript snippet to delete/undelete a relation between two
-    entities
-    """
-    js = u"javascript: togglePendingDelete('%s', %s);" % (
-        nodeid, xml_escape(dumps(eid)))
-    return u'[<a class="handle" href="%s" id="handle%s">%s</a>]' % (
-        js, nodeid, label)
-
 
 class DeleteConfForm(forms.CompositeForm):
     __regid__ = 'deleteconf'