RCS file: /home/cvspublic/httpd-python/lib/python/mod_python/util.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
|
|
|
|
| 15 | 15 | # |
| 16 | 16 | # Originally developed by Gregory Trubetskoy. |
| 17 | 17 | # |
| 18 | | # $Id: util.py,v 1.21 2004/02/16 19:47:27 grisha Exp $ |
| | 18 | # $Id: util.py,v 1.22 2004/04/30 19:26:36 grisha Exp $ |
| 19 | 19 | |
| 20 | 20 | import _apache |
| 21 | 21 | import apache |
| … |
… |
|
| 224 | 224 | found = [] |
| 225 | 225 | for item in self.list: |
| 226 | 226 | if item.name == key: |
| 227 | | if isinstance(item.file, FileType): |
| | 227 | if isinstance(item.file, FileType) or \ |
| | 228 | isinstance(getattr(item.file, 'file', None), FileType): |
| 228 | 229 | found.append(item) |
| 229 | 230 | else: |
| 230 | 231 | found.append(StringField(item.value)) |
| … |
… |
|
| 268 | 269 | """ return the first value received """ |
| 269 | 270 | for item in self.list: |
| 270 | 271 | if item.name == key: |
| 271 | | if isinstance(item.file, FileType): |
| | 272 | if isinstance(item.file, FileType) or \ |
| | 273 | isinstance(getattr(item.file, 'file', None), FileType): |
| 272 | 274 | return item |
| 273 | 275 | else: |
| 274 | 276 | return StringField(item.value) |
| … |
… |
|
| 281 | 283 | found = [] |
| 282 | 284 | for item in self.list: |
| 283 | 285 | if item.name == key: |
| 284 | | if isinstance(item.file, FileType): |
| | 286 | if isinstance(item.file, FileType) or \ |
| | 287 | isinstance(getattr(item.file, 'file', None), FileType): |
| 285 | 288 | found.append(item) |
| 286 | 289 | else: |
| 287 | 290 | found.append(StringField(item.value)) |