~ubuntu-branches/ubuntu/vivid/moin/vivid

« back to all changes in this revision

Viewing changes to MoinMoin/support/passlib/hash.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-01-07 21:33:21 UTC
  • mfrom: (0.1.34 sid)
  • Revision ID: package-import@ubuntu.com-20140107213321-574mr13z2oebjgms
Tags: 1.9.7-1ubuntu1
* Merge with Debian; remaining changes:
* debian/control:
  - remove python-xml from Suggests field, the package isn't in
    sys.path any more.
  - demote fckeditor from Recommends to Suggests; the code was previously
    embedded in moin, but it was also disabled, so there's no reason for us
    to pull this in by default currently. Note: fckeditor has a number of
    security problems and so this change probably needs to be carried
    indefinitely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""passlib.hash - proxy object mapping hash scheme names -> handlers
 
2
 
 
3
Note
 
4
====
 
5
This module does not actually contain any hashes. This file
 
6
is a stub that replaces itself with a proxy object.
 
7
 
 
8
This proxy object (passlib.registry._PasslibRegistryProxy)
 
9
handles lazy-loading hashes as they are requested.
 
10
 
 
11
The actual implementation of the various hashes is store elsewhere,
 
12
mainly in the submodules of the ``passlib.handlers`` package.
 
13
"""
 
14
 
 
15
# NOTE: could support 'non-lazy' version which just imports
 
16
#       all schemes known to list_crypt_handlers()
 
17
 
 
18
#=============================================================================
 
19
# import proxy object and replace this module
 
20
#=============================================================================
 
21
 
 
22
from passlib.registry import _proxy
 
23
import sys
 
24
sys.modules[__name__] = _proxy
 
25
 
 
26
#=============================================================================
 
27
# eoc
 
28
#=============================================================================