Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Fix code to reflect latest API change. The id and name must be a bytes
Browse files Browse the repository at this point in the history
line now.
  • Loading branch information
strichter committed Jul 3, 2007
1 parent bc92cd5 commit bd4bbb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/z3c/formdemo/addressbook/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def update(self):
self.addressForms = []
for name, address in self.getContent().items():
form = AddressForm(address, self.request, self.parentForm)
form.name = name
form.name = str(name)
# The prefix is created at runtime to guarantee uniqueness
form.prefix = self.prefix + name + '.'
form.prefix = self.prefix + str(name) + '.'
form.update()
# Updating the address can also mean its deletion. If deleted, it
# is not added to the list.
Expand Down
2 changes: 1 addition & 1 deletion src/z3c/formdemo/spreadsheet/spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, spreadsheet, content):
super(EditRow, self).__init__(spreadsheet.context, spreadsheet.request)
self.fields = spreadsheet.rowFields
self.content = content
self.prefix = content.__name__+'.'
self.prefix = str(content.__name__) + '.'
self.sessionKey = spreadsheet.sessionKey

@property
Expand Down

0 comments on commit bd4bbb6

Please sign in to comment.