(un)
| 21 | |
| 22 | |
| 23 | def preprocess_username(un): |
| 24 | ret_un = un |
| 25 | if len(ret_un) == 0 or ret_un[0].isdigit(): |
| 26 | ret_un = 'pga_user_' + un |
| 27 | |
| 28 | ret_un = ret_un.replace('@', '_') \ |
| 29 | .replace('/', 'slash') \ |
| 30 | .replace('\\', 'slash') |
| 31 | |
| 32 | return ret_un |
| 33 | |
| 34 | |
| 35 | def get_storage_directory(user=current_user, shared_storage=''): |
no outgoing calls
no test coverage detected