Skip to content

Commit

Permalink
Update with changes from old jim-adapter branch.
Browse files Browse the repository at this point in the history
Command used:
  $ svn merge svn+ssh://philikon@svn.zope.org/repos/main/Zope3/branches/jim-adapter@41413 \
              svn+ssh://philikon@svn.zope.org/repos/main/Zope3/branches/jim-adapter@66386 .
  • Loading branch information
philikon committed Apr 4, 2006
1 parent 47fe6f1 commit daec302
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions browser/add.py
Expand Up @@ -115,12 +115,12 @@ def createAndAdd(self, data):
adapted = self.schema(content)
for name in self._set_after_add:
if name in data:
field = self.schema[name]
try:
field.set(adapted, data[name])
except ValidationError:
errors.append(sys.exc_info()[1])

if data[name] is not None:
field = self.schema[name]
try:
field.set(adapted, data[name])
except ValidationError:
errors.append(sys.exc_info()[1])
# We have modified the object, so we need to publish an
# object-modified event:
description = Attributes(self.schema, *self._set_after_add)
Expand Down

0 comments on commit daec302

Please sign in to comment.