context: HopObject.prototype.onRequest = function() {   if (req.postParams.cancel) {      switch (this.constructor) {         case Admin:         res.redirect(req.action + "?page=" + req.queryParams.page +                "#" + req.queryParams.id);         case Members:         case Membership:         res.redirect(this._parent.href());         case Skin:         case Skins:         res.redirect(Skins.getRedirectUrl(req.postParams));         default:         res.redirect(this.href());      }   }   User.autoLogin();   res.handlers.membership = User.getMembership();      if (User.getCurrentStatus() === User.BLOCKED) {      User.logout();      res.status = 401;      res.writeln(gettext("Sorry, your account has been blocked."));      res.writeln(gettext("Please contact the maintainer of this site for further information."));      res.stop();   }      if (res.handlers.site.status === Site.BLOCKED &&          !User.require(User.PRIVILEGED)) {      res.status = 401;      res.writeln(gettext("Sorry, this site has been blocked."));      res.writeln(gettext("Please contact the maintainer of this site for further information."));      res.stop();   }   if (!this.getPermission(req.action)) {      res.status = 401;      res.write(gettext("Sorry, you are not allowed to access this part of the site."));      res.stop();   }   if (session.data.layout) {      // Test-drive a layout      res.handlers.layout = session.data.layout;      res.message = session.data.layout.renderSkinAsString("testdrive");   } else {      res.handlers.layout = res.handlers.site.layout || new Layout;   }   res.skinpath = res.handlers.layout.getSkinPath();   // FIXME: remove after debugging   ((res.contentType === "text/html") && res.debug(res.skinpath.toSource()));   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/3efbd63046d0de34a59bbe00c11a37b157f1b745/HopObject.js/clean/code/HopObject/HopObject.js