Git Product home page Git Product logo

sahana / eden Goto Github PK

View Code? Open in Web Editor NEW
383.0 383.0 557.0 229.46 MB

Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors.. Please sign CLA when submitting pull requests: http://bit.ly/SSF-eCLA

Home Page: http://eden.sahanafoundation.org

License: Other

Python 54.41% HTML 2.01% XSLT 5.99% Shell 0.01% CSS 7.40% JavaScript 28.30% PHP 0.02% NSIS 0.01% Ruby 0.03% Batchfile 0.01% Dockerfile 0.01% RobotFramework 0.07% SCSS 1.74% EJS 0.01%

eden's People

Contributors

arnavkagrawal avatar arnavsharma93 avatar ashwyn avatar aviraldg avatar biplovbhandari avatar coder006 avatar coldblooded01 avatar devinbalkind avatar eimmirzi avatar energy7 avatar flavour avatar gauravmittal1995 avatar govind-menon avatar graeme-f avatar hallamoore avatar hemebond avatar hitesh96db avatar liezl200 avatar lifeeth avatar michaelhowden avatar nownikhil avatar nursix avatar peterdavehello avatar ptressel avatar raj454raj avatar somayjain avatar tirgil avatar trendspotter avatar vishrutmehta avatar waidyanatha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eden's Issues

[trac import 5/14/14] Documentation of Sahana Eden Deployments Lack consistency

This is just a suggestion: I was going through the Sahana Eden deployment pages that provide the same information. The links are the following
1-http://eden.sahanafoundation.org/wiki/Deployments
2- http://en.flossmanuals.net/sahana-eden/user-stories/
3- http://sahanafoundation.org/community/deployments/
I think that the information here is inconsistent because of the following reasons:
For link 1, there are various historic deployments that have no information and no links to information. For example: Indian Ocean Tsunami (2004). The same historic deployment has information on link 3. There is information about the indian ocean Tsunami on link 3.
For link 3, many links don't have any information on them even though they are clickable links and that information is available on link 1. For example- there is information about the 2010 floods pakistan on link 1 but not link 3.
All I am trying to say is that those two links can made more consistent if they share their information and update the webpages. They can use the same information so that users have access to the data at any place.

[trac import 1/17/15] Content breaks on smaller screens on default template

Open: http://demo.eden.sahanafoundation.org/eden/
Breakpoint tested: 650px and below
Expected result: Content scales with fluidity and resizes to current viewport size. Content will fit into the view window with padding at the side for mobile users to view easily. No scroll bars or overflow occurs.
Actual result: Content does not resize, and overflows off the screen, becoming unviewable. Screenshot is attached to show the problem. User has to scroll left and right to see the content, reducing user friendliness and usability.

wireframe
responsive1

[SAMBRO] No option to Edit Subscription

@biplovbhandari ​Edit Subscription does is very different from create subscription; i.e. 2 different forms and different attributes. I should be able to edit my subscription with resetting the priority​ or event type or receiving options. Also when subscribing to an event, the validation should check to see if user has created a subscription with the same event type; if there are duplicate event types then user should be warned.

[trac import 3/10/14 by iamas] In broken_links.py, if proxy is set, does not take into consideration no_proxy env variable.

While running the smoke tests in an environment where proxy is set, smoke tests do not consider the no proxy environment variable. Thus, if you have proxy set, you can not run smoke tests on your localhost. Most probably, the problem lies with twill and how it is not able to fetch a page on the localhost if proxy is set.

More here: http://eden.sahanafoundation.org/attachment/ticket/1518/Sahana-Eden-2014-03-11%2000-32-44.537774.html

[SAMBRO] showing garbage characters

