Index: openacs-4/packages/layout-manager/sql/postgresql/includelets-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/layout-manager/sql/postgresql/includelets-create.sql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/layout-manager/sql/postgresql/includelets-create.sql 30 Jul 2008 11:59:33 -0000 1.2 +++ openacs-4/packages/layout-manager/sql/postgresql/includelets-create.sql 2 Aug 2008 05:29:10 -0000 1.3 @@ -24,6 +24,9 @@ references apm_package_types(package_key) on delete cascade constraint l_includelets_pp_nn + not null, + internally_managed_p boolean + constraint l_includelets_i_m_nn not null ); @@ -67,3 +70,11 @@ comment on column layout_includelets.initializer is ' The name of an optional initialization procedure to run after the default constructor. '; + +comment on column layout_includelets.internally_managed_p is ' + If true, external application/includelet managers (like layout-subsite-integration) should + ignore the existence of this includelet. While this was added explicitly to port the + rather quaint and eccentric xowiki portlet to the layout manager, which has its admin + portlet create layout elements via a dynamically generated form in a very non-.LRN + manner, it''s probably generally useful. +'; Index: openacs-4/packages/layout-manager/tcl/includelet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/layout-manager/tcl/includelet-procs.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/layout-manager/tcl/includelet-procs.tcl 30 Jul 2008 11:59:33 -0000 1.2 +++ openacs-4/packages/layout-manager/tcl/includelet-procs.tcl 2 Aug 2008 05:29:10 -0000 1.3 @@ -19,6 +19,7 @@ {-dotlrn_compat_p f} {-initializer ""} {-required_privilege read} + {-internally_managed_p f} } { Create a new layout manager includelet. @@ -34,6 +35,8 @@ @param destructor Custom destructor to run before the default destructor @param required_privilege The default privilege the user needs to be able to see this includelet (defaults to 'read') + @param internally_managed_p Controls whether or not application/includelet managers + should touch this includelet. @author Don Baccus (dhogaza@pacifier.com) } { Index: openacs-4/packages/layout-manager/tcl/includelet-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/layout-manager/tcl/includelet-procs.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/layout-manager/tcl/includelet-procs.xql 30 Jul 2008 11:59:33 -0000 1.2 +++ openacs-4/packages/layout-manager/tcl/includelet-procs.xql 2 Aug 2008 05:29:10 -0000 1.3 @@ -6,10 +6,10 @@ insert into layout_includelets (name, title, application, template, initializer, required_privilege, - description, dotlrn_compat_p) + description, dotlrn_compat_p, internally_managed_p) values (:name, :title, :application, :template, :initializer, :required_privilege, - :description, :dotlrn_compat_p) + :description, :dotlrn_compat_p, :internally_managed_p)