diff -r d7b643255255 -r 0e89b027b140 app/soc/views/models/base.py --- a/app/soc/views/models/base.py Wed Dec 03 23:48:33 2008 +0000 +++ b/app/soc/views/models/base.py Wed Dec 03 23:49:10 2008 +0000 @@ -494,7 +494,12 @@ fields: the new field values """ - pass + # If scope_logic is not defined, this entity has no scope + if 'scope_logic' not in self._params: + return + + scope = self._params['scope_logic'].logic.getFromKeyName(fields['scope_path']) + fields['scope'] = scope def _public(self, request, entity, context): """Performs any required processing to get an entities public page. @@ -516,7 +521,8 @@ form: the django form that will be used for the page """ - pass + # fill in the email field with the data from the entity + form.fields['scope_path'].initial = entity.scope_path def _editSeed(self, request, seed): """Performs any required processing on the form to get its edit page.