mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e367da925e | |||
77a109bb7e | |||
a3e1864a26 |
@ -67,7 +67,7 @@ class KitShibbolethAuthenticator(IliasAuthenticator):
|
|||||||
while not self._login_successful(soup):
|
while not self._login_successful(soup):
|
||||||
# Searching the form here so that this fails before asking for
|
# Searching the form here so that this fails before asking for
|
||||||
# credentials rather than after asking.
|
# credentials rather than after asking.
|
||||||
form = soup.find("form", {"class": "form2", "method": "post"})
|
form = soup.find("form", {"class": "full content", "method": "post"})
|
||||||
action = form["action"]
|
action = form["action"]
|
||||||
|
|
||||||
# Equivalent: Enter credentials in
|
# Equivalent: Enter credentials in
|
||||||
|
@ -5,6 +5,7 @@ A organizer is bound to a single directory.
|
|||||||
|
|
||||||
import filecmp
|
import filecmp
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
from pathlib import Path, PurePath
|
from pathlib import Path, PurePath
|
||||||
from typing import List, Optional, Set
|
from typing import List, Optional, Set
|
||||||
@ -44,6 +45,15 @@ class Organizer(Location):
|
|||||||
(e.g. update the timestamp), the path is also returned in this case.
|
(e.g. update the timestamp), the path is also returned in this case.
|
||||||
In all other cases (ignored, not overwritten, etc.) this method returns None.
|
In all other cases (ignored, not overwritten, etc.) this method returns None.
|
||||||
"""
|
"""
|
||||||
|
# Windows limits the path length to 260 for *some* historical reason
|
||||||
|
# If you want longer paths, you will have to add the "\\?\" prefix in front of
|
||||||
|
# your path...
|
||||||
|
# See:
|
||||||
|
# https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation
|
||||||
|
if os.name == 'nt':
|
||||||
|
src_absolute = Path("\\\\?\\" + str(src.resolve()))
|
||||||
|
dst_absolute = Path("\\\\?\\" + str(self.resolve(dst)))
|
||||||
|
else:
|
||||||
src_absolute = src.resolve()
|
src_absolute = src.resolve()
|
||||||
dst_absolute = self.resolve(dst)
|
dst_absolute = self.resolve(dst)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ Ensure that you have at least Python 3.8 installed.
|
|||||||
To install PFERD or update your installation to the latest version, run this
|
To install PFERD or update your installation to the latest version, run this
|
||||||
wherever you want to install or have already installed PFERD:
|
wherever you want to install or have already installed PFERD:
|
||||||
```
|
```
|
||||||
$ pip install git+https://github.com/Garmelon/PFERD@v2.2.0
|
$ pip install git+https://github.com/Garmelon/PFERD@v2.2.1
|
||||||
```
|
```
|
||||||
|
|
||||||
The use of [venv] is recommended.
|
The use of [venv] is recommended.
|
||||||
@ -42,8 +42,8 @@ $ mkdir Vorlesungen
|
|||||||
$ cd Vorlesungen
|
$ cd Vorlesungen
|
||||||
$ python3 -m venv .venv
|
$ python3 -m venv .venv
|
||||||
$ .venv/bin/activate
|
$ .venv/bin/activate
|
||||||
$ pip install git+https://github.com/Garmelon/PFERD@v2.2.0
|
$ pip install git+https://github.com/Garmelon/PFERD@v2.2.1
|
||||||
$ curl -O https://raw.githubusercontent.com/Garmelon/PFERD/v2.2.0/example_config.py
|
$ curl -O https://raw.githubusercontent.com/Garmelon/PFERD/v2.2.1/example_config.py
|
||||||
$ python3 example_config.py
|
$ python3 example_config.py
|
||||||
$ deactivate
|
$ deactivate
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user