On s'arrange pour avoir la meme heure dans l'historique et dans la
sauvegarde des donnes darcs-hash:20041014090237-d1718-a046d8417bf98e314253a1d63fe82174766b44c8.gz
This commit is contained in:
parent
1143a85017
commit
8e44ab2532
1 changed files with 4 additions and 3 deletions
|
@ -757,13 +757,14 @@ class base_classes_crans(crans_ldap) :
|
||||||
modif='inscription'
|
modif='inscription'
|
||||||
else :
|
else :
|
||||||
modif=', '.join(self.modifs)
|
modif=', '.join(self.modifs)
|
||||||
|
|
||||||
hist = "%s, %s" % ( time.strftime(date_format), script_utilisateur )
|
timestamp = localtime()
|
||||||
|
hist = "%s, %s" % ( time.strftime(date_format, timestamp), script_utilisateur )
|
||||||
|
|
||||||
# On loggue
|
# On loggue
|
||||||
try:
|
try:
|
||||||
fd = file('%s/%s_%s_%s' % ("%s/logs" % config.cimetiere, str(self.__class__).split('.')[-1],
|
fd = file('%s/%s_%s_%s' % ("%s/logs" % config.cimetiere, str(self.__class__).split('.')[-1],
|
||||||
time.strftime('%Y-%m-%d-%H:%M'), self.nom()),'wb')
|
time.strftime('%Y-%m-%d-%H:%M', timestamp), self.nom()),'wb')
|
||||||
fd.write("%s\n" % self._data)
|
fd.write("%s\n" % self._data)
|
||||||
fd.close()
|
fd.close()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue