Thursday, April 14, 2011 at 1:07 AM.

radioReallySimpleSuite.initUser

on initUser (adruser) {
	<<Changes
		<<4/10/11; 6:54:43 PM by DW
			<<Init flRetryEnabled pref.
		<<4/9/11; 12:08:49 PM by DW
			<<Init enabled pref.
		<<4/2/11; 6:07:32 PM by DW
			<<Delete urlFeed pref, not needed. Init ctRegisters stat.
		<<3/26/11; 10:46:09 AM by DW
			<<Created. 
	if not defined (adruser^) {
		new (tabletype, adruser)};
	bundle { //prefs
		if not defined (adruser^.prefs) {
			new (tabletype, @adruser^.prefs)};
		if defined (adruser^.prefs.urlFeed) {
			delete (@adruser^.prefs.urlFeed)};
		if not defined (adruser^.prefs.enabled) { //4/9/11 by DW
			adruser^.prefs.enabled = true};
		if not defined (adruser^.prefs.flRetryEnabled) { //4/10/11 by DW
			adruser^.prefs.flRetryEnabled = true}};
	bundle { //stats
		if not defined (adruser^.stats) {
			new (tabletype, @adruser^.stats)};
		if not defined (adruser^.stats.serialnum) {
			adruser^.stats.serialnum = 0};
		if not defined (adruser^.stats.ctRegisters) { //4/2/11 by DW
			adruser^.stats.ctRegisters = 0}};
	if not defined (adruser^.calendar) {
		new (tabletype, @adruser^.calendar)}};
bundle { //test code
	initUser (@config.radioReallySimple.users.dave)}



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.