PEATSA/WebApp/Data.py
def addMatrix(self, matrix, name):
	
		'''Adds a matrix called name to the data dir.
		
		Note: Name is capitalized if its not already
		
		If data for name is already present, and overwriting is disabled,
		an Exceptions.DataAlreadyExistsError is raised.
		Otherwise the data is added to the self.data dictionary.'''

		if self.data.has_key(name) and self.data[name] is not None:
			if not self.overwrite:
				raise Core.Exceptions.DataAlreadyExistsError, 'A matrix called %s already present' % name
		
		name = name.capitalize()[0] + name[1:]

		self.__addMatrix__(matrix, name)
		self.data[name] = matrix
Adds a matrix called name to the data dir.
		
		Note: Name is capitalized if its not already
		
		If data for name is already present, and overwriting is disabled,
		an Exceptions.DataAlreadyExistsError is raised.
		Otherwise the data is added to the self.data dictionary.
Adds a matrix called name to the data dir.
Note: Name is capitalized if its not already

If data for name is already present, and overwriting is disabled,
an Exceptions.DataAlreadyExistsError is raised.
Otherwise the data is added to the self.data dictionary.
Adds a matrix called name to the data dir . Note : Name is capitalized if its not already If data for name is already present and overwriting is disabled an Exceptions . DataAlreadyExistsError is raised . Otherwise the data is added to the self . data dictionary .
def addMatrix(self, matrix, name):
		if self.data.has_key(name) and self.data[name] is not None:
			if not self.overwrite:
				raise Core.Exceptions.DataAlreadyExistsError, 'A matrix called %s already present' % name
		name = name.capitalize()[0] + name[1:]
		self.__addMatrix__(matrix, name)
		self.data[name] = matrix
def addMatrix ( self , matrix , name ) : if self . data . has_key ( name ) and self . data [ name ] is not None : if not self . overwrite : raise Core . Exceptions . DataAlreadyExistsError , 'A matrix called %s already present' % name name = name . capitalize ( ) [ 0 ] + name [ 1 : ] self . __addMatrix__ ( matrix , name ) self . data [ name ] = matrix
Adds a matrix called name to the data dir.
Adds a matrix called name to the data dir .
'''Adds a matrix called name to the data dir.
		
		Note: Name is capitalized if its not already
		
		If data for name is already present, and overwriting is disabled,
		an Exceptions.DataAlreadyExistsError is raised.
		Otherwise the data is added to the self.data dictionary.'''
self
matrix
name