Admin¶
civitas.admin ¶
civitas.admin.COF ¶
Bases: Model
Consequence of Failure
civitas.admin.CapitalProject ¶
Bases: Model
Capital project object
civitas.admin.CapitalProjectFeatureCombination ¶
Bases: Model
Capital project feature combinationobject
civitas.admin.CivicAddress ¶
Bases: Model
Civic Address object
civitas.admin.Community ¶
Bases: _Administrative
Administrative community
civitas.admin.Condition ¶
Bases: _Term
Condition of feature 1 very good 2 good 3 fair 4 poor 5 very poor
civitas.admin.Deterioration ¶
Bases: _Term
The process of becoming progressively worse. Contains name and the equation
civitas.admin.FeatureBase ¶
Bases: Model
Model for base feature. Every feature needs to override this model
calculation ¶
Calculate all field that needs calculation
civitas.admin.FeatureBaseAdmin ¶
civitas.admin.FeatureClass ¶
Bases: _Term
The first Level of the Asset Hierarchy as defined in "Background" Sheet ie. TRN = Transportation
civitas.admin.FeatureGeometry ¶
civitas.admin.FeatureProperty ¶
Bases: Model
This is additional property for the feature
civitas.admin.FeatureSubClass ¶
Bases: _Term
The second Level of the Asset Hierarchy as defined in "Background" Sheet ie. RD = Roads It is linked with AssetClass
civitas.admin.FeatureType ¶
Bases: _Term
The third Level of the Asset Hierarchy as defined in "Background" Sheet
civitas.admin.FeatureTypeCombination ¶
Bases: _Term
Combination between class, subclass and type
civitas.admin.POF ¶
Bases: Model
Probability of Failure
civitas.admin.Province ¶
Bases: _Administrative
Administrative province
civitas.admin.Region ¶
Bases: _Administrative
Administrative region
civitas.admin.ReporterData ¶
Bases: Model
Materialized View for reported data
by_community
staticmethod
¶
Return reporter_data by community
by_community_all
staticmethod
¶
dashboard
staticmethod
¶
dashboard
Args: community (Community): community object
Returns: array: dictionary of each cost breakdown
Source code in django_project/civitas/models/view/reporter_data.py
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
|
summary_cof
staticmethod
¶
Return summary of cof for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
summary_pof
staticmethod
¶
Return summary of pof for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
summary_risk
staticmethod
¶
Return summary of risk for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
civitas.admin.Risk ¶
Bases: Model
Probability of Failure
civitas.admin.System ¶
Bases: _Term
System is a collection of all of feature
civitas.admin.SystemAdmin ¶
civitas.admin.Unit ¶
Bases: _Term
Unit
API¶
civitas.api ¶
civitas.api.AssetClassAPI ¶
Bases: APIView
Return summary_pof of ReporterData
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
civitas.api.AssetDataCustomAPI ¶
Bases: APIView
Return summary_pof of ReporterData
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
post ¶
Return data of features
Source code in django_project/civitas/api/community.py
civitas.api.AssetDataDownloadAPI ¶
Bases: APIView
Return summary_pof of ReporterData
civitas.api.AssetDataTable ¶
Bases: APIView
Return summary_pof of ReporterData
Source code in django_project/civitas/api/community.py
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
civitas.api.AssetSubClassAPI ¶
Bases: APIView
Return summary_pof of ReporterData
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
civitas.api.Community ¶
Bases: _Administrative
Administrative community
civitas.api.CommunityAPI ¶
Bases: APIView
Return community list
civitas.api.CommunityAccessPermission ¶
Bases: BasePermission
Check if community is accessible by user
civitas.api.CommunityCOFAPI ¶
Bases: APIView
Return summary_cof of ReporterData
civitas.api.CommunityDetailAPI ¶
Bases: APIView
Return community list
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
civitas.api.CommunityDetailSerializer ¶
Bases: CommunitySerializer
get_systems ¶
Return system of community
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj |
Community
|
|
required |
civitas.api.CommunityPOFAPI ¶
Bases: APIView
Return summary_pof of ReporterData
civitas.api.CommunityRiskAPI ¶
Bases: APIView
Return summary_risk of ReporterData
civitas.api.CommunitySerializer ¶
civitas.api.FeatureBase ¶
Bases: Model
Model for base feature. Every feature needs to override this model
calculation ¶
Calculate all field that needs calculation
civitas.api.FeatureDataGeoSerializer ¶
Bases: GeoFeatureModelSerializer
get_geometry ¶
get_identifier ¶
to_representation ¶
Additional properties
Source code in django_project/civitas/serializer/features.py
civitas.api.FeatureGeojsonDetailAPI ¶
Bases: APIView
get: Return geojson of a feature
civitas.api.FeatureGeometryGeoSerializer ¶
civitas.api.ReporterData ¶
Bases: Model
Materialized View for reported data
by_community
staticmethod
¶
Return reporter_data by community
by_community_all
staticmethod
¶
dashboard
staticmethod
¶
dashboard
Args: community (Community): community object
Returns: array: dictionary of each cost breakdown
Source code in django_project/civitas/models/view/reporter_data.py
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
|
summary_cof
staticmethod
¶
Return summary of cof for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
summary_pof
staticmethod
¶
Return summary of pof for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
summary_risk
staticmethod
¶
Return summary of risk for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
civitas.api.ReporterDataDownloadAPI ¶
Bases: APIView
Download csv file for the reporter data
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
civitas.api.ReporterDataGeojsonDetailAPI ¶
Bases: APIView
get: Return geojson of a feature
civitas.api.SystemNameAPI ¶
Bases: APIView
Return summary_pof of ReporterData
get ¶
Return data of features
Source code in django_project/civitas/api/community.py
Migrations¶
civitas.migrations ¶
Models¶
civitas.models ¶
civitas.models.AimsoirFeatureCode ¶
Bases: Model
AimsoirFeatureCode
civitas.models.COF ¶
Bases: Model
Consequence of Failure
civitas.models.CapitalProject ¶
Bases: Model
Capital project object
civitas.models.CapitalProjectFeatureCombination ¶
Bases: Model
Capital project feature combinationobject
civitas.models.CivicAddress ¶
Bases: Model
Civic Address object
civitas.models.Community ¶
Bases: _Administrative
Administrative community
civitas.models.Condition ¶
Bases: _Term
Condition of feature 1 very good 2 good 3 fair 4 poor 5 very poor
civitas.models.DashboardData ¶
Source code in django_project/civitas/models/view/dashboard_data.py
stacked_a ¶
risk_renewal_assets_list
Returns: formatted list to be used correctly in table
Source code in django_project/civitas/models/view/dashboard_data.py
stacked_b_graph ¶
remaining_years_renewal_system
Returns: formatted list to be used correctly in graph
Source code in django_project/civitas/models/view/dashboard_data.py
stacked_b_list ¶
remaining_years_renewal_system
Returns: formatted list to be used correctly in table and graph
Source code in django_project/civitas/models/view/dashboard_data.py
stacked_c_graph ¶
remaining_years_renewal_system
Returns: formatted list to be used correctly in graph
Source code in django_project/civitas/models/view/dashboard_data.py
stacked_c_list ¶
remaining_years_renewal_system
Returns: formatted list to be used correctly in table and graph
Source code in django_project/civitas/models/view/dashboard_data.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 |
|
civitas.models.Deterioration ¶
Bases: _Term
The process of becoming progressively worse. Contains name and the equation
civitas.models.FeatureBase ¶
Bases: Model
Model for base feature. Every feature needs to override this model
calculation ¶
Calculate all field that needs calculation
civitas.models.FeatureClass ¶
Bases: _Term
The first Level of the Asset Hierarchy as defined in "Background" Sheet ie. TRN = Transportation
civitas.models.FeatureGeometry ¶
civitas.models.FeatureProperty ¶
Bases: Model
This is additional property for the feature
civitas.models.FeatureSubClass ¶
Bases: _Term
The second Level of the Asset Hierarchy as defined in "Background" Sheet ie. RD = Roads It is linked with AssetClass
civitas.models.FeatureType ¶
Bases: _Term
The third Level of the Asset Hierarchy as defined in "Background" Sheet
civitas.models.FeatureTypeCombination ¶
Bases: _Term
Combination between class, subclass and type
civitas.models.POF ¶
Bases: Model
Probability of Failure
civitas.models.Property ¶
Bases: Model
This is property for feature
civitas.models.Province ¶
Bases: _Administrative
Administrative province
civitas.models.Region ¶
Bases: _Administrative
Administrative region
civitas.models.ReporterData ¶
Bases: Model
Materialized View for reported data
by_community
staticmethod
¶
Return reporter_data by community
by_community_all
staticmethod
¶
dashboard
staticmethod
¶
dashboard
Args: community (Community): community object
Returns: array: dictionary of each cost breakdown
Source code in django_project/civitas/models/view/reporter_data.py
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
|
summary_cof
staticmethod
¶
Return summary of cof for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
summary_pof
staticmethod
¶
Return summary of pof for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
summary_risk
staticmethod
¶
Return summary of risk for specific community The return will be grouped by class
Source code in django_project/civitas/models/view/reporter_data.py
civitas.models.System ¶
Bases: _Term
System is a collection of all of feature
civitas.models.Unit ¶
Bases: _Term
Unit