Timestamp:
Apr 20, 2014, 11:17:18 AM (7 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Added "universal" "session factory factory".

The new module `session.py` defines a function `session_factory`
to create a session factory (class) according to the keyword
arguments passed to the function.

Example:

  my_session_factory = session_factory(
                         base_class=M2Crypto.ftpslib.FTP_TLS,
                         use_passive_mode=True,
                         encrypt_data_channel=True)
  with ftputil.FTPHost(host, user, password,
                       session_factory=my_session_factory) as host:
File:
1 added

Note: See TracChangeset for help on using the changeset viewer.