Child: [fa2cc3] (diff)

Download this file

issue.py    64 lines (43 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from ming.datastore import DataStore
from ming import Session
from ming import Document, Field, schema
from datetime import datetime
class Issue0(Document):
class __mongometa__:
session = Session.by_name('main')
name = 'issue'
_id = Field(schema.ObjectId)
version = Field(0)
created_date = Field(datetime, if_missing=datetime.utcnow)
parent = Field(schema.ObjectId, if_missing=None)
summary = Field(str)
description = Field(str, if_missing='')
reported_by = Field(str)
assigned_to = Field(str, if_missing='')
milestone = Field(str, if_missing='')
status = Field(str, if_missing='open')
Issue = Issue0
class Comment0(Document):
class __mongometa__:
session = Session.by_name('main')
name = 'issue_comment'
_id = Field(schema.ObjectId)
version = Field(0)
created_date = Field(datetime, if_missing=datetime.utcnow)
issue = Field(schema.ObjectId)
kind = Field(str, if_missing='comment')
reply_to = Field(schema.ObjectId, if_missing=None)
text = Field(str)
Comment = Comment0
class Attachment0(Document):
class __mongometa__:
session = Session.by_name('main')
name = 'issue_attachment'
_id = Field(schema.ObjectId)
version = Field(0)
created_date = Field(datetime, if_missing=datetime.utcnow)
issue = Field(schema.ObjectId)
file_type = Field(str)
file_name = Field(str)
data = Field(str)
Attachment = Attachment0