Changeset 4952
- Timestamp:
- Jan 17, 2008, 7:00:27 PM (17 years ago)
- Location:
- anuga_core/source/anuga/utilities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/data_audit.py
r4944 r4952 176 176 177 177 if node.nodeName == 'svn_keywords': 178 # Do something178 # Do nothing 179 179 pass 180 180 … … 213 213 else: 214 214 print 'Data file %s is flagged publishable' %fid.name 215 215 216 #FIXME (Ole): Use hash code for original datafile as an XML element 217 # USE CRC32 in zlib or hash 216 218 217 219 #for node in elements: -
anuga_core/source/anuga/utilities/system_tools.py
r4787 r4952 171 171 print 'Version info stored to %s' %filename 172 172 173 174 def compute_checksum(filename): 175 """Compute the CRC32 checksum for specified file 176 """ 177 178 import zlib 179 #FIXME(Ole): Do we need to limit the size? 180 181 fid = open(filename) 182 183 crcval = zlib.crc32(fid.read()) 184 185 return crcval -
anuga_core/source/anuga/utilities/test_system_tools.py
r3937 r4952 25 25 # print host 26 26 assert isinstance(host, basestring), 'User name should be a string' 27 def test_compute_checksum(self): 28 """test_compute_checksum(self): 29 30 Check that checksums on files are OK 31 """ 32 # FIXME: Not Done Yet 33 34 from temp import mkstemp 35 36 # Generate a text file 37 fd, pathname = mkstemp(['.tmp', '', '.', '']) 38 27 39 40 41 28 42 29 43 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.