Commit 20dfdae2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use 'invalid' instead of 'illegal'.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26413 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c562bc8a
...@@ -269,7 +269,7 @@ for table_name in spreadsheets.keys():\n ...@@ -269,7 +269,7 @@ for table_name in spreadsheets.keys():\n
if clean_title != cell_id:\n if clean_title != cell_id:\n
category_properties[\'title\'] = clean_title\n category_properties[\'title\'] = clean_title\n
\n \n
# Detect illegal IDs\n # Detect invalid IDs\n
if path_element_id in property_id_list:\n if path_element_id in property_id_list:\n
invalid_spreadsheet_error_handler(translateString(\n invalid_spreadsheet_error_handler(translateString(\n
"The ID ${id} is invalid, it\'s a reserved property name",\n "The ID ${id} is invalid, it\'s a reserved property name",\n
......
...@@ -1317,7 +1317,7 @@ def setDefaultProperties(property_holder, object=None, portal=None): ...@@ -1317,7 +1317,7 @@ def setDefaultProperties(property_holder, object=None, portal=None):
read_permission=read_permission, read_permission=read_permission,
write_permission=write_permission) write_permission=write_permission)
else: else:
raise TypeError, '"%s" is illegal type for propertysheet' % \ raise TypeError, '"%s" is invalid type for propertysheet' % \
prop['type'] prop['type']
# Create Category Accessors # Create Category Accessors
for cat in cat_list: for cat in cat_list:
...@@ -1453,7 +1453,7 @@ def setDefaultProperties(property_holder, object=None, portal=None): ...@@ -1453,7 +1453,7 @@ def setDefaultProperties(property_holder, object=None, portal=None):
# # setattr(property_holder, prop['id'], defaults[prop['type']]) # # setattr(property_holder, prop['id'], defaults[prop['type']])
# pass # pass
else: else:
raise TypeError, '"%s" is illegal type for propertysheet' % \ raise TypeError, '"%s" is invalid type for propertysheet' % \
prop['type'] prop['type']
########################################## ##########################################
......
...@@ -65,7 +65,7 @@ class lexer(object): ...@@ -65,7 +65,7 @@ class lexer(object):
LOG('lexer', 0, line) LOG('lexer', 0, line)
def t_error(self, t): def t_error(self, t):
raise LexerError, 'ERROR: Illegal character %r' % (t.value[0], ) raise LexerError, 'ERROR: Invalid character %r' % (t.value[0], )
def p_error(self, p): def p_error(self, p):
raise ParserError, 'Syntax error in input: %r' % (p, ) raise ParserError, 'Syntax error in input: %r' % (p, )
......
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