- 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:
@@ -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
|
Reference in New Issue
Block a user