[FIX] WIKI: Wiki Pages Application Now get warning id not proper formate

lp bug: https://launchpad.net/bugs/736102 fixed

bzr revid: aag@tinyerp.co.in-20110323131352-wv3chvlt0w7aquj8
This commit is contained in:
aag (OpenERP)
2011-03-23 18:43:52 +05:30
parent 1b466d4a9d
commit 9e6718db9e
+4 -7
View File
@@ -52,13 +52,10 @@ class wiki_make_index(osv.osv_memory):
if not lst0[0][1]:
raise osv.except_osv(_('Warning !'), _('There is no section in this Page'))
check = map(lambda x: x.split('.'), lst0[0][1])
if check:
for i in check:
match = re.match('[0-9]', i[0])
if not match:
raise osv.except_osv(_('Warning !'), _('The section values must be like 1/1.1/1.3.4'))
for i in lst0[0][1]:
match = re.match('[0-9\.]', i)
if not match:
raise osv.except_osv(_('Warning !'), _('The section values must be like 1/1.1/1.3.4'))
lst = []
s_ids = {}