Esthtisme.
darcs-hash:20060210214021-d1718-ec1be6d5034d439de234b9b1719307be803bb3ce.gz
This commit is contained in:
parent
72d0d32fac
commit
28dd455ca0
1 changed files with 11 additions and 3 deletions
|
@ -212,9 +212,17 @@ class service:
|
||||||
self.start=map(int,start)
|
self.start=map(int,start)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "%s(%s) à partir du %s" % (self.nom, \
|
starting = self.start
|
||||||
','.join(self.args), \
|
starting.sort()
|
||||||
' et '.join(map(lambda t:time.strftime(date_format,time.gmtime(t)), self.start)))
|
dates = ' et '.join(map(lambda t: t<time.time() and \
|
||||||
|
"maintenant" or time.strftime(date_format,
|
||||||
|
time.gmtime(t)),
|
||||||
|
self.start))
|
||||||
|
dates = " à partir d%s %s" % (dates.startswith("maintenant") and "e" or "u",
|
||||||
|
dates)
|
||||||
|
return ("%s(%s)%s" % (self.nom,
|
||||||
|
','.join(self.args),
|
||||||
|
dates)).replace(" et maintenant","")
|
||||||
|
|
||||||
class crans_ldap:
|
class crans_ldap:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue