This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from myapp.utils import set_current_user | |
class CurrentUserMiddleware: | |
def process_request(self, request): | |
set_current_user(getattr(request, 'user', None)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Launches ScanSnap Manager, if necessary. Opens the ScanSnap Manager settings window, | |
-- changes to named profile, applies changes, and closes the window | |
-- Example: | |
SwitchToProfile("Standard") | |
on SaveActiveApplication() | |
return application | |
end SaveActiveApplication | |
on OpenOptionsWindow() |