--- ECHO_content/ECHO_collection.py 2004/06/07 14:30:16 1.99 +++ ECHO_content/ECHO_collection.py 2004/06/07 14:53:55 1.102 @@ -2322,7 +2322,7 @@ class ECHO_partner(Image,Persistent): self.email=email self.country=country self.precondition=precondition - self.copyrightType=copyrightType + self.copyrightType=copyrightType data, size = self._read_data(file) content_type=self._get_content_type(file, data, id, content_type) self.update_data(data, content_type, size) @@ -2338,7 +2338,7 @@ class ECHO_partner(Image,Persistent): self.person=person self.email=email self.country=country - self.copyrightType=copyrightType + self.copyrightType=copyrightType if RESPONSE is not None: RESPONSE.redirect('manage_main') @@ -2357,7 +2357,7 @@ manage_addECHO_partnerForm=DTMLFile('dtm -def manage_addECHO_partner(self, id, file,url, person, email, country, title='', precondition='', content_type='', +def manage_addECHO_partner(self, id,copyrightType, file,url, person, email, country, title='', precondition='', content_type='', REQUEST=None): """ Add a new ECHO_partner object. @@ -2376,7 +2376,7 @@ def manage_addECHO_partner(self, id, fil self=self.this() # First, we create the image without data: - self._setObject(id, ECHO_partner(id,title,url,'',person, email, country, content_type, precondition)) + self._setObject(id, ECHO_partner(id,title,url,'',copyrightType, person, email, country, content_type, precondition)) # Now we "upload" the data. By doing this in two steps, we # can use a database trick to make the upload more efficient.