What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated May 16, 2008 by billiejoex
Labels: SortOrder-5, Deprecated
ReleaseNotes03  
pyftpdlib 0.3.x serie release notes.

Version: 0.3.0 - Date: 2008-01-17

Major enhancements

RFC-related enhancements

Bugfixes

API changes since 0.2.0

Porting to pyftpdlib 0.3.0

This section lists previously described changes that may require changes to your existent 0.2.0-based code.

The main news in 0.3.0 version is that the DummyAuthorizer class now provides an extended set of assignable user permissions. For example: to create a user having full r/w permissions you no longer have to do:

authorizer.add_user("user", "12345", "/home/user", perm=("r","w"))

...or:

authorizer.add_user("user", "12345", "/home/user", perm="rw")

...but instead:

authorizer.add_user("user", "12345", "/home/user", perm="elradfmw")

Folks who sub-classed DummyAuthorizer class to create their own custom authorizer (e.g. I've seen some SQL-based authorizers around) must note that r_perm() and w_perm() methods have been removed and replaced by the new has_perm() method.

Other changes are fundamentally related to AbstractedFS class which acquired some new methods and renamed others but this should interest only folks who sub-classed it (e.g. Aksy library which implemented a virtual file-system).


Sign in to add a comment