Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
045b5b30
authored
Feb 10, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laborclient: mkfolder proper permissions
parent
5be84216
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
miscellaneous/laborclient/cloudgui/gui.py
+2
-2
miscellaneous/laborclient/cloudgui/rdp.py
+2
-0
No files found.
miscellaneous/laborclient/cloudgui/gui.py
View file @
045b5b30
...
@@ -151,9 +151,9 @@ class Browser:
...
@@ -151,9 +151,9 @@ class Browser:
neptun
=
self
.
params
[
"neptun"
]
neptun
=
self
.
params
[
"neptun"
]
host
=
self
.
params
[
"host"
]
host
=
self
.
params
[
"host"
]
try
:
try
:
os
.
makedirs
(
self
.
folder
,
0644
)
os
.
makedirs
(
self
.
folder
)
except
:
except
:
p
ass
p
rint
"Error"
result
=
subprocess
.
call
([
'/usr/bin/sshfs'
,
'-o'
,
'IdentityFile='
+
self
.
private_key_file
+
',StrictHostKeyChecking=no'
,
neptun
+
"@"
+
host
+
":home"
,
self
.
folder
])
result
=
subprocess
.
call
([
'/usr/bin/sshfs'
,
'-o'
,
'IdentityFile='
+
self
.
private_key_file
+
',StrictHostKeyChecking=no'
,
neptun
+
"@"
+
host
+
":home"
,
self
.
folder
])
#print result
#print result
def
umount_sshfs_folder
(
self
):
def
umount_sshfs_folder
(
self
):
...
...
miscellaneous/laborclient/cloudgui/rdp.py
View file @
045b5b30
...
@@ -5,9 +5,11 @@ import subprocess
...
@@ -5,9 +5,11 @@ import subprocess
import
os
import
os
import
sys
import
sys
import
gtk
import
gtk
import
gobject
class
RDP
:
class
RDP
:
def
__init__
(
self
,
uri
):
def
__init__
(
self
,
uri
):
gobject
.
threads_init
()
self
.
scheme
,
self
.
username
,
self
.
password
,
self
.
host
,
self
.
port
=
uri
.
split
(
':'
,
4
)
self
.
scheme
,
self
.
username
,
self
.
password
,
self
.
host
,
self
.
port
=
uri
.
split
(
':'
,
4
)
def
dialog_box
(
self
,
text
):
def
dialog_box
(
self
,
text
):
# Window = gtk.Window()
# Window = gtk.Window()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment