Index: openacs-4/packages/dynamic-types/sql/postgresql/metadata-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dynamic-types/sql/postgresql/metadata-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dynamic-types/sql/postgresql/metadata-create.sql	14 Feb 2005 14:33:28 -0000	1.1
+++ openacs-4/packages/dynamic-types/sql/postgresql/metadata-create.sql	15 Feb 2005 13:55:34 -0000	1.2
@@ -220,6 +220,9 @@
       null,
       null
   );
+
+  insert into dtype_default_widgets (template_id, datatype)
+  values (v_template_id, ''email'');
   
   -- URL
   v_template_id := dtype_wdgt_tmpl__new (
@@ -233,6 +236,9 @@
       null
   );
   
+  insert into dtype_default_widgets (template_id, datatype)
+  values (v_template_id, ''url'');
+  
   -- Integer (default ''integer'' widget)
   v_template_id := dtype_wdgt_tmpl__new (
       null,
@@ -393,6 +399,18 @@
   insert into dtype_default_widgets (template_id, datatype)
   values (v_template_id, ''enumeration'');
 
+  -- create ''default'' form for acs_object with only object_id so that
+  -- by default the dtype::form api doesn''t try to add acs_object
+  -- attributes to forms
+  PERFORM dtype_widget__register_form_widget(
+      ''acs_object'', 
+      ''default'',
+      ''object_id'', 
+      ''hidden'', 
+      ''t'',
+      ''t''
+  );
+
   return 0;
 end;' language 'plpgsql';
 
