Index: openacs-4/packages/dotlrn/coding-tips.txt =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/Attic/coding-tips.txt,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/coding-tips.txt 25 Jan 2002 16:21:27 -0000 1.1 +++ openacs-4/packages/dotlrn/coding-tips.txt 18 Feb 2002 01:53:31 -0000 1.2 @@ -3,7 +3,8 @@ ---------- - You CANNOT nest the tag in a single template. Use the - tag instead. Pass in the necessary vars. + tag instead. Pass in the necessary vars. Somebody made a patch to + nest multiples, but it's not in the tree yet (as of 2/16/02). - in tags, you can pass a datasource (i.e. a ) using the "&=" notation. E.g. from /new-portal/www/place-element.adp @@ -13,3 +14,20 @@ portal_id=@portal_id@ page_id=@element_multi.page_id@> +PL/SQL +------ + +- You can't have a package with the same name as a table! If you do this + you get "ORA-00955: name is already used by an existing object" errors + +- Always use fully qualified argument names in procs and funcs: + + e.g. in a func named "new" with args "instance_id" and "content" + + insert into static_portal_content + (instance_id, content) + values + (new.instance_id, new.content); + + + Index: openacs-4/packages/dotlrn/dotlrn.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/dotlrn.info,v diff -u -r1.51 -r1.52 --- openacs-4/packages/dotlrn/dotlrn.info 14 Feb 2002 18:03:07 -0000 1.51 +++ openacs-4/packages/dotlrn/dotlrn.info 18 Feb 2002 01:53:31 -0000 1.52 @@ -96,7 +96,6 @@ - @@ -290,6 +289,8 @@ + +