~shikharkohli/sahana-eden/gsoc1

« back to all changes in this revision

Viewing changes to models/000_config.py

  • Committer: Shikhar Kohli
  • Date: 2010-08-11 18:40:09 UTC
  • mfrom: (802.1.156 eden)
  • Revision ID: shikharkohli@gmail.com-20100811184009-yy8zag5dowlam0ip
Merge trunk and update (a bit) of JS

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    Deployers shouldn't typically need to edit any other files.
7
7
"""
8
8
 
 
9
def Tstr(text):
 
10
    """Convenience function for non web2py modules"""
 
11
    return str(T(text))
 
12
 
9
13
s3cfg = local_import("s3cfg")
10
14
deployment_settings = s3cfg.S3Config()
11
15
 
48
52
# Email settings
49
53
# Outbound server
50
54
deployment_settings.mail.server = "127.0.0.1:25"
 
55
# Useful for Windows Laptops:
 
56
#deployment_settings.mail.server = "smtp.gmail.com:587"
 
57
#deployment_settings.mail.login = "username:password"
51
58
# From Address
52
59
deployment_settings.mail.sender = "sahana@your.org"
53
60
# Address to which mails get sent to approve new users
58
65
# Default timezone for users
59
66
deployment_settings.L10n.utc_offset = "UTC +0000"
60
67
 
61
 
# Module settings
62
 
s3_module_type_opts = {
63
 
    1:T("Home"),
64
 
    2:T("Situation Awareness"),
65
 
    3:T("Person Management"),
66
 
    4:T("Aid Management"),
67
 
    5:T("Communications")
68
 
    }
69
68
# Comment/uncomment modules here to disable/enable them
70
69
# Modules menu is defined in 01_menu.py
71
70
from gluon.storage import Storage
72
71
deployment_settings.modules = Storage(
73
72
    default = Storage(
74
 
            name_nice = "Home",
 
73
            name_nice = Tstr("Home"),
75
74
            access = None,      # All Users (inc Anonymous) can see this module in the default menu & access the controller
76
75
            module_type = 0,     # This item is always 1st in the menu
77
76
           resources = Storage() 
78
77
            ),
79
78
    admin = Storage(
80
 
            name_nice = "Administration",
81
 
            description = "Site Administration",
 
79
            name_nice = Tstr("Administration"),
 
80
            description = Tstr("Site Administration"),
82
81
            access = "|1|",     # Only Administrators can see this module in the default menu & access the controller
83
82
            module_type = 0,     # This item is handled separately in the menu
84
83
            resources = Storage()
85
84
            
86
85
        ),
87
86
    gis = Storage(
88
 
            name_nice = "Map",
89
 
            description = "Situation Awareness & Geospatial Analysis",
90
 
            module_type = 1,     # 1st item in the menu
 
87
 
91
88
            resources = Storage(
92
89
                  gis_setting = {'importer' : False},
93
90
                  gis_marker = {'importer' : False},
114
111
                  gis_layer_wms = {'importer' : False},
115
112
                  gis_layer_xyz = {'importer' : False},
116
113
                  gis_layer_yahoo = {'importer' : False}
117
 
                 )
 
114
                 ),
 
115
 
 
116
            name_nice = Tstr("Map"),
 
117
            description = Tstr("Situation Awareness & Geospatial Analysis"),
 
118
            module_type = 1     # 1st item in the menu
 
119
 
118
120
        ),
119
121
    mpr = Storage(
120
 
            name_nice = "Missing Persons",
121
 
            description = "Helps to report and search for Missing Persons",
122
 
            module_type = 2,
 
122
 
123
123
            resources = Storage(
124
124
              mpr_setting = {'importer' : False},
125
125
              mpr_missing_report = {'importer' : False}
126
 
             )
 
126
             ),
 
127
 
 
128
            name_nice = Tstr("Missing Persons"),
 
129
            description = Tstr("Helps to report and search for Missing Persons"),
 
130
            module_type = 2
 
131
 
127
132
        ),
128
133
    rms = Storage(
129
 
            name_nice = "Requests",
130
 
            description = "Tracks requests for aid and matches them against donors who have pledged aid",
131
 
            module_type = 3,
 
134
 
132
135
            resources = Storage(
133
136
              rms_setting = {'importer' : False},
134
137
              rms_req = {'importer' : True},
135
138
              rms_pledge = {'importer' : False},
136
139
              rms_req_detail = {'importer' : False}
137
 
             )
 
140
             ),
 
141
 
 
142
            name_nice = Tstr("Requests"),
 
143
            description = Tstr("Tracks requests for aid and matches them against donors who have pledged aid"),
 
144
            module_type = 3
 
145
 
138
146
        ),
139
147
    hms = Storage(
140
 
            name_nice = "Hospitals",
141
 
            description = "Helps to monitor status of hospitals",
142
 
            module_type = 4,
 
148
 
143
149
            resources = Storage(
144
150
             hms_setting={'importer' : False},
145
151
             hms_hospital = {'importer' : True},
151
157
             hms_resources = {'importer' : False},
152
158
             hms_hrequest = {'importer' : True},
153
159
             hms_hpledge = {'importer' : True}
154
 
             )
 
160
             ),
 
161
 
 
162
            name_nice = Tstr("Hospitals"),
 
163
            description = Tstr("Helps to monitor status of hospitals"),
 
164
            module_type = 4
 
165
 
155
166
        ),
156
167
    vol = Storage(
157
 
            name_nice = "Volunteers",
158
 
            description = "Manage volunteers by capturing their skills, availability and allocation",
159
 
            module_type = 5,
 
168
 
160
169
            resources = Storage(
161
170
             vol_setting = {'importer' : False},
162
171
             vol_volunteer = {'importer' : False},
163
172
             vol_resource = {'importer' : False}
164
 
             )
 
173
             ),
 
174
 
 
175
            name_nice = Tstr("Volunteers"),
 
176
            description = Tstr("Manage volunteers by capturing their skills, availability and allocation"),
 
177
            module_type = 5
 
178
 
165
179
        ),
166
180
    msg = Storage(
167
 
            name_nice = "Messaging",
168
 
            description = "Sends & Receives Alerts via Email & SMS",
169
 
            module_type = 10,
 
181
 
170
182
            resources = Storage(
171
183
              msg_setting = {'importer' : False},
172
184
              msg_email_settings = {'importer' : False},
179
191
              msg_outbox = {'importer' : False},
180
192
              msg_read_status = {'importer' : False},
181
193
              msg_report = {'importer' : False}
182
 
             )
 
194
             ),
 
195
 
 
196
            name_nice = Tstr("Messaging"),
 
197
            description = Tstr("Sends & Receives Alerts via Email & SMS"),
 
198
            module_type = 10
 
199
 
183
200
        ),
184
201
    pr = Storage(
185
 
            name_nice = "Person Registry",
186
 
            description = "Central point to record details on People",
187
 
            module_type = 10,
 
202
 
188
203
            resources = Storage(
189
204
                 pr_address = {'importer' : True},
190
205
                 pr_pe_contact = {'importer' : True},
202
217
                 pr_person = {'importer' : True},
203
218
                 pr_group = {'importer' : True},
204
219
                 pr_group_membership = {'importer' : True},
205
 
                )
 
220
                ),
 
221
 
 
222
 
 
223
            name_nice = Tstr("Person Registry"),
 
224
            description = Tstr("Central point to record details on People"),
 
225
            module_type = 10
206
226
 
207
227
        ),
208
228
    dvi = Storage(
209
 
            name_nice = "Disaster Victim Identification",
210
 
            description = "Disaster Victim Identification",
 
229
            name_nice = Tstr("Disaster Victim Identification"),
 
230
            description = Tstr("Disaster Victim Identification"),
211
231
            module_type = 10,
212
232
            resources = Storage(
213
233
              dvi_setting = {'importer' : False},
219
239
             )
220
240
        ),
221
241
    #dvr = Storage(
222
 
    #        name_nice = "Disaster Victim Registry",
223
 
    #        description = "Traces internally displaced people (IDPs) and their needs",
 
242
    #        name_nice = Tstr("Disaster Victim Registry"),
 
243
    #        description = Tstr("Traces internally displaced people (IDPs) and their needs"),
224
244
    #        module_type = 10
225
245
    #    ),
226
246
    budget = Storage(
227
 
            name_nice = "Budgeting Module",
228
 
            description = "Allows a Budget to be drawn up",
229
 
            module_type = 10,
 
247
 
230
248
            resources = Storage(
231
249
              budget_setting = {'importer' : False},
232
250
              budget_parameter = {'importer' : True},
241
259
              budget_budget = {'importer' : False},
242
260
              budget_budget_bundle = {'importer' : False},
243
261
              budget_budget_staff = {'importer' : False}
244
 
             )
 
262
             ),
 
263
 
 
264
            name_nice = Tstr("Budgeting Module"),
 
265
            description = Tstr("Allows a Budget to be drawn up"),
 
266
            module_type = 10
 
267
 
245
268
        ),
246
269
    cr = Storage(
247
 
            name_nice = "Shelter Registry",
248
 
            description = "Tracks the location, distibution, capacity and breakdown of victims in Shelters",
 
270
            name_nice = Tstr("Shelter Registry"),
 
271
            description = Tstr("Tracks the location, distibution, capacity and breakdown of victims in Shelters"),
249
272
            module_type = 10,
250
273
            resources = Storage(
251
274
              cr_setting = {'importer' : False},
253
276
            )
254
277
        ),
255
278
    delphi = Storage(
256
 
            name_nice = "Delphi Decision Maker",
257
 
            description = "Supports the decision making of large groups of Crisis Management Experts by helping the groups create ranked list.",
258
 
            module_type = 10,
 
279
 
259
280
            resources = Storage(
260
281
              delphi_group = {'importer' : True},
261
282
              delphi_user_to_group = {'importer' : True},
263
284
              delphi_solution = {'importer' : False},
264
285
              delphi_vote = {'importer' : False},
265
286
              delphi_forum_post = {'importer' : False}
266
 
             )
 
287
             ),
 
288
 
 
289
            name_nice = Tstr("Delphi Decision Maker"),
 
290
            description = Tstr("Supports the decision making of large groups of Crisis Management Experts by helping the groups create ranked list."),
 
291
            module_type = 10
 
292
 
267
293
        ),
268
294
    doc = Storage(
269
 
            name_nice = "Document Library",
270
 
            description = "A library of digital resources, such as Photos, signed contracts and Office documents.",
271
 
            module_type = 10,
 
295
 
272
296
            resources = Storage(
273
297
                  doc_setting = {'importer' : False},
274
298
                  doc_metadata = {'importer' : True},
275
299
                  doc_image = {'importer' : False},
276
 
                 )
 
300
                 ),
 
301
 
 
302
            name_nice = Tstr("Document Library"),
 
303
            description = Tstr("A library of digital resources, such as Photos, signed contracts and Office documents."),
 
304
            module_type = 10
 
305
 
277
306
        ),
278
 
    ir = Storage(
279
 
        name_nice = "Incident Reporting",
280
 
        description = "Incident Reporting System",
 
307
    irs = Storage(
 
308
        name_nice = Tstr("Incident Reporting"),
 
309
        description = Tstr("Incident Reporting System"),
281
310
        module_type = 10
282
311
    ),
283
312
    org = Storage(
284
 
            name_nice = "Organization Registry",
285
 
            description = 'Lists "who is doing what & where". Allows relief agencies to coordinate their activities',
286
 
            module_type = 10,
 
313
 
287
314
            resources = Storage(
288
315
                  org_setting = {'importer' : False},
289
316
                  org_sector = {'importer' : False},
292
319
                  org_project = {'importer' : True},
293
320
                  org_staff = {'importer' : True},
294
321
                  org_task = {'importer' : True}
295
 
                 )
 
322
                 ),
 
323
 
 
324
            name_nice = Tstr("Organization Registry"),
 
325
            description = Tstr('Lists "who is doing what & where". Allows relief agencies to coordinate their activities'),
 
326
            module_type = 10
 
327
 
296
328
        ),
297
329
    ticket = Storage(
298
 
            name_nice = "Ticketing Module",
299
 
            description = "Master Message Log to process incoming reports & requests",
300
 
            module_type = 10,
 
330
 
301
331
            resources = Storage(
302
332
              ticket_setting = {'importer' : False},
303
333
              ticket_category = {'importer' : False},
304
334
              ticket_log = {'importer' : False},
305
 
             )
 
335
             ),
 
336
            name_nice = Tstr("Ticketing Module"),
 
337
            description = Tstr("Master Message Log to process incoming reports & requests"),
 
338
            module_type = 10
 
339
 
306
340
        ),
 
341
 
307
342
    importer = Storage(
308
343
             name_nice = "Spreadsheet importer",
309
344
             description = "Used to extract data from spreadsheets and input it to the Eden database",
310
345
             module_type = 5,
311
346
             resources = Storage(
312
347
              importer_slist = {'importer' : True}
313
 
             )
314
 
    )
315
 
    )
 
348
             ),
 
349
    )
 
350
    )
 
351
 
 
352
    #lms = Storage(
 
353
    #        name_nice = Tstr("Logistics Management System"),
 
354
    #        description = Tstr("An intake system, a warehouse management system, commodity tracking, supply chain management, procurement and other asset and resource management capabilities."),
 
355
    #        module_type = 10
 
356
    #    ),
 
357