243 | | email = entry.Email |
244 | | if not email : |
245 | | if maildomain : |
246 | | email = "%s@%s" % (entry.Name, maildomain) |
247 | | elif smtpserver : |
248 | | email = "%s@%s" % (entry.Name, smtpserver) |
249 | | else : |
250 | | email = "%s@%s" % (entry.Name, "localhost") |
251 | | msg = "%s - <%s>" % (entry.Name, email) |
252 | | if entry.Description : |
253 | | msg += " - %s" % entry.Description |
254 | | print msg |
255 | | print " %s" % (_("Limited by : %s") % entry.LimitBy) |
256 | | print " %s" % (_("Account balance : %.2f") % (entry.AccountBalance or 0.0)) |
257 | | print " %s" % (_("Total paid so far : %.2f") % (entry.LifeTimePaid or 0.0)) |
258 | | print " %s" % (_("Overcharging factor : %.2f") % entry.OverCharge) |
259 | | print |
| 243 | if entry.Exists : |
| 244 | email = entry.Email |
| 245 | if not email : |
| 246 | if maildomain : |
| 247 | email = "%s@%s" % (entry.Name, maildomain) |
| 248 | elif smtpserver : |
| 249 | email = "%s@%s" % (entry.Name, smtpserver) |
| 250 | else : |
| 251 | email = "%s@%s" % (entry.Name, "localhost") |
| 252 | msg = "%s - <%s>" % (entry.Name, email) |
| 253 | if entry.Description : |
| 254 | msg += " - %s" % entry.Description |
| 255 | print msg |
| 256 | print " %s" % (_("Limited by : %s") % entry.LimitBy) |
| 257 | print " %s" % (_("Account balance : %.2f") % (entry.AccountBalance or 0.0)) |
| 258 | print " %s" % (_("Total paid so far : %.2f") % (entry.LifeTimePaid or 0.0)) |
| 259 | print " %s" % (_("Overcharging factor : %.2f") % entry.OverCharge) |
| 260 | print |
262 | | msg = "%s" % entry.Name |
263 | | if entry.Description : |
264 | | msg += " - %s" % entry.Description |
265 | | print msg |
266 | | print " %s" % (_("Limited by : %s") % entry.LimitBy) |
267 | | print " %s" % (_("Group balance : %.2f") % (entry.AccountBalance or 0.0)) |
268 | | print " %s" % (_("Total paid so far : %.2f") % (entry.LifeTimePaid or 0.0)) |
269 | | print |
| 263 | if entry.Exists : |
| 264 | msg = "%s" % entry.Name |
| 265 | if entry.Description : |
| 266 | msg += " - %s" % entry.Description |
| 267 | print msg |
| 268 | print " %s" % (_("Limited by : %s") % entry.LimitBy) |
| 269 | print " %s" % (_("Group balance : %.2f") % (entry.AccountBalance or 0.0)) |
| 270 | print " %s" % (_("Total paid so far : %.2f") % (entry.LifeTimePaid or 0.0)) |
| 271 | print |