Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
comment
Commits
0ae61e392236
Commit
0ae61e392236
authored
13 years ago
by
Sylvain Thénault
Browse files
Options
Downloads
Plain Diff
backport stable
parents
5fd9cff8fc43
a3afe466ac3c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.hgtags
+2
-0
2 additions, 0 deletions
.hgtags
__pkginfo__.py
+1
-1
1 addition, 1 deletion
__pkginfo__.py
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
entities.py
+7
-2
7 additions, 2 deletions
entities.py
with
16 additions
and
3 deletions
.hgtags
+
2
−
0
View file @
0ae61e39
...
...
@@ -25,3 +25,5 @@
a63fa00a1cca5a0f27bb0a57182473a5aabcc604 cubicweb-comment-debian-version-1.7.2-1
63bd8d2d0591d5b10a919c7c9cdec17f379843d9 cubicweb-comment-version-1.8.0
5bd7643387325cf0c080ba22fba28e72dca5e07d cubicweb-comment-debian-version-1.8.0-1
a6f4c93f4fb79a4279e33bef4bda001544cd472c cubicweb-comment-version-1.8.1
a0d092900c13464389c0d45ea500dc1b5f4f3319 cubicweb-comment-debian-version-1.8.1-1
This diff is collapsed.
Click to expand it.
__pkginfo__.py
+
1
−
1
View file @
0ae61e39
...
...
@@ -4,7 +4,7 @@
modname
=
'
comment
'
distname
=
"
cubicweb-%s
"
%
modname
numversion
=
(
1
,
8
,
0
)
numversion
=
(
1
,
8
,
1
)
version
=
'
.
'
.
join
(
str
(
num
)
for
num
in
numversion
)
license
=
'
LGPL
'
...
...
This diff is collapsed.
Click to expand it.
debian/changelog
+
6
−
0
View file @
0ae61e39
cubicweb-comment (1.8.1-1) unstable; urgency=low
* new upstream release
-- Sylvain Thénault <sylvain.thenault@logilab.fr> Mon, 26 Sep 2011 16:04:08 +0200
cubicweb-comment (1.8.0-1) unstable; urgency=low
* new upstream release
...
...
This diff is collapsed.
Click to expand it.
entities.py
+
7
−
2
View file @
0ae61e39
...
...
@@ -7,6 +7,7 @@
__docformat__
=
"
restructuredtext en
"
from
logilab.common.textutils
import
normalize_text
from
rql
import
TypeResolverException
from
cubicweb.view
import
EntityView
from
cubicweb.selectors
import
is_instance
...
...
@@ -78,8 +79,12 @@
cpath
=
itree
.
path
()[
1
:]
indentlevel
=
len
(
cpath
)
-
1
for
i
,
ceid
in
enumerate
(
cpath
):
comment
=
self
.
_cw
.
execute
(
'
Any C,T,D WHERE C creation_date D, C content T, C eid %(x)s
'
,
{
'
x
'
:
ceid
},
build_descr
=
True
).
get_entity
(
0
,
0
)
try
:
comment
=
self
.
_cw
.
execute
(
'
Any C,T,D WHERE C creation_date D, C content T, C eid %(x)s
'
,
{
'
x
'
:
ceid
},
build_descr
=
True
).
get_entity
(
0
,
0
)
except
TypeResolverException
:
# not a comment
break
strings
.
append
(
comment
.
view
(
'
fulltext
'
,
indentlevel
=
indentlevel
-
i
,
withauthor
=
i
!=
indentlevel
).
strip
()
+
'
\n
'
)
strings
.
append
(
u
'
\n
%s: %s
'
%
(
self
.
_cw
.
_
(
'
i18n_by_author_field
'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment