summaryrefslogtreecommitdiffstats
path: root/equations/models.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-09-16 22:48:06 -0400
committerbnewbold <bnewbold@manus.(none)>2007-09-16 22:48:06 -0400
commit7903b16c1cfa93e2683e140019afabdd86a6f34a (patch)
treefb7cd96d0973cde766b5fc05f31b2e488a4553f6 /equations/models.py
parent7660cb4236584e4d69b492d45133532a0a4d4791 (diff)
downloadequator-7903b16c1cfa93e2683e140019afabdd86a6f34a.tar.gz
equator-7903b16c1cfa93e2683e140019afabdd86a6f34a.zip
BROKEN, started work on symbols + vars interface
Diffstat (limited to 'equations/models.py')
-rw-r--r--equations/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/equations/models.py b/equations/models.py
index 6791eb2..d011181 100644
--- a/equations/models.py
+++ b/equations/models.py
@@ -33,6 +33,8 @@ class Symbol(models.Model):
self.render = self.renderdir + "%s.png" % self.id
super(Symbol, self).save()
+dispatcher.connect(update_render, signal=signals.pre_save, sender=Symbol)
+
def update_generic_variable(sender, instance, signal, *args, **kwargs):
"""Checks if there is a generic variable associated with this
symbol; create one if there isn't"""