Index: openacs-4/packages/evaluation/sql/postgresql/evaluation-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/sql/postgresql/evaluation-create.sql,v
diff -u -r1.17 -r1.18
--- openacs-4/packages/evaluation/sql/postgresql/evaluation-create.sql	17 Dec 2004 18:11:00 -0000	1.17
+++ openacs-4/packages/evaluation/sql/postgresql/evaluation-create.sql	5 Jan 2005 17:18:40 -0000	1.18
@@ -491,4 +491,85 @@
     END LOOP;
 return 0;
 end;' language 'plpgsql';
+
+---------------------------------------
+-- TEMPLATES
+---------------------------------------
+                                                                                                                                                             
+create function evaluation__create_folder ()
+returns integer as'
+declare
+    template_id integer;
+begin
+                                                                                                                                                             
+    -- Create the (default) content type template
+                                                                                                                                                             
+    template_id := content_template__new(
+      ''evaluation-tasks-default'', -- name
+      ''@text;noquote@'',               -- text
+      true                      -- is_live
+    );
+                                                                                                                                                             
+    -- Register the template for the content type
+                                                                                                                                                             
+    perform content_type__register_template(
+      ''evaluation_tasks'', -- content_type
+      template_id,             -- template_id
+      ''public'',              -- use_context
+      ''t''                    -- is_default
+    );
+                                                                                                                                                             
+    -- Create the (default) content type template
+                                                                                                                                                             
+    template_id := content_template__new(
+      ''evaluation-tasks-sols-default'', -- name
+      ''@text;noquote@'',               -- text
+      true                      -- is_live
+    );
+                                                                                                                                                             
+    -- Register the template for the content type
+                                                                                                                                                             
+    perform content_type__register_template(
+      ''evaluation_tasks_sols'', -- content_type
+      template_id,             -- template_id
+      ''public'',              -- use_context
+      ''t''                    -- is_default
+    );
+   -- Create the (default) content type template
+                                                                                                                                                             
+    template_id := content_template__new(
+      ''evaluation-answers-default'', -- name
+      ''@text;noquote@'',               -- text
+      true                      -- is_live
+    );
+                                                                                                                                                             
+    -- Register the template for the content type
+                                                                                                                                                             
+    perform content_type__register_template(
+      ''evaluation_answers'', -- content_type
+      template_id,             -- template_id
+      ''public'',              -- use_context
+      ''t''                    -- is_default
+    );
+                                                                                                                                                             
+    -- Create the (default) content type template
+                                                                                                                                                             
+    template_id := content_template__new(
+      ''evaluation-grades-sheets-default'', -- name
+      ''@text;noquote@'',               -- text
+      true                      -- is_live
+    );
+                                                                                                                                                             
+    -- Register the template for the content type
+                                                                                                                                                             
+    perform content_type__register_template(
+      ''evaluation_grades_sheets'', -- content_type
+      template_id,                      -- template_id
+      ''public'',                       -- use_context
+      ''t''                             -- is_default
+    );
+                                                                                                                                                             
+    return null;
+end;' language 'plpgsql';                                                                                                                                   
+
 \i evaluation-calendar-create.sql
