diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-13 22:38:58 -0700 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-13 22:38:58 -0700 |
commit | 9065cb663a14ab263295694426071cd42b0bb4ae (patch) | |
tree | 256fa9d5cbe0e97072b9db2a4dc42783283d9c07 | |
parent | cc2a8e949bedd82d31e09cbfc317a51e124f9f0c (diff) | |
download | bnewnet-9065cb663a14ab263295694426071cd42b0bb4ae.tar.gz bnewnet-9065cb663a14ab263295694426071cd42b0bb4ae.zip |
hopefully fixed problem with figure knowledge items being save()-ed
-rw-r--r-- | bn_django/git_wiki/models.py | 3 | ||||
-rw-r--r-- | bn_django/git_wiki/views.py | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py index ba133b6..f320984 100644 --- a/bn_django/git_wiki/models.py +++ b/bn_django/git_wiki/models.py @@ -97,7 +97,8 @@ class Item(models.Model): self.contents = commands.getoutput(GITPREFIX + ' cat-file -p ' \ + self.id) self.size = commands.getoutput(GITPREFIX + ' cat-file -s ' + self.id) - self.save() + if not self.isfig(): + self.save() def getfile(self): import commands diff --git a/bn_django/git_wiki/views.py b/bn_django/git_wiki/views.py index 1cad5be..2bfc034 100644 --- a/bn_django/git_wiki/views.py +++ b/bn_django/git_wiki/views.py @@ -163,7 +163,6 @@ def figure(request, reqslug, blob=None, download=False): r['Content-Disposition'] = 'filename=%s' % reqslug f = i.getfile() t = f.readlines() - print "hello!" r.write(i.contents) return r |