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,7 +208,11 @@ 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 '')
|
||||||
|
try:
|
||||||
people_url = self.request.route_url('people.autocomplete')
|
people_url = self.request.route_url('people.autocomplete')
|
||||||
|
except KeyError:
|
||||||
|
pass # TODO: wutta compat
|
||||||
|
else:
|
||||||
f.set_widget('person_uuid', forms.widgets.JQueryAutocompleteWidget(
|
f.set_widget('person_uuid', forms.widgets.JQueryAutocompleteWidget(
|
||||||
field_display=person_display, service_url=people_url))
|
field_display=person_display, service_url=people_url))
|
||||||
f.set_validator('person_uuid', self.valid_person)
|
f.set_validator('person_uuid', self.valid_person)
|
||||||
|
|
Loading…
Reference in a new issue