]>
Commit | Line | Data |
---|---|---|
ae14afbd AD |
1 | /mit/__init__.py contains some useful functionality for Django applications |
2 | running at MIT, particularly on the scripts.mit.edu platform | |
3 | ||
4 | - zephyr(msg, clas, instance, rcpt) sends a zephyr (by shelling out to zwrite). | |
5 | This may be useful for debugging or logging | |
6 | - ScriptsRemoteUserMiddleware and ScriptsRemoteUserBackend work together to | |
7 | auto-create users from certificates on scripts.mit.edu-hosted sites. Account | |
8 | details are automatically retrieved from LDAP. | |
9 | - scripts_login is a view that tries to log users into a site using certs. | |
10 | ||
11 | To use them, you'll probably want to symlink or copy the "mit" directory into | |
12 | your project, add it to your apps list, and modify your middlewares and auth | |
13 | backend appropriately. Do *not* link this (the "django" directory) into your | |
14 | app; it's reasonably likely to break your "import django.foo" statements. | |
15 | ||
16 | This code is descended from work on Remit (https://remit.scripts.mit.edu/trac/) | |
17 | and the ASA DB (https://asa.scripts.mit.edu/trac/); current and past bugs are | |
18 | likely to be filed there. |