@biplovbhandari In Myanmar server - I created a subscription for Cyclone and then selected all the priorities; after saving I see some garbage like this: Event Type: Cyclone Warning
Priorities: ['\xe1\x80\x99\xe1\x80\xaf\xe1\x80\x94\xe1\x80\xb9\xe1\x80\x90\xe1\x80\xad\xe1\x80\xaf\xe1\x80\x84\xe1\x80\xb9\xe1\x80\xb8\xe1\x80\xa1\xe1\x80\xb1\xe1\x80\xbb\xe1\x80\x81\xe1\x80\xa1\xe1\x80\xb1\xe1\x80\x94 (\xe1\x80\xa1\xe1\x80\x94\xe1\x80\xae\xe1\x80\xb1\xe1\x80\x9b\xe1\x80\xac\xe1\x80\x84\xe1\x80\xb9\xe1\x80\xa1\xe1\x80\x86\xe1\x80\x84\xe1\x80\xb9\xe1\x80\xb7)', 'Storm Warning ( Brown color)', 'Storm News (Depression) (yellow color)', '\xe1\x80\x9b\xe1\x80\x81\xe1\x80\xad\xe1\x80\xaf\xe1\x80\x84\xe1\x80\xb9\xe1\x80\x80\xe1\x80\x99\xe1\x80\xb9\xe1\x80\xb8\xe1\x80\x9b\xe1\x80\xad\xe1\x80\xaf\xe1\x80\xb8\xe1\x80\x90\xe1\x80\x94\xe1\x80\xb9\xe1\x80\xb8']
Languages:['en-US']

[SAMBRO] Adding Branches to an Org is not Apparent

@biplovbhandari Adding Branches - it is absolutely unclear how to add a branch? No menu items no instructions. Following the user guideline it says right click Add but it's confusing because the title says "create organization"; shouldn't it say "create branches"? There must be some instruction in the form reminding the user that they need to right click and ADD.

Reporting incidents by clicking on map

Planning to build a Sahana instance to collect crowd sourced reports of crimes in a city. The requirement for this is a public form that lets users to select a location on map and report the incident directly.

Use case:

  1. Open example.com/report using a mobile phone browser
  2. The web page contains a map, user selects his location on the map or via search bar.
  3. A pop dialog allows user to report the crime.

Filing this bug to see if there any problems in current workflow with what Sahana has to offer out of the box.

Implement POST filter support for maps

Currently, maps send Ajax requests for feature layers as GET (with filters as query) - for better scalability and privacy, this should be changed into POST (using $.SearchS3, with filters as JSON body).

[trac import from 1/17/15] Blurry images on CRMT template at smaller resolutions

Expected result: Images retain clear quality under the "share your story section", as a lack of sharp images is ranked among the top few biggest UX problems in websites.
Actual result:: At smaller resolutions, the images under the "share your story section" resizes to fill up the entire width of the viewport. While the responsiveness is appreciative, the images are uploaded at too small a size, resulting in scaling defects and blurry images.
Solution:: Use originally larger images scaled down for optimal responsiveness, or employ javascript to switch out the images as necessary to one of higher quality.

blurryimages

Import error for portallocker

Hi,

I have come across a import error while I was running configure-eden-cherokee-postgis.sh
Trace is like this:

Traceback (most recent call last):
File "/home/web2py/gluon/restricted.py", line 220, in restricted
exec(ccode, environment)
File "applications/eden/models/000_1st_run.py", line 73, in
from gluon import portalocker
ImportError: cannot import name portalocker

I think it is related to a recent change in web2py.

Regards.

problem with roles setting

I tried to create several roles in the Administration section, but it appears that the permissions are not properly applied. For example, when I create an user and associate to him a role with no CREATE permission on Organisation module and then log in with that user, I can still add new record to the Organisation resource.

I encountered this problem is in an old commit in November, and in the latest version.

[trac import 10/16/14 by nuwan] Reference element must be text

Firstly, the element in both the Create/Edit? CAP Template and Create/Edit? CAP message is a drop-down object. It should be changed to a text box-control object.
Secondly, the logic to fill the text-box should be implemented. It is an optional field. However, we should implement the logic to automatically fill it. If the implementation does not want that, then the it easy to simply comment out the code.
Here's the logic
The group listing identifying earlier message(s) referenced by the alert message (OPTIONAL)
(1) The extended message identifier(s) (in the form sender,identifier,sent) of an earlier CAP message or messages referenced by this one.
(2) If multiple messages are referenced, they SHALL be separated by whitespace.
Here's what you should do
If the text-box is empty (or NULL), then when the On-Save, fill it with the values already available in the and elements. An alternative is to fill the element On-lost-focus or when the elements are completed.

[Trac import 9/26/14 by nuwan] Category select box must display values

The element uses a drop down with a list of selection that are marked for selection by checking a box. However, the control does not display the values. Need another greyed out (readonly) textbox that displays the values.
The display values should be localizable (_T($str)). If we were to change the language choice in eden the values should be displayed in the respective language.

Upgrade Mapping Library from OL2 to either OL3 or Leaflet

