remove occurences of "Submit" (unused anyway)
This commit is contained in:
parent
4174e9bdc3
commit
4c3b02cdb6
|
@ -361,12 +361,7 @@ class DocumentSearchForm(form.Form):
|
|||
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
data, errors = self.extractData()
|
||||
if not errors and False:
|
||||
plone_utils = getToolByName(self.context.context, 'plone_utils')
|
||||
plone_utils.addPortalMessage(_('Your search has been completed!'))
|
||||
return self.request.response.redirect('./')
|
||||
return
|
||||
pass
|
||||
|
||||
|
||||
class IDossierSearch(interface.Interface):
|
||||
|
@ -409,12 +404,7 @@ class DossierSearchForm(form.Form):
|
|||
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
data, errors = self.extractData()
|
||||
if not errors and False:
|
||||
plone_utils = getToolByName(self.context.context, 'plone_utils')
|
||||
plone_utils.addPortalMessage(_('Your search has been completed!'))
|
||||
return self.request.response.redirect('./')
|
||||
return
|
||||
pass
|
||||
|
||||
|
||||
class IQuestionSearch(interface.Interface):
|
||||
|
@ -451,12 +441,7 @@ class QuestionSearchForm(form.Form):
|
|||
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
data, errors = self.extractData()
|
||||
if not errors and False:
|
||||
plone_utils = getToolByName(self.context.context, 'plone_utils')
|
||||
plone_utils.addPortalMessage(_('Your search has been completed!'))
|
||||
return self.request.response.redirect('./')
|
||||
return
|
||||
pass
|
||||
|
||||
class QuestionPfbSearchForm(QuestionSearchForm):
|
||||
fields = field.Fields(IQuestionSearch)
|
||||
|
@ -506,14 +491,9 @@ class DocumentPfbSearchForm(form.Form):
|
|||
super(DocumentPfbSearchForm, self).updateWidgets()
|
||||
self.widgets['search_type_is_document'].mode = z3c.form.interfaces.HIDDEN_MODE
|
||||
|
||||
@button.buttonAndHandler(_(u'Submit'))
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
data, errors = self.extractData()
|
||||
if not errors and False:
|
||||
plone_utils = getToolByName(self.context.context, 'plone_utils')
|
||||
plone_utils.addPortalMessage(_('Your search has been completed!'))
|
||||
return self.request.response.redirect('./')
|
||||
return
|
||||
pass
|
||||
|
||||
|
||||
class IAdoptedDocumentPfbSearch(interface.Interface):
|
||||
|
@ -559,7 +539,7 @@ class AdoptedDocumentPfbSearchForm(form.Form):
|
|||
self.widgets['adopted'].mode = z3c.form.interfaces.HIDDEN_MODE
|
||||
self.widgets['search_type_is_adopteddocument'].mode = z3c.form.interfaces.HIDDEN_MODE
|
||||
|
||||
@button.buttonAndHandler(_(u'Submit'))
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
pass
|
||||
|
||||
|
@ -583,7 +563,7 @@ class DeputySearchForm(form.Form):
|
|||
super(DeputySearchForm, self).updateWidgets()
|
||||
self.widgets['search_type_is_deputy'].mode = z3c.form.interfaces.HIDDEN_MODE
|
||||
|
||||
@button.buttonAndHandler(_(u'Submit'))
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
pass
|
||||
|
||||
|
@ -605,7 +585,7 @@ class EventSearchForm(form.Form):
|
|||
super(EventSearchForm, self).updateWidgets()
|
||||
self.widgets['search_type_is_event'].mode = z3c.form.interfaces.HIDDEN_MODE
|
||||
|
||||
@button.buttonAndHandler(_(u'Submit'))
|
||||
@button.buttonAndHandler(_(u'Search'))
|
||||
def handleApply(self, action):
|
||||
pass
|
||||
|
||||
|
|
Reference in New Issue