| Index: third_party/boto/boto/roboto/param.py
|
| ===================================================================
|
| --- third_party/boto/boto/roboto/param.py (revision 33376)
|
| +++ third_party/boto/boto/roboto/param.py (working copy)
|
| @@ -46,7 +46,7 @@
|
|
|
| @classmethod
|
| def convert_file(cls, param, value):
|
| - if os.path.isfile(value):
|
| + if os.path.exists(value) and not os.path.isdir(value):
|
| return value
|
| raise ValueError
|
|
|
| @@ -67,7 +67,7 @@
|
| except:
|
| raise ValidationException(param, '')
|
|
|
| -class Param(object):
|
| +class Param(Converter):
|
|
|
| def __init__(self, name=None, ptype='string', optional=True,
|
| short_name=None, long_name=None, doc='',
|
| @@ -142,6 +142,6 @@
|
| :param value: The value to convert. This should always
|
| be a string.
|
| """
|
| - return super(Param, self).convert(value)
|
| + return super(Param, self).convert(self,value)
|
|
|
|
|
|
|