Index: openacs-4/packages/acs-content-repository/acs-content-repository.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/acs-content-repository.info,v diff -u -r1.33.2.23 -r1.33.2.24 --- openacs-4/packages/acs-content-repository/acs-content-repository.info 6 Jan 2005 16:38:42 -0000 1.33.2.23 +++ openacs-4/packages/acs-content-repository/acs-content-repository.info 6 Jan 2005 18:43:27 -0000 1.33.2.24 @@ -7,7 +7,7 @@ t t - + Dan Wickstrom The canonical repository for OpenACS content. 2004-11-26 @@ -17,7 +17,7 @@ other CMS backing functionality. Utilized by Bug Tracker, File Storage, and other packages. - + Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql,v diff -u -r1.14.2.1 -r1.14.2.2 --- openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql 6 Jan 2005 16:31:29 -0000 1.14.2.1 +++ openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql 6 Jan 2005 18:43:27 -0000 1.14.2.2 @@ -36,8 +36,6 @@ -- function new -select define_function_args('content_template__new','name,parent_id,template_id,creation_date;now,creation_user,creation_ip'); - create or replace function content_template__new (varchar,integer,integer,timestamptz,integer,varchar) returns integer as ' declare @@ -114,6 +112,7 @@ end;' language 'plpgsql'; +select define_function_args('content_template__new','name,parent_id,template_id,creation_date;now,creation_user,creation_ip,text,is_live;f'); create or replace function content_template__new (varchar,integer,integer,timestamptz,integer,varchar,text,bool) returns integer as ' @@ -176,7 +175,8 @@ -- procedure delete -create or replace function content_template__delete (integer) +select define_function_args('content_template__del','template_id'); +create or replace function content_template__del (integer) returns integer as ' declare delete__template_id alias for $1; @@ -196,7 +196,18 @@ return 0; end;' language 'plpgsql'; +select define_function_args('content_template__delete','template_id'); +create or replace function content_template__delete (integer) +returns integer as ' +declare + delete__template_id alias for $1; +begin + PERFORM content_template__delete(delete__template_id); + + return 0; +end;' language 'plpgsql'; + -- function is_template create or replace function content_template__is_template (integer) returns boolean as ' Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.1.4d5-5.1.4d6.sql'. Fisheye: No comparison available. Pass `N' to diff?