1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-28 07:57:50 +00:00
seahub/share/forms.py
killing 803780ea39 Add read/write permission to share.
Also check permission in various operations.
2012-09-21 11:38:05 +08:00

11 lines
305 B
Python

from django import forms
class RepoShareForm(forms.Form):
"""
Form for sharing repo to user or group.
"""
email_or_group = forms.CharField(max_length=512)
repo_id = forms.CharField(max_length=36)
permission = forms.ChoiceField(choices=(('rw', 'read-write'), ('r', 'read-only')))