Last change
on this file since 9232 was
3178,
checked in by joachim, 17 years ago
|
xxx_imported.csv -> xxx.imported.csv xxx_pending -> xxx.pending
.backup -> .old
tmp-file is removed after run
|
-
Property svn:keywords set to
Id
|
File size:
975 bytes
|
Line | |
---|
1 | #-*- mode: python; mode: fold -*- |
---|
2 | # (C) Copyright 2005 The WAeUP group <http://www.waeup.org> |
---|
3 | # Author: Joachim Schmitz (js@aixtraware.de) |
---|
4 | # |
---|
5 | # This program is free software; you can redistribute it and/or modify |
---|
6 | # it under the terms of the GNU General Public License version 2 as published |
---|
7 | # by the Free Software Foundation. |
---|
8 | # |
---|
9 | # This program is distributed in the hope that it will be useful, |
---|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | # GNU General Public License for more details. |
---|
13 | # |
---|
14 | # You should have received a copy of the GNU General Public License |
---|
15 | # along with this program; if not, write to the Free Software |
---|
16 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
17 | # 02111-1307, USA. |
---|
18 | # |
---|
19 | # $Id: utils.py 3178 2008-02-18 16:03:26Z joachim $ |
---|
20 | """ |
---|
21 | Standalone utils. |
---|
22 | """ |
---|
23 | import md5 |
---|
24 | def makeDigest(item,data_keys): |
---|
25 | d = {} |
---|
26 | for key in data_keys: |
---|
27 | d[key] = str(item.get(key,'')) |
---|
28 | return md5.new(str(d)).hexdigest() |
---|
29 | |
---|
Note: See
TracBrowser for help on using the repository browser.