Permalink
Browse files

fix #316: add gitignore

  • Loading branch information...
giampaolo committed Oct 12, 2015
1 parent 8f3e19c commit f405b96b80edb40a63c51ba7248f1c1de8756f9a
Showing with 20 additions and 2 deletions.
  1. +18 −0 .gitignore
  2. +2 −2 pyftpdlib/authorizers.py
View
@@ -0,0 +1,18 @@
syntax: glob
*.al
*.bak
*.egg-info
*.la
*.lo
*.o
*.orig
*.pyc
*.pyd
*.rej
*.so
*.swp
.cache/
.idea/
.tox/
build/
dist/
View
@@ -781,10 +781,10 @@ class WindowsAuthorizer(_Base, BaseWindowsAuthorizer):
>>> from pyftpdlib.contrib.authorizers import WindowsAuthorizer
>>> # accept all except Administrator
>>> auth = UnixAuthorizer(rejected_users=["Administrator"])
>>> auth = WindowsAuthorizer(rejected_users=["Administrator"])
>>>
>>> # accept some users only
>>> auth = UnixAuthorizer(allowed_users=["matt", "jay"])
>>> auth = WindowsAuthorizer(allowed_users=["matt", "jay"])
>>>
>>> # set specific options for a user
>>> auth.override_user("matt", password="foo", perm="elr")

0 comments on commit f405b96

Please sign in to comment.