Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
cloudooo
Commits
2e1b87a9
Commit
2e1b87a9
authored
May 31, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speedup starting
parent
309a413b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
cloudooo/handler/ooo/application/openoffice.py
cloudooo/handler/ooo/application/openoffice.py
+8
-0
cloudooo/handler/ooo/util.py
cloudooo/handler/ooo/util.py
+3
-3
No files found.
cloudooo/handler/ooo/application/openoffice.py
View file @
2e1b87a9
...
...
@@ -134,6 +134,14 @@ class OpenOffice(Application):
self
.
connection
=
"socket,host=%s,port=%d"
%
(
self
.
hostname
,
self
.
port
)
self
.
connection
=
"pipe,name=cloudooo_libreoffice_%s"
%
str
(
uuid
.
uuid1
())
def
isRunning
(
self
):
if
hasattr
(
self
,
"process"
):
returncode
=
self
.
process
.
poll
()
if
returncode
is
not
None
and
returncode
!=
0
:
return
False
return
True
return
False
def
status
(
self
):
if
Application
.
status
(
self
)
and
\
self
.
_testOpenOffice
():
...
...
cloudooo/handler/ooo/util.py
View file @
2e1b87a9
...
...
@@ -45,10 +45,10 @@ def removeDirectory(path):
def
waitStartDaemon
(
daemon
,
attempts
):
"""Wait a certain time to start the daemon."""
for
num
in
range
(
attempts
):
if
daemon
.
status
():
return
True
elif
daemon
.
pid
()
is
None
:
if
not
daemon
.
isRunning
():
return
False
elif
daemon
.
status
():
return
True
sleep
(
1
)
return
False
...
...
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