@@ -77,7 +77,6 @@ class Entry:
7777 `shortDesc` A brief (one-line) description of the data
7878 `longDesc` A long, verbose description of the data
7979 `rank` An integer indicating the degree of confidence in the entry data, or ``None`` if not used
80- `history` A list of tuples containing the date/time of change, author, type of change, and a brief description of the change
8180 =================== ========================================================
8281
8382 """
@@ -94,7 +93,6 @@ def __init__(self,
9493 shortDesc = '' ,
9594 longDesc = '' ,
9695 rank = None ,
97- history = None
9896 ):
9997 self .index = index
10098 self .label = label
@@ -107,7 +105,6 @@ def __init__(self,
107105 self .shortDesc = shortDesc
108106 self .longDesc = longDesc
109107 self .rank = rank
110- self .history = history or []
111108
112109 def __str__ (self ):
113110 return self .label
@@ -1258,7 +1255,7 @@ def saveOld(self, path):
12581255 """
12591256 self .saveOldDictionary (path )
12601257
1261- def loadEntry (self , label , molecule = None , group = None , shortDesc = '' , longDesc = '' , history = None ):
1258+ def loadEntry (self , label , molecule = None , group = None , shortDesc = '' , longDesc = '' ):
12621259 """
12631260 Load an entry from the forbidden structures database. This method is
12641261 automatically called during loading of the forbidden structures
@@ -1282,7 +1279,6 @@ def loadEntry(self, label, molecule=None, group=None, shortDesc='', longDesc='',
12821279 item = item ,
12831280 shortDesc = shortDesc ,
12841281 longDesc = longDesc .strip (),
1285- history = history or [],
12861282 )
12871283
12881284 def saveEntry (self , f , entry , name = 'entry' ):
@@ -1314,9 +1310,4 @@ def saveEntry(self, f, entry, name='entry'):
13141310 f .write (entry .longDesc .strip () + "\n " )
13151311 f .write ('""",\n ' )
13161312
1317- f .write (' history = [\n ' )
1318- for time , user , action , description in entry .history :
1319- f .write (' ("{0}","{1}","{2}","""{3}"""),\n ' .format (time , user , action , description ))
1320- f .write (' ],\n ' )
1321-
13221313 f .write (')\n \n ' )
0 commit comments