Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 4911:0997d4d8e76c
roundup_server: Code cleanup - move favicon object into its section
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Thu, 17 Jul 2014 02:22:22 +0300 |
| parents | 52b0e416f0bc |
| children | a0a7a6ca1586 |
comparison
equal
deleted
inserted
replaced
| 4904:3b632a25b1b3 | 4911:0997d4d8e76c |
|---|---|
| 277 def inner_run_cgi(self): | 277 def inner_run_cgi(self): |
| 278 ''' This is the inner part of the CGI handling | 278 ''' This is the inner part of the CGI handling |
| 279 ''' | 279 ''' |
| 280 rest = self.path | 280 rest = self.path |
| 281 | 281 |
| 282 # file-like object for the favicon.ico file information | |
| 283 favicon_fileobj = None | |
| 284 | |
| 285 if rest == '/favicon.ico': | 282 if rest == '/favicon.ico': |
| 283 # file-like object for the favicon.ico file information | |
| 284 favicon_fileobj = None | |
| 285 | |
| 286 # check to see if a custom favicon was specified, and set | 286 # check to see if a custom favicon was specified, and set |
| 287 # favicon_fileobj to the input file | 287 # favicon_fileobj to the input file |
| 288 if self.CONFIG is not None: | 288 if self.CONFIG is not None: |
| 289 favicon_filepath = os.path.abspath(self.CONFIG['FAVICON']) | 289 favicon_filepath = os.path.abspath(self.CONFIG['FAVICON']) |
| 290 | 290 |
