[pod] When inserting an image via statement do... from document(...), parameter 'sizeUnit' can now be 'pc' (percentage): in this case, percentages are expressed as a tuple (widthPercentage, heightPercentage) in parameter 'size' and must be integers from 1 to 100. [bin] backup.py: better error handling when contacting SMTP server. [gen] Calendar widget for Date fields: bugfix (when the date range is in reverse chronological order). [gen] Ref field: added hook 'afterLink' allowing to execute a method just after an object has been linked. [gen] Ref field: added attribute 'unlinkElement' allowing to define a specific condition for unlinking a given object (before, it was only possible to define, in attribute 'unlink', a global condition allowing to unlink any object from the Ref. [gen] Bugfix: the link to the home page, when clicking on the logo, is fixed.
This commit is contained in:
parent
268309045a
commit
25f0e8184e
10 changed files with 58 additions and 19 deletions
|
@ -172,6 +172,9 @@ class ZodbBackuper:
|
|||
if res:
|
||||
w('Could not send mail to some recipients. %s' % str(res))
|
||||
w('Done.')
|
||||
except smtplib.SMTPException, sme:
|
||||
w('Error while contacting SMTP server %s (%s).' % \
|
||||
(self.options.smtpServer, str(se)))
|
||||
except socket.error, se:
|
||||
w('Could not connect to SMTP server %s (%s).' % \
|
||||
(self.options.smtpServer, str(se)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue