Changes

Jump to: navigation, search

Gramps-Connect

2,369 bytes added, 08:24, 5 January 2017
no edit summary
{{man warn|This page is about the old deprecated gramps-connect based on Django|[https://github.com/gramps-project/django-webapp https://github.com/gramps-project/django-webapp]}}
 
{{man note|The new gramps-connect based on tornado that only works with Gramps master(upcoming Gramps 5.0) can be found at|[https://github.com/gramps-project https://github.com/gramps-project]}}
 
 
= Getting Started =
Without installing Gramps-Connect, you can test it on-line at http://gramps-connect.org/ I'll try to keep that up to date with the current code. It is current as of May 27 July 24 2012. You can view the site in three modes:
* not logged in - should see data of people dead and public. If either a person is dead, or any data is marked private, you should not be able to see it. Living people are marked with "[Living]" (as determined in Preferences -> Text).
Here, we'll update to let you know when you should remake your database, and keep you apprised of other changes.
 
July 27, 2012
 
'''New database format'''. The Database was changed to allow ordered families, parent_families, and tags.
 
'''Verified Import/Output'''. All genealogical data successfully imported and exported. Items missing from XML:
 
* researcher
* name formats
* home person
* bookmarks
* name maps
 
'''Cached Items'''. All items should get a cache when imported.
 
'''Updated SQL Samples'''. both empty.sql and example.sql where updated.
 
'''Speed Improvements'''. Added batch transactions and removed rebuild cache on import.
== Functionality ==
** '''S,''' will give all people who have a surname that starts with "S"
** ''',G''' will give all people who have a given name that starts with "G"
* You can use ^ and $ to signify beginning and end respectively:
** '''id=56''' (match all records that have a gramps_id that conatins 56)
** '''id=^M00''' (match all records that have a gramps_id that starts with M00)
** '''id=00$''' (match all records that have a gramps_id that ends with 00)
** '''id=^M00056$''' (match all records that have a gramps_id that is exactly M00056)
* You can add a period in any search term to search a subpart
** '''father.name.suffix=Jr''' (matches all Jrs on Family Browse view)
* There are some fields that you can also separate with commas:
** '''private=1, surname=Smith, given=Joe, death=1850, birth=2000'''
== Run your own Gramps-Connect in 30 seconds ==
=== Windows ===
1) Get Gramps from Trunkor Gramps 3.5
* https://gramps.svn.sourceforge.net/svnroot/gramps/trunk* https://gramps.svn.sourceforge.net/svnroot/gramps/branches/gramps35 Trunk now uses Gtk3, so use trunk if you can. Gramps 3.5 uses Gtk2.
I use Tortoise SVN. I put gramps on the Desktop, but anywhere will work.
c:\Python27\Lib\site-packages\
Django 1.3 would be best at this pointor greater is required. Well tested on Django 1.3.
4) Change to trunk\src\webapp
8) Point your webbrowser to http://127.0.0.1:8000
=== Linux and Mac ===
Get the latest version of Gramps (currently "trunkmaster" from SVNGit; see [http://gramps-project.org/wiki/index.php?title=Brief_introduction_to_SVN [Brief introduction to SVNGit]]). This will become an easy-to-install package once Gramps 3.5 is released. Below, it is assumed that you have the following installed:
Below, it is assumed that you have the following installed: * Latest Gramps4.1 (in examples below, installed in a folder called "trunk")* Django version 1.2, 5 or 1.3greater
* Sqlite3
* cd trunk
* python3 setup./autogen.shpy build
you are then ready to make and run Gramps-Connect. These are the basic steps for running in a test development:
# cd trunk/srcgramps/webapp
# make
## this will build all tables, and populate with default information
# Point your browser to http://localhost:8000/ and begin using Gramps-Connect
== Django 1.4 ==
=== Django 1.4 ===
tannooba says:
# in settings.py, change TEMPLATE_CONTEXT_PROCESSORS from "django.core.context_processors.auth" to "django.contrib.auth.context_processors.auth".
# In settings.py, changed TEMPLATE_LOADERS to say "django.template.loaders.filesystem.Loader" instead of ...loaders.filesystem.Load_template_source.
 
=== Django 1.6 ===
 
* [http://sourceforge.net/p/gramps/source/merge-requests/12/ Git Merge Request #12: Gramps-connect: Django compatibility fixes (open)], ''This ought to make Gramps-connect compatible with Django 1.3 on up to Django 1.6.'' - Paul Kilgo 2014-06-16 ( [http://sourceforge.net/u/oneeyedparrot/gramps/ci/c6b0e5713bc5f0e5e84c62840efc00c3e7545f24/log/?path= Patches] )
= Options =
* You can change the CSS theme in Admin -> Profile -> User. Give the name of the CSS file per user.
* You can change the name of the site in Admin -> Config -> sitename.
 
== Temporary ==
 
Now that Gramps trunk has moved to Gtk GObject, Gramps depends on it. For older installs which don't have it, you might not be able to produce certain graphics, or output.
 
For the moment, I am using the branches/gramps35 repository (which I will mirror the non-gtk changes with trunk).
= Bugs =
Please list any item that is not listed yet:
# {{bug|7005}} unable to import GRAMPS example DBs
# Not all items are private and living data protected. Need a security audit.
# Many of the secondary level of information (LDS, Location, etc) are accessible for viewing or edit
## Import/Export Tags
## Import Media (need a place to put them)
# Missing edit/delete functionality:## Edit## Delete
## Person
### Events
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'gramps.webapp.settings'os.environ['HOME'] = '/usr/local/wsgi/trunk'os.environ['GRAMPS_RESOURCES'] = '/usr/local/wsgi/trunk/'sys.path.append('/usr/local/wsgi/trunk/src')
import django.core.handlers.wsgi
Permissions:
* chmod a+rw trunk/srcgramps/webapp/sqlite.db * chmod a+xw trunk/srcgramps/webapp/
Additions to /etc/httpd/conf/httpd.conf, for example:
The Gramps-Connect source is defined to match sqlite3 and the above settings. If you would like to change any of this, you'll probably also have to change [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/webapp/settings.py?view=markup trunk/src/webapp/settings.py].
One Once everything is setup, restart the webserver:
service httpd restart
 
[[Category:Developers/General]]
[[Category:GEPS]]

Navigation menu