mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-21 05:12:27 +12:00
17 lines
487 B
Python
17 lines
487 B
Python
#!/usr/bin/env python
|
|
# --!-- coding: utf8 --!--
|
|
|
|
from manuskript.models.abstractModel import abstractModel
|
|
from manuskript.models import outlineItem
|
|
|
|
|
|
class outlineModel(abstractModel):
|
|
def __init__(self, parent):
|
|
abstractModel.__init__(self, parent)
|
|
self.rootItem = outlineItem(model=self, title="Root", ID="0")
|
|
|
|
|
|
def findItemsByPOV(self, POV):
|
|
"Returns a list of IDs of all items whose POV is ``POV``."
|
|
return self.rootItem.findItemsByPOV(POV)
|