]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Table/TableDataModel.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / Table / TableDataModel.py
index 2c37592fc67cdd504d7c0ca1d34e42b4d63bbec2..f167e433599a83c1dae19628151dbd2b49b8f812 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # This file is used to create/update/query/erase table for data models\r
 #\r
-# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
@@ -22,7 +22,7 @@ from Common.StringUtils import ConvertToSqlString
 ## TableDataModel\r
 #\r
 # This class defined a table used for data model\r
-# \r
+#\r
 # @param object:       Inherited from object class\r
 #\r
 #\r
@@ -30,7 +30,7 @@ class TableDataModel(Table):
     def __init__(self, Cursor):\r
         Table.__init__(self, Cursor)\r
         self.Table = 'DataModel'\r
-    \r
+\r
     ## Create table\r
     #\r
     # Create table DataModel\r
@@ -62,13 +62,13 @@ class TableDataModel(Table):
         (Name, Description) = ConvertToSqlString((Name, Description))\r
         SqlCommand = """insert into %s values(%s, %s, '%s', '%s')""" % (self.Table, self.ID, CrossIndex, Name, Description)\r
         Table.Insert(self, SqlCommand)\r
-        \r
+\r
         return self.ID\r
-    \r
+\r
     ## Init table\r
     #\r
     # Create all default records of table DataModel\r
-    #  \r
+    #\r
     def InitTable(self):\r
         EdkLogger.verbose("\nInitialize table DataModel started ...")\r
         for Item in DataClass.MODEL_LIST:\r
@@ -77,7 +77,7 @@ class TableDataModel(Table):
             Description = Item[0]\r
             self.Insert(CrossIndex, Name, Description)\r
         EdkLogger.verbose("Initialize table DataModel ... DONE!")\r
-    \r
+\r
     ## Get CrossIndex\r
     #\r
     # Get a model's cross index from its name\r
@@ -91,5 +91,5 @@ class TableDataModel(Table):
         self.Cur.execute(SqlCommand)\r
         for Item in self.Cur:\r
             CrossIndex = Item[0]\r
-        \r
+\r
         return CrossIndex\r