Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
7dae7474
Commit
7dae7474
authored
Oct 21, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid confusion with project locking
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
254fefa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+4
-4
No files found.
weblate/trans/models/subproject.py
View file @
7dae7474
...
...
@@ -257,7 +257,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
Constructor to initialize some cache properties.
'''
super
(
SubProject
,
self
).
__init__
(
*
args
,
**
kwargs
)
self
.
_lock
=
None
self
.
_
repository_
lock
=
None
self
.
_file_format
=
None
self
.
_template_store
=
None
self
.
_all_flags
=
None
...
...
@@ -338,12 +338,12 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
'''
Returns lock object for current translation instance.
'''
if
self
.
_lock
is
None
:
self
.
_lock
=
FileLock
(
if
self
.
_
repository_
lock
is
None
:
self
.
_
repository_
lock
=
FileLock
(
self
.
get_git_lock_path
(),
timeout
=
20
)
return
self
.
_lock
return
self
.
_
repository_
lock
def
can_push
(
self
):
'''
...
...
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