update to fileservertasks interface 0.4.0 version

This commit is contained in:
Jan Dittberner 2015-01-26 18:10:08 +01:00
parent 7360b33eca
commit 24b4bab0b0
2 changed files with 29 additions and 0 deletions

View file

@ -92,3 +92,29 @@ def delete_file_mailbox(username, mailboxname):
:rtype: str
"""
@shared_task
def create_file_website_hierarchy(username, sitename):
"""
This task creates the directory hierarchy for a website.
:param str username: the user name
:param str sitename: name of the website
:return: the directory name
:rtype: str
"""
@shared_task
def delete_file_website_hierarchy(username, sitename):
"""
This task deletes the website hierarchy recursively.
:param str username: the user name
:param str sitename: name of the website
:return: the directory name
:rtype: str
"""