Go to the latest version of this document.

# ``twisted`.`python`.`formmethod`.`File``

class documentation

`class File(Argument): (source)`

Constructor: `File(name, allowNone, shortDesc, longDesc, hints)`

View In Hierarchy

Undocumented

Method | `__init__` | Undocumented
Method | `coerce` | Convert the value to the correct format.

Inherited from `Argument`:

Method | `addHints` | Undocumented
Method | `getHint` | Undocumented
Method | `getLongDescription` | Undocumented
Method | `getShortDescription` | Undocumented
Class Variable | `defaultDefault` | Undocumented
Instance Variable | `allowNone` | Undocumented
Instance Variable | `default` | Undocumented
Instance Variable | `hints` | Undocumented
Instance Variable | `longDesc` | Undocumented
Instance Variable | `name` | Undocumented
Instance Variable | `shortDesc` | Undocumented

def __init__(self, name, allowNone=1, shortDesc=None, longDesc=None, hints=None): (source)
overrides `twisted.python.formmethod.Argument.__init__`

Undocumented

def coerce(self, file): (source)
overrides `twisted.python.formmethod.Argument.coerce`

Convert the value to the correct format.