rem: res.data.action = this.href(req.action); res.data.title = "Members of " + this._parent.title;  if (req.data.keyword) { try { var result = this.searchUser(req.data.keyword); res.message = result.toString(); res.data.searchresult = this.renderSkinAsString("searchresult", {result: result.obj}); } catch (err) { res.message = err.toString(); } } else if (req.data.add) { try { var result = this.evalNewMembership(req.data.username, session.user); res.message = result.toString();  var sp = new Object(); sp.site = result.obj.site.title; sp.creator = session.user.name; sp.url = result.obj.site.href(); sp.account = result.obj.user.name; var mailbody = this.renderSkinAsString("mailnewmember", sp); sendMail(root.sys_email, result.obj.user.email, getMessage("mail.newMember", result.obj.site.title), mailbody); res.redirect(result.obj.href("edit")); } catch (err) { res.message = err.toString(); if (err instanceof MailException) res.redirect(result.obj.href("edit")); res.redirect(this.href()); } } else res.data.memberlist = this.renderMemberlist(); res.data.body = this.renderSkinAsString("main"); this._parent.renderSkin("page"); 
add: this.renderView(this, "Members"); return; 
context: function main_action() {   res.data.action = this.href(req.action);   res.data.title = "Members of " + this._parent.title;      if (req.data.keyword) {      try {         var result = this.searchUser(req.data.keyword);         res.message = result.toString();         res.data.searchresult = this.renderSkinAsString("searchresult", {result: result.obj});      } catch (err) {         res.message = err.toString();      }   } else if (req.data.add) {      try {         var result = this.evalNewMembership(req.data.username, session.user);         res.message = result.toString();         // send confirmation mail         var sp = new Object();         sp.site = result.obj.site.title;         sp.creator = session.user.name;         sp.url = result.obj.site.href();         sp.account = result.obj.user.name;         var mailbody = this.renderSkinAsString("mailnewmember", sp);         sendMail(root.sys_email,                  result.obj.user.email,                  getMessage("mail.newMember", result.obj.site.title),                  mailbody);         res.redirect(result.obj.href("edit"));      } catch (err) {         res.message = err.toString();         if (err instanceof MailException)            res.redirect(result.obj.href("edit"));         res.redirect(this.href());      }   } else      res.data.memberlist = this.renderMemberlist();   res.data.body = this.renderSkinAsString("main");   this._parent.renderSkin("page");}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/489351fe4820fc8aaa27c457159b524afea6853c/actions.js/clean/code/MemberMgr/actions.js