Changes

Jump to: navigation, search

GEPS 013: Gramps Webapp

235 bytes added, 23:03, 22 September 2019
no edit summary
{{man warn|This has been abandoned|Please see https://github.com/gramps-project/gramps-online for future attempts}}
 
Many Gramps users would like to collaborate or share their genealogy data on the web. This GEP describes a webapp, a web-based application that runs in your browser, and requires a server.
A prototype is was on-line from Nov.2009 to Sept.2016 at http://gramps-connect.org/ {{Dead link|url=http://gramps-connect.org/}} which is was running trunk on a sample database. You can could log into the site, as a:
*superuser (id=admin, password=gramps) or a
*regular user (id=admin1, password=gramps)
</pre>
The first retrieves all of the rows for the Person table; the second retrieves just the one record that has the unique, primary key 1, and the third retrieves the single record that has the unique handle of 'gh71234dhf3746347734'. Note that we never connected onto a database... Django is (currently) define to connect on to one database, and it does it on import. The database is set in srcgramps/webapp/settings.py.
An alternative method of interactively talking to the database is to use ''manage.py'':
<pre>
% cd trunkmaster/srcgramps/webapp % PYTHONPATH=../../src gramps python manage.py shell
>>>
</pre>
</pre>
The double-underscore in the keyword "gender_type__name" of the filter method is a Django convention. It means "replace wth with the correct syntax". If Python allowed it, it would be written as '''Person.objects.filter(gender_type.name="Male")''' but that is not legal syntax.
==== Model overview ====
[[Image:all-tables.gif]]
{{out of datestub}}
{{man tip| 1=To update this (Gramps 3.x and earlier) |2=To see more graphical representations of the data, run "make docs" in the src/webapp/ directory, and then look in src/webapp/docs/.}}
A prototype of a Gramps Django webapp is now in trunk and gramps32. To run it, do the following:
# Download Django. You'll need version 1.3 or greater
## On yum-based systems, try "yum install Django"
## On apt-based systems, try "sudo apt-get install python-django"
## python src/gramps.py
# Run the Django Importer
## Select Family Tree -> Import [[Image:DjangoImportExport.jpg|thumb|right|150px]]
## Select the "import.django" (from above) as the file to import

Navigation menu