Monday, April 04, 2011 at 1:05 AM.
radioReallySimpleWebsite.danceWithTwitter
on danceWithTwitter () {
<<Changes
<<4/2/11; 6:11:01 PM by DW
<<Count the number of registrations for each user.
<<3/26/11; 8:29:56 AM by DW
<<Created.
local (pta = html.getpagetableaddress (), adrdata = radioreallysimplesuite.init (), args, adruser, now = clock.now ());
pta^.title = "Dance with Twitter";
<<scratchpad.danceparams = pta^
new (tabletype, @args);
webserver.parseargs (pta^.searchargs, @args);
adruser = @adrdata^.users.[args.feed];
radioReallySimpleSuite.initUser (adruser);
adruser^.stats.urlReturnTo = args.returnto; //3/28/11 by DW
adruser^.stats.ctRegisters++;
adruser^.stats.whenLastRegister = now;
thread.callscript (@radioReallySimpleSuite.subscribeFeed, {adruser}); //3/30/11 by DW
if not defined (adruser^.oAuth) {
adruser^.oAuth = adrdata^.prefs.oAuth};
oAuth.appDance (@adruser^.oAuth, flPromptForPin:false);
return (clock.now ())};
bundle { //test code
html.setpagetableaddress (@scratchpad.danceparams);
danceWithTwitter ()}
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.