Either modern library supports Vector Tiles for enhanced perofrmance & is generally where all development happens.
Since this is such a large task, we propose to run the 2 in parallel for a while.
New isolated mapping usecases will start using the new library & then we can start to migrate across more functionality.

[SMBRO] Authenticated user has not link to Alert list

@biplovbhandari How does the Authenticated user view the list of alerts from the Home Page? There is no menu item to click for the subscriber to review the list of all alerts. The home page may display only active alerts (i.e. expire date > today). But the subscriber may want to refer to an expired alert from the past.

At the time of login the Authenticated user is presented with the Alert list. I think the Home page would be a more appropriate docking point after sign in.

Data import into Sahana Eden

Dear All,

Our group has huge issues importing data into Sahana Eden, even though we follow the prescribed templates religiously, using either .csv, .xls or .xlsx format. (The documentation is very unclear about the permitted file formats, and the patterns seem to shift: Sometimes, .csv import works, at other times it does not - on the same file! The same applies to .xls and .xlsx.)
Here is the output we get:

Traceback (most recent call last):
  File "/home/web2py/gluon/restricted.py", line 227, in restricted
    exec ccode in environment
  File "applications/eden/compiled/controllers.hms.hospital.py", line 279, in <module>
  File "/home/web2py/gluon/globals.py", line 412, in <lambda>
    self._caller = lambda f: f()
  File "applications/eden/compiled/controllers.hms.hospital.py", line 256, in hospital
  File "applications/eden/compiled/models.00_utils.py", line 198, in s3_rest_controller
  File "applications/eden/modules/s3/s3rest.py", line 615, in __call__
    output = handler(self, **attr)
  File "applications/eden/modules/s3/s3rest.py", line 1679, in __call__
    output = self.apply_method(r, **attr)
  File "applications/eden/modules/s3/s3import.py", line 283, in apply_method
    output = self.generate_job(r, **attr)
  File "applications/eden/modules/s3/s3import.py", line 416, in generate_job
    commit_job = single_pass)
  File "applications/eden/modules/s3/s3import.py", line 999, in _generate_import_job
    **args)
  File "applications/eden/modules/s3/s3resource.py", line 2484, in import_xml
    extra_data=extra_data)
  File "applications/eden/modules/s3/s3xml.py", line 2322, in xls2tree
    on_demand=True)
  File "/usr/local/lib/python2.7/dist-packages/xlrd/__init__.py", line 416, in open_workbook
    ragged_rows=ragged_rows,
  File "/usr/local/lib/python2.7/dist-packages/xlrd/xlsx.py", line 791, in open_workbook_2007_xml
    x12sheet.process_stream(zflo, heading)
  File "/usr/local/lib/python2.7/dist-packages/xlrd/xlsx.py", line 531, in own_process_stream
    self.do_dimension(elem)
  File "/usr/local/lib/python2.7/dist-packages/xlrd/xlsx.py", line 565, in do_dimension
    rowx, colx = cell_name_to_rowx_colx(last_cell_ref)
  File "/usr/local/lib/python2.7/dist-packages/xlrd/xlsx.py", line 89, in cell_name_to_rowx_colx
    assert 0 <= colx < X12_MAX_COLS
AssertionError

And:

In file: /home/web2py/applications/eden/compiled/controllers.hms.hospital.pyc
<code object <module> at 0x7f999dbb7730, file "applications/eden/compiled/controllers.hms.hospital.py", line 5>

Any idea what is wrong?
Thanks a lot, indeed!

Chris

Implement POST filter support for data lists

Currently, data lists send Ajax filter queries as GET requests - for better scalability and privacy, this should be changed into POST (using $.SearchS3, with filters as JSON body)

[trac import 1/6/14 by dominic] Default Theme wrongly overflowing to the right in RTL

Default Theme, in right-to-left languages (e.g. Urdu):

  • the top menu is not properly reversed (Modules are still left and Admin menu right - should be vice versa)
  • the main contents is not reversed either (Controller menu is left - should be right)
  • the main scrolls (correctly) to the left - but overflows (wrongly) to the right, hence leaving parts of the contents inaccessible

Suggested solution:
The flow and margin rules for the .fright, .fleft, .col1, .col2, .col3 and .aside classes need to be adapted when body is set to .rtl.

urdu1
urdu2
urdu3

Leap Year Problem

Hello,
Hahana eden is not working on february 29 th

