Skip to content

Commit

Permalink
Added different sub interface for prevent double definition in IFile.
Browse files Browse the repository at this point in the history
If we implement IMime directly in IFile, we get the fields contentType and encoding twice.
One time in the Mime object wich is a subobject rendered in a separate widget and one time
in the IFile obeject itself.

TODO: check Schema wwidget, there is still a bug in the fileupload form.
Could be a proxy error.
  • Loading branch information
projekt01 committed Jan 23, 2005
1 parent 4ee6529 commit a8cc9d3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions browser/schemawidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,29 +114,16 @@ def getInputValue(self):
return content

def applyChanges(self, content):
print ""
print "applyChanges"
field = self.context
print "field = self.context ", self.context
print "content ", content

# create our new object value
value = field.query(content, None)
print "value ", value
if value is None:
# TODO: ObjectCreatedEvent here would be nice
print "if value is None:"
value = self.factory()
print "value ", value

# apply sub changes, see if there *are* any changes
# TODO: ObjectModifiedEvent here would be nice
print "self ", self
print "isProxy(self) ", isProxy(self)
print "isProxy(value) ", isProxy(value)
print "isProxy(field) ", isProxy(field)
print "isProxy(content) ", isProxy(content)
print "self.names ", self.names
changes = applyWidgetsChanges(self, field.schema, target=value,
names=self.names)

Expand Down

0 comments on commit a8cc9d3

Please sign in to comment.