Skip to content

Commit 3f58e65

Browse files
committed
Merge branch 'master' of github.com:Pylons/Kotti
Conflicts: kotti/resources.py
2 parents 5e4a7bb + 151723c commit 3f58e65

10 files changed

+274
-48
lines changed

.coveragerc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[run]
2-
omit = *test*py
2+
omit =
3+
*test*py
4+
kotti/alembic/*

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ junit*.xml
1818
.tox
1919
*~
2020
*.swp
21+
.cache

docs/api/index.rst

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ API Documentation
1010
.. automodule:: kotti.events
1111
:members:
1212

13+
:mod:`kotti.interfaces`
14+
-----------------------
15+
16+
.. automodule:: kotti.interfaces
17+
:members:
18+
1319
:mod:`kotti.message`
1420
--------------------
1521

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
extensions = [
2929
'sphinx.ext.autodoc',
3030
'sphinx.ext.viewcode',
31+
'sphinx.ext.inheritance_diagram',
32+
'sphinx.ext.graphviz',
3133
]
3234

3335
# Add any paths that contain templates here, relative to this directory.

kotti/events.py

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ def document_insert_handler(event):
2828
2929
Listeners are generally called in the order in which they are
3030
registered.
31+
32+
Inheritance Diagram
33+
-------------------
34+
35+
.. inheritance-diagram:: kotti.events
36+
3137
"""
3238

3339
from collections import defaultdict

kotti/interfaces.py

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
4+
Inheritance Diagram
5+
-------------------
6+
7+
.. inheritance-diagram:: kotti.interfaces
8+
"""
9+
10+
from zope.interface import Interface
11+
12+
13+
class INode(Interface):
14+
"""Marker interface for all nodes (and subclasses)"""
15+
16+
pass
17+
18+
19+
class IContent(INode):
20+
"""Marker interface for all nodes of type Content
21+
(and subclasses thereof)"""
22+
23+
pass
24+
25+
26+
class IDocument(IContent):
27+
"""Marker interface for all nodes of type Document
28+
(and subclasses thereof)"""
29+
30+
pass
31+
32+
33+
class IFile(IContent):
34+
"""Marker interface for all nodes of type File
35+
(and subclasses thereof)"""
36+
37+
pass
38+
39+
40+
class IImage(IFile):
41+
"""Marker interface for all nodes of type Image
42+
(and subclasses thereof)"""
43+
44+
pass
45+
46+
47+
class IDefaultWorkflow(Interface):
48+
"""Marker interface for content classes that want to use the
49+
default workflow"""
50+
51+
pass

0 commit comments

Comments
 (0)