Commit 27a04631 authored by Ivan Tyagov's avatar Ivan Tyagov

Add backwards compatability to ensure smooth upgrade process.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1c306ef
......@@ -49,6 +49,7 @@ from ZODB.POSException import ConflictError
from Products.ERP5Type.Globals import InitializeClass, get_request
from Products.PythonScripts.Utility import allow_class
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from warnings import warn
import md5
import cgi
......@@ -985,6 +986,15 @@ class ListBoxRenderer:
getGlobalSearchColumn = lazyMethod(getGlobalSearchColumn)
# backwards compatability
def getGlobalSearchColumnScript(self):
warn("getGlobalSearchColumnScript() is deprecated. Do not use it!", \
DeprecationWarning,
stacklevel=2)
return 'Base_doSelect'
getFullTextSearchKey=getGlobalSearchColumn
getFullTextSearchKeyScript=getGlobalSearchColumnScript
def getPageNavigationMode(self):
"""Return the list box page navigation mode."""
return self.field.get_value('page_navigation_mode')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment