Index: openacs-4/contrib/packages/portal/tcl/apm-callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/tcl/apm-callback-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/contrib/packages/portal/tcl/apm-callback-procs.tcl 16 Jan 2004 01:43:40 -0000 1.3 +++ openacs-4/contrib/packages/portal/tcl/apm-callback-procs.tcl 27 Jan 2004 03:33:46 -0000 1.4 @@ -8,73 +8,16 @@ name portal_datasource description "Portal datasource interface." operations { - GetMyName { + ConfigureParams { description { - Return the name of the datasource (not to be confused with the - pretty_name) + Configure datasource-specific parameters to reasonable values. } input { - } - output { - name:string - } - } - GetPrettyName { - description { - Return the pretty name (or, for internationalized portlets, the - appropriate message key) for the datasource. - } - input { - } - output { - pretty_name:string - } - } - AddSelfToPage { - description { - Tell the datasource to add itself to a portal page. - - DRB: This is a carryover from .LRN's new-portal package. That early - version of the portal package never called this operation, which is a - good thing because none of the .LRN portlets's add_self_to_page procs - matched the service contract spec!!! But we need to define the actual - procs for .LRN (whose package applets call them directly, circumventing - the service contract mechanism entirely) so I'm leaving this in the spec - for now. However the portal package should actually do this task anyway - so the plan is to retain this operation for .LRN but to never use it in - the new version of the portal package. - } - input { - page_id:integer - instance_id:integer - args:string - } - output { element_id:integer } - } - Show { - description { - Render the portal element, returning a chunk of HTML. - } - input { - cf:string - } output { - output:string } } - RemoveSelfFromPage { - description { - Tell the PE to remove itself from a page. - } - input { - page_id:integer - instance_id:integer - } - output { - } - } } } }