Commit 7b1972ed authored by Lucas Carvalho's avatar Lucas Carvalho

2011-03-22 lucas

- We must hide the change password action, once the password management is done locally.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44517 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 792434e4
......@@ -26,3 +26,15 @@ def Alarm_updatePersonModulePasswordInformation(self, **kw):
return result.keys()
def Alarm_hideChangePasswordAction(self):
"""
The TioLive Instance has an action to change the user password
and it redirects to TioLive Master.
Once the instance is going to be decoupled, such action must be hidden,
because the password management must be done locally instead of
Tiolive Master.
"""
for action in self.portal_actions.listActions():
if action.id == 'tiolive_change_password':
action.visible = 0
......@@ -71,6 +71,9 @@ if not context.Alarm_moveObsoleteSkinObjectList():\n
context.Alarm_removeAuthenticationPlugin()\n
context.setEnabled(False)\n
\n
# Hide change password action\n
context.Alarm_hideChangePasswordAction()\n
\n
# Notify customer\n
context.Alarm_notifyDecoupleInstance(person_list=result)\n
\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>Alarm_hideChangePasswordAction</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
<value> <string>TioLiveDecoupleInstance</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Alarm_hideChangePasswordAction</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2011-03-22 lucas
- We must hide the change password action, once the password management is done locally.
2011-01-18 lucas
- Initial version
\ No newline at end of file
14
\ No newline at end of file
15
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment