Parent: [bea16d] (diff)

Download this file

016-add-trove-category-lppl.py    89 lines (83 with data), 4.1 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import sys
import logging
from pylons import tmpl_context as c
from ming.orm import session
from ming.orm.ormsession import ThreadLocalORMSession
from allura import model as M
log = logging.getLogger(__name__)
def main():
M.TroveCategory(trove_cat_id=862,
trove_parent_id=14,
shortname="lppl",
fullname="LaTeX Project Public License",
fullpath="License :: OSI-Approved Open Source :: LaTeX Project Public License")
M.TroveCategory(trove_cat_id=655,
trove_parent_id=432,
shortname="win64",
fullname="64-bit MS Windows",
fullpath="Operating System :: Grouping and Descriptive Categories :: 64-bit MS Windows")
M.TroveCategory(trove_cat_id=657,
trove_parent_id=418,
shortname="vista",
fullname="Vista",
fullpath="Operating System :: Modern (Vendor-Supported) Desktop Operating Systems :: Vista")
M.TroveCategory(trove_cat_id=851,
trove_parent_id=418,
shortname="win7",
fullname="Windows 7",
fullpath="Operating System :: Modern (Vendor-Supported) Desktop Operating Systems :: Windows 7")
M.TroveCategory(trove_cat_id=728,
trove_parent_id=315,
shortname="android",
fullname="Android",
fullpath="Operating System :: Handheld/Embedded Operating Systems :: Android")
M.TroveCategory(trove_cat_id=780,
trove_parent_id=315,
shortname="ios",
fullname="Apple iPhone",
fullpath="Operating System :: Handheld/Embedded Operating Systems :: Apple iPhone")
M.TroveCategory(trove_cat_id=863,
trove_parent_id=534,
shortname="architects",
fullname="Architects",
fullpath="Intended Audience :: by End-User Class :: Architects")
M.TroveCategory(trove_cat_id=864,
trove_parent_id=534,
shortname="auditors",
fullname="Auditors",
fullpath="Intended Audience :: by End-User Class :: Auditors")
M.TroveCategory(trove_cat_id=865,
trove_parent_id=534,
shortname="testers",
fullname="Testers",
fullpath="Intended Audience :: by End-User Class :: Testers")
M.TroveCategory(trove_cat_id=866,
trove_parent_id=534,
shortname="secpros",
fullname="Security Professionals",
fullpath="Intended Audience :: by End-User Class :: Security Professionals")
M.TroveCategory(trove_cat_id=867,
trove_parent_id=535,
shortname="secindustry",
fullname="Security",
fullpath="Intended Audience :: by Industry or Sector :: Security")
ThreadLocalORMSession.flush_all()
ThreadLocalORMSession.close_all()
if __name__ == '__main__':
main()