Hi Theodoros:
On Mon, 24 Nov 2008, Theodoros Theodoropoulos wrote:
> I was playing with the various account options and set:
> CFG_ACCESS_CONTROL_LEVEL_ACCOUNTS = 1
> CFG_ACCESS_CONTROL_NOTIFY_ADMIN_ABOUT_NEW_ACCOUNTS = 1
> CFG_ACCESS_CONTROL_NOTIFY_USER_ABOUT_NEW_ACCOUNT = 1
> CFG_ACCESS_CONTROL_NOTIFY_USER_ABOUT_ACTIVATION = 1 <---
>
> With this last option activated, as invenio admin, I tried to activate
> an account, but I run into a python exception for
> lib/python/invenio/webaccessadmin_lib.py
> More specifically, in function "send_account_activated_message" the
> system tries to send an email with "*" in place of the original
> password but fails during calculation of len(password) because
> password is an int (a six digit number, and python complains about an
> unsigned object).
> A quick fix that worked for me was to replace
> body += ' ' + _("Password:") + " %s\n" % ("*" * len(password))
> with
> body += ' ' + _("Password:") + " %s\n" % ("*" * len(str(password)))
Thanks, committed.
<http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=commit;h=4a48d259b8e209d2bb61d96607b78b5c4cea4c46>
P.S. I think these functions could be generally polished/updated...
CC-ing Sam.
Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>