Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
blog
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
blog
Commits
39542905b515
Commit
39542905b515
authored
15 years ago
by
Adrien Di Mascio
Browse files
Options
Downloads
Patches
Plain Diff
delete-trailing-whitespaces
parent
40afa8f3ee52
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entities.py
+9
-9
9 additions, 9 deletions
entities.py
with
9 additions
and
9 deletions
entities.py
+
9
−
9
View file @
39542905
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
@property
@property
def
stop
(
self
):
def
stop
(
self
):
return
self
.
creation_date
return
self
.
creation_date
def
matching_dates
(
self
,
begin
,
end
):
def
matching_dates
(
self
,
begin
,
end
):
"""
calendar views interface
"""
"""
calendar views interface
"""
mydate
=
self
.
creation_date
mydate
=
self
.
creation_date
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
def
isioc_container
(
self
):
def
isioc_container
(
self
):
rset
=
self
.
related
(
'
entry_of
'
)
rset
=
self
.
related
(
'
entry_of
'
)
entity
=
rset
.
get_entity
(
0
,
0
)
entity
=
rset
.
get_entity
(
0
,
0
)
return
entity
return
entity
def
isioc_type
(
self
):
def
isioc_type
(
self
):
return
'
BlogPost
'
return
'
BlogPost
'
...
@@ -54,6 +54,6 @@
...
@@ -54,6 +54,6 @@
return
entity
return
entity
def
isioc_type
(
self
):
def
isioc_type
(
self
):
return
'
BlogPost
'
return
'
BlogPost
'
def
isioc_replies
(
self
):
def
isioc_replies
(
self
):
...
@@ -59,5 +59,5 @@
...
@@ -59,5 +59,5 @@
def
isioc_replies
(
self
):
def
isioc_replies
(
self
):
return
[]
return
[]
def
isioc_topics
(
self
):
def
isioc_topics
(
self
):
return
[]
return
[]
...
@@ -61,9 +61,9 @@
...
@@ -61,9 +61,9 @@
def
isioc_topics
(
self
):
def
isioc_topics
(
self
):
return
[]
return
[]
class
Blog
(
AnyEntity
):
class
Blog
(
AnyEntity
):
"""
customized class for Blog entities
"""
"""
customized class for Blog entities
"""
id
=
'
Blog
'
id
=
'
Blog
'
__rtags__
=
{
'
entry_of
'
:
'
create
'
}
__rtags__
=
{
'
entry_of
'
:
'
create
'
}
...
@@ -65,10 +65,10 @@
...
@@ -65,10 +65,10 @@
class
Blog
(
AnyEntity
):
class
Blog
(
AnyEntity
):
"""
customized class for Blog entities
"""
"""
customized class for Blog entities
"""
id
=
'
Blog
'
id
=
'
Blog
'
__rtags__
=
{
'
entry_of
'
:
'
create
'
}
__rtags__
=
{
'
entry_of
'
:
'
create
'
}
__implements__
=
AnyEntity
.
__implements__
+
(
ISiocContainer
,)
__implements__
=
AnyEntity
.
__implements__
+
(
ISiocContainer
,)
def
rss_feed_url
(
self
):
def
rss_feed_url
(
self
):
if
self
.
rss_url
:
if
self
.
rss_url
:
...
@@ -82,5 +82,5 @@
...
@@ -82,5 +82,5 @@
def
isioc_items
(
self
):
def
isioc_items
(
self
):
return
self
.
reverse_entry_of
return
self
.
reverse_entry_of
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