fix: avoid route error in user view, when using wutta people view
kind of a temporary edge case here, can eventually change it back
This commit is contained in:
parent
1b78bd617c
commit
f7641218cb
|
@ -208,9 +208,13 @@ class UserView(PrincipalMasterView):
|
||||||
person_display = str(person)
|
person_display = str(person)
|
||||||
elif self.editing:
|
elif self.editing:
|
||||||
person_display = str(user.person or '')
|
person_display = str(user.person or '')
|
||||||
people_url = self.request.route_url('people.autocomplete')
|
try:
|
||||||
f.set_widget('person_uuid', forms.widgets.JQueryAutocompleteWidget(
|
people_url = self.request.route_url('people.autocomplete')
|
||||||
field_display=person_display, service_url=people_url))
|
except KeyError:
|
||||||
|
pass # TODO: wutta compat
|
||||||
|
else:
|
||||||
|
f.set_widget('person_uuid', forms.widgets.JQueryAutocompleteWidget(
|
||||||
|
field_display=person_display, service_url=people_url))
|
||||||
f.set_validator('person_uuid', self.valid_person)
|
f.set_validator('person_uuid', self.valid_person)
|
||||||
f.set_label('person_uuid', "Person")
|
f.set_label('person_uuid', "Person")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue