1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-30 17:02:15 +00:00
seahub/share/forms.py

11 lines
305 B
Python
Raw Normal View History

2012-02-11 03:12:54 +00:00
from django import forms
2012-06-12 02:13:14 +00:00
class RepoShareForm(forms.Form):
2012-02-11 03:12:54 +00:00
"""
2012-06-12 02:13:14 +00:00
Form for sharing repo to user or group.
2012-02-11 03:12:54 +00:00
"""
2012-06-12 02:13:14 +00:00
email_or_group = forms.CharField(max_length=512)
2012-02-11 03:12:54 +00:00
repo_id = forms.CharField(max_length=36)
permission = forms.ChoiceField(choices=(('rw', 'read-write'), ('r', 'read-only')))