provide create_object action for allow creation of resources within specific concept types; do not limit book views to Lobo skin
This commit is contained in:
parent
3c43a14af9
commit
ce22ab2a4b
3 changed files with 13 additions and 3 deletions
|
@ -123,6 +123,15 @@ actions.register('external_edit', 'object', TargetAction,
|
|||
cssClass='icon-action',
|
||||
)
|
||||
|
||||
actions.register('create_object', 'portlet', DialogAction,
|
||||
title=_('Create Resource...'),
|
||||
description=_('Create a new resource object.'),
|
||||
viewName='create_object.html',
|
||||
dialogName='edit',
|
||||
prerequisites=['registerDojoEditor'],
|
||||
permission='zope.ManageContent',
|
||||
)
|
||||
|
||||
actions.register('edit_object', 'portlet', DialogAction,
|
||||
title=_(u'Edit Resource...'),
|
||||
description=_(u'Modify resource object.'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<zope:adapter
|
||||
name="book_overview"
|
||||
for="loops.interfaces.IConcept
|
||||
loops.browser.skin.Lobo"
|
||||
zope.publisher.interfaces.browser.IBrowserRequest"
|
||||
provides="zope.interface.Interface"
|
||||
factory="loops.compound.book.browser.BookView"
|
||||
permission="zope.View" />
|
||||
|
@ -16,7 +16,7 @@
|
|||
<zope:adapter
|
||||
name="section_view"
|
||||
for="loops.interfaces.IConcept
|
||||
loops.browser.skin.Lobo"
|
||||
zope.publisher.interfaces.browser.IBrowserRequest"
|
||||
provides="zope.interface.Interface"
|
||||
factory="loops.compound.book.browser.SectionView"
|
||||
permission="zope.View" />
|
||||
|
@ -24,7 +24,7 @@
|
|||
<zope:adapter
|
||||
name="book_topic_view"
|
||||
for="loops.interfaces.IConcept
|
||||
loops.browser.skin.Lobo"
|
||||
zope.publisher.interfaces.browser.IBrowserRequest"
|
||||
provides="zope.interface.Interface"
|
||||
factory="loops.compound.book.browser.TopicView"
|
||||
permission="zope.View" />
|
||||
|
|
|
@ -26,6 +26,7 @@ concept(u'quote', u'Zitat', u'documenttype')
|
|||
concept(u'story', u'Geschichte', u'documenttype')
|
||||
concept(u'tip', u'Tipp', u'documenttype')
|
||||
concept(u'usecase', u'Fallbeispiel', u'documenttype')
|
||||
concept(u'warning', u'Warnung', u'documenttype')
|
||||
|
||||
# book structure
|
||||
child(u'book', u'section', u'issubtype', usePredicate=u'ispartof')
|
||||
|
|
Loading…
Add table
Reference in a new issue