Monday, November 08, 2010 at 12:00 AM.

system.verbs.apps.blogger.getTemplate

on getTemplate (blogId=nil, username=nil, password=nil, templateType=nil, adrdata=@blogger.data) {
	blogger.init ();
	bundle { //set defaults
		if username == nil {
			username = user.blogger.username};
		if password == nil {
			password = string (user.blogger.password)};
		if blogId == nil {
			blogId = user.blogger.blogId};
		if templateType == nil {
			templateType = "main"}};
	with adrdata^ {
		local (params = {appkey, string (blogId), string (username), string (password), string (templateType)});
		return (xml.rpc (server, port, "blogger.getTemplate", @params, rpcPath:rpcPath, protocol:protocol))}};
bundle { //test code
	op.newoutlineobject (getTemplate (), @scratchpad.bloggerTemplate);
	edit (@scratchpad.bloggerTemplate)}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.