1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-04 21:11:20 +00:00
seahub/group/forms.py

19 lines
456 B
Python
Raw Normal View History

2012-07-11 07:13:59 +00:00
import os
2012-06-25 06:57:14 +00:00
from django import forms
class MessageForm(forms.Form):
2012-08-10 13:20:01 +00:00
message = forms.CharField(max_length=500)
2012-06-25 06:57:14 +00:00
2012-06-27 03:27:00 +00:00
class MessageReplyForm(forms.Form):
message = forms.CharField(max_length=150)
2012-07-11 07:13:59 +00:00
2012-08-13 07:58:54 +00:00
class GroupRecommendForm(MessageForm):
2012-08-10 13:16:55 +00:00
"""
2012-08-13 07:58:54 +00:00
A form used to recommend a file or directory.
2012-08-10 13:16:55 +00:00
"""
groups = forms.CharField()
repo_id = forms.CharField(max_length=40)
2012-08-13 07:58:54 +00:00
path = forms.CharField()
attach_type = forms.CharField(max_length=5)