Message192295
| Author |
paul.j3 |
| Recipients |
chris.jerdonek, eric.smith, jeffknupp, paul.j3 |
| Date |
2013年07月04日.15:09:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1372950544.28.0.271911541037.issue16977@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Changing _check_value from:
def _check_value(self, action, value):
# converted value must be one of the choices (if specified)
if action.choices is not None and value not in action.choices:
...
to
def _check_value(self, action, value):
# converted value must be one of the choices (if specified)
if action.choices is not None:
choices = action.choices
if isinstance(choices, str):
choices = list(choices)
if value not in action.choices:
...
would correct the string search without affecting other types of choices. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年07月04日 15:09:04 | paul.j3 | set | recipients:
+ paul.j3, eric.smith, chris.jerdonek, jeffknupp |
| 2013年07月04日 15:09:04 | paul.j3 | set | messageid: <1372950544.28.0.271911541037.issue16977@psf.upfronthosting.co.za> |
| 2013年07月04日 15:09:04 | paul.j3 | link | issue16977 messages |
| 2013年07月04日 15:09:04 | paul.j3 | create |
|