- simplified linegui checking if query is an assignment

- Reports missing GUI modules
- Will not load relations if given name is not valid
- Will not execute if relation dest name is not valid



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@283 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-03-21 07:43:57 +00:00
parent e563972436
commit 8065f65d2d
5 changed files with 44 additions and 41 deletions

View File

@@ -109,3 +109,11 @@ class rdate (object):
def __sub__ (self,other):
return (self.intdate-other.intdate).days
def is_valid_relation_name(name):
'''Checks if a name is valid for a relation.
Returns boolean'''
if re.match(r'^[_a-zA-Z]+[_a-zA-Z0-9]*$',name)==None:
return False
else:
return True