File "/home/web2py/gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/eden/compiled/models.00_utils.py", line 91, in
File "applications/eden/modules/templates/Template/menus.py", line 64, in menu
cls.menu_help(right=True),
File "applications/eden/modules/templates/Template/menus.py", line 88, in menu_help
table = current.s3db.tour_config
File "applications/eden/modules/s3/s3model.py", line 159, in getattr
AttributeError("undefined table: %s" % name))
File "applications/eden/modules/s3/s3model.py", line 224, in table
model(prefix)
File "applications/eden/modules/s3/s3model.py", line 103, in init
env = self.model()
File "applications/eden/modules/s3db/tour.py", line 64, in model
person_id = self.pr_person_id
File "applications/eden/modules/s3/s3model.py", line 159, in getattr
AttributeError("undefined table: %s" % name))
File "applications/eden/modules/s3/s3model.py", line 224, in table
model(prefix)
File "applications/eden/modules/s3/s3model.py", line 103, in init
env = self.model()
File "applications/eden/modules/s3db/pr.py", line 839, in model
past = 1320, # Months, so 110 years
File "applications/eden/modules/s3/s3fields.py", line 1284, in s3_date
month=past_month)
ValueError: day is out of range for month

Thank you

Error ticket for gis controller

Hi guys,

This is what i received:

Traceback (most recent call last):
File "C:\Users\IBM_ADMIN\Documents\GitHub\web2pyremoto\web2py\gluon\restricted.py", line 220, in restricted
exec ccode in environment
File "C:/Users/IBM_ADMIN/Documents/GitHub/web2pyremoto/web2py/applications/eden/controllers/gis.py", line 3765, in
File "C:\Users\IBM_ADMIN\Documents\GitHub\web2pyremoto\web2py\gluon\globals.py", line 389, in
self._caller = lambda f: f()
File "C:/Users/IBM_ADMIN/Documents/GitHub/web2pyremoto/web2py/applications/eden/controllers/gis.py", line 70, in index
save = save,
File "C:/Users/IBM_ADMIN/Documents/GitHub/web2pyremoto/web2py/applications/eden/controllers/gis.py", line 160, in define_map
if res["type"] == "line":
KeyError: 'type'

I uploaded my code just today. Can I help?

Chat Solution

Is there any chat solution that can be integrated with Sahana.

Thank you

Sahana Chat Issues

Some times the following error appears when the chat windows is loaded
TypeError: deps is undefined
if (!deps.splice) {

file : converse.nojquery.js line 405 col 12

define = function (name, deps, callback) {

    //This module may not have dependencies
    if (!deps.splice) {
        //deps is not an array, so probably means
        //an object literal or factory function for
        //the value. Adjust args.
        callback = deps;
        deps = [];
    }

    if (!hasProp(defined, name) && !hasProp(waiting, name)) {
        waiting[name] = [name, deps, callback];
    }
};

Incompatibility with web2py > 2.14.6 (PyDAL 16.06)

Some recent changes in PyDAL break Sahana core functionality, so current web2py trunk can not be used with Sahana. Some of the issues are bugs in PyDAL, others need fixing in Sahana.

If you experience problems with web2py versions > 2.14.6, please either revert to web2py-2.14.6-stable (in the web2py folder):

git reset --hard cda35fd
git submodule update

...or report your issues on our mailing list.

Customisable Dashboards

We want users to be able to build their own dashboards through the web interface.
They would pick one or more widgets from a library of available widgets.
They would position & configure the widgets
They would decide who gets to see this screen (future enhancement)

Add .xlsx export method

Minimally we should catch cases where this fails & report nicely to the user.
Better solutions are:
(1) Use .xlsx instead (requries using http://xlsxwriter.readthedocs.org/en/latest/index.html instead of xlwt)
(2) Export a multi-sheet workbook
Ideally all 3 are done:
.xls requests give a multi-sheet workbook with a user-warning
.xlsx requests are possible
The simple warning is the 'easy' part
Multi-sheet workbook seems fairly simple.
xlsx export is not really 'hard' but not 'easy'

Help deploying

Is there somebody who can offer help in deploying Sahana Eden to our servers?
We want to use this for coordinating in helping refugees in Croatia.

In return I offer quality testing and reporting of all bugs we found when using Eden.

Cheers,
Miroslav

Options filter with grouped options lacking proper styles

S3OptionsFilter lexical group handles appear in the wrong place and overlapping, leaving the filter barely usable:

groupedopts

Example is in the DRK template (current cases list), but the same problem also occurs in other templates (default, STL, RMSAmericas).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.