This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script> | |
| function setCookie(c_name,value,exdays) { | |
| var exdate=new Date(); | |
| exdate.setDate(exdate.getDate() + exdays); | |
| var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()); | |
| document.cookie=c_name + "=" + c_value; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Current dispatch method | |
| def dispatch(self, request, *args, **kwargs): | |
| # Try to dispatch to the right method; if a method doesn't exist, | |
| # defer to the error handler. Also defer to the error handler if the | |
| # request method isn't on the approved list. | |
| if request.method.lower() in self.http_method_names: | |
| handler = getattr(self, request.method.lower(), self.http_method_not_allowed) | |
| else: | |
| handler = self.http_method_not_allowed | |
| self.request = request |
NewerOlder