plugin misc_account: temporary disabling posts and account deletion
This commit is contained in:
parent
e38a7814ce
commit
cbffc6b484
1 changed files with 7 additions and 0 deletions
|
|
@ -304,6 +304,8 @@ http://www.salut-a-toi.org
|
|||
form_ui.addLabel(D_("New password (again)"))
|
||||
form_ui.addPassword("new_passwd2", value="")
|
||||
|
||||
# FIXME: uncomment and fix these features
|
||||
"""
|
||||
if 'GROUPBLOG' in self.host.plugins:
|
||||
tab_container.addTab("delete_posts", D_("Delete your posts"), container=xml_tools.PairsContainer)
|
||||
form_ui.addLabel(D_("Current profile password"))
|
||||
|
|
@ -318,6 +320,8 @@ http://www.salut-a-toi.org
|
|||
form_ui.addPassword("delete_passwd", value="")
|
||||
form_ui.addLabel(D_("Delete your account"))
|
||||
form_ui.addBool("delete_checkbox", "false")
|
||||
"""
|
||||
|
||||
return form_ui.toXml()
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
|
@ -341,6 +345,8 @@ http://www.salut-a-toi.org
|
|||
return {'xmlui': error_ui.toXml()}
|
||||
|
||||
# check for account deletion
|
||||
# FIXME: uncomment and fix these features
|
||||
"""
|
||||
delete_passwd = data[xml_tools.SAT_FORM_PREFIX + 'delete_passwd']
|
||||
delete_checkbox = data[xml_tools.SAT_FORM_PREFIX + 'delete_checkbox']
|
||||
if delete_checkbox == 'true':
|
||||
|
|
@ -363,6 +369,7 @@ http://www.salut-a-toi.org
|
|||
if verified:
|
||||
defer.returnValue(self.__deleteBlogPosts(posts, comments, profile))
|
||||
defer.returnValue(error_ui())
|
||||
"""
|
||||
|
||||
# check for password modification
|
||||
current_passwd = data[xml_tools.SAT_FORM_PREFIX + 'current_passwd']
|
||||
|
|
|
|||
Loading…
Reference in a new issue