Hide the 'link_id' field for site
Also construct the scope_path from the fields in case the entity
has not yet been created.
Patch by: Sverre Rabbelier
--- a/app/soc/views/models/presence.py Thu Jan 22 17:23:17 2009 +0000
+++ b/app/soc/views/models/presence.py Thu Jan 22 17:26:14 2009 +0000
@@ -116,7 +116,8 @@
"""See base.View._editPost().
"""
- scope_path = entity.key().name()
+ key_fields = self._logic.getKeyFieldsFromDict(fields)
+ scope_path = self._logic.getKeyNameForFields(key_fields)
home_link_id = fields['home_link_id']
# TODO notify the user if home_doc is not found
--- a/app/soc/views/models/site.py Thu Jan 22 17:23:17 2009 +0000
+++ b/app/soc/views/models/site.py Thu Jan 22 17:26:14 2009 +0000
@@ -64,6 +64,11 @@
new_params['public_template'] = 'soc/home/public.html'
+ new_params['create_extra_dynafields'] = {
+ 'link_id': forms.CharField(widget=forms.HiddenInput, required=True),
+ }
+ new_params['edit_dynafields'] = []
+
patterns = []
page_name = "Home Page"