1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00
Files
seahub/group/forms.py

19 lines
456 B
Python
Raw Normal View History

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