Merge branch 'comments'
authorEevee <git@veekun.com>
Fri, 23 Oct 2009 02:31:14 +0000 (19:31 -0700)
committerEevee <git@veekun.com>
Fri, 23 Oct 2009 02:31:14 +0000 (19:31 -0700)
1  2 
floof/controllers/art.py
floof/model/art.py

Simple merge
@@@ -20,7 -21,18 +21,8 @@@ class Art(Entity)
  
      uploader = ManyToOne('User', required=True)
      tags = OneToMany('Tag')
+     discussion = ManyToOne('Discussion')
  
 -    # def __init__(self, **kwargs):
 -    #     # I wanted to check for the existence of the file, but...
 -    #     # for some reason this FieldStorage object always conditions as falsey.
 -    #     # self.hash = save_file("art", kwargs.pop('file'))
 -    #     super(Art, self).__init__(**kwargs)
 -    #     # this is what super is doing, pretty much.
 -    #     # for key, value in kwargs.items():
 -    #     #     setattr(self, key, value)
 -    # left for posterity.
 -
      def set_file(self, file):
          self.hash = save_file("art", file)
          self.original_filename = file.filename