1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

Fix org bug and clean code

This commit is contained in:
xiez
2012-08-02 21:49:17 +08:00
parent 5140af3cb8
commit 574a7a7da8
2 changed files with 2 additions and 7 deletions

View File

@@ -36,10 +36,6 @@ def group_list(request):
try:
group_id = ccnet_threaded_rpc.create_group(group_name.encode('utf-8'),
request.user.username)
# TODO: transaction?
if request.user.org and group_id > 0:
ccnet_threaded_rpc.add_org_group(request.user.org.org_id,
group_id)
except SearpcError, e:
error_msg = e.msg
return render_error(request, error_msg)