work in progress: methods for specific export of type instances or other children of concepts given
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3595 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
c7b21fe806
commit
8c7f688324
1 changed files with 10 additions and 0 deletions
10
external/base.py
vendored
10
external/base.py
vendored
|
@ -121,6 +121,16 @@ class Extractor(Base):
|
||||||
self.provideSubElements(obj, element)
|
self.provideSubElements(obj, element)
|
||||||
yield element
|
yield element
|
||||||
|
|
||||||
|
def extractConceptsForType(self, typeName):
|
||||||
|
conceptElement = elementTypes['concept']
|
||||||
|
typeObject = self.concepts[typeName]
|
||||||
|
for obj in typeObject.getChildren([self.typePredicate]):
|
||||||
|
data = self.getObjectData(obj)
|
||||||
|
tp = getName(obj.conceptType)
|
||||||
|
element = conceptElement(name, obj.title, tp, **data)
|
||||||
|
#self.provideSubElements(obj, element)
|
||||||
|
yield element
|
||||||
|
|
||||||
def extractResources(self):
|
def extractResources(self):
|
||||||
elementClass = elementTypes['resource']
|
elementClass = elementTypes['resource']
|
||||||
for name, obj in self.resources.items():
|
for name, obj in self.resources.items():
|
||||||
|
|
Loading…
Add table
Reference in a new issue