minor fix for glossary item dialog
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2217 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
b9bb7e22ad
commit
8d4276d16c
1 changed files with 9 additions and 5 deletions
|
@ -34,14 +34,14 @@ from loops.common import adapted
|
|||
from loops import util
|
||||
|
||||
|
||||
template = ViewPageTemplateFile('view_macros.pt')
|
||||
view_macros = ViewPageTemplateFile('view_macros.pt')
|
||||
|
||||
|
||||
class GlossaryView(ConceptView):
|
||||
|
||||
@Lazy
|
||||
def macro(self):
|
||||
return template.macros['glossary']
|
||||
return view_macros.macros['glossary']
|
||||
|
||||
def getActions(self, category='object', page=None):
|
||||
actions = []
|
||||
|
@ -62,7 +62,7 @@ class GlossaryItemView(ConceptView):
|
|||
|
||||
@Lazy
|
||||
def macro(self):
|
||||
return template.macros['glossaryitem']
|
||||
return view_macros.macros['glossaryitem']
|
||||
|
||||
def getActions(self, category='object', page=None):
|
||||
actions = []
|
||||
|
@ -79,10 +79,14 @@ class CreateGlossaryItemForm(CreateConceptForm):
|
|||
|
||||
@Lazy
|
||||
def customMacro(self):
|
||||
return template.macros['children']
|
||||
return view_macros.macros['children']
|
||||
|
||||
|
||||
class EditGlossaryItemForm(CreateGlossaryItemForm, EditConceptForm):
|
||||
|
||||
pass
|
||||
title = _(u'Edit Glossary Item')
|
||||
|
||||
@Lazy
|
||||
def macro(self):
|
||||
return self.template.macros['edit']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue