Proxy class for the Gramps databases. Filter out all data marked private.
Bases: object
A cursor for moving through proxied data.
Bases: gramps.gen.db.base.DbReadBase
ProxyDbBase is a base class for building a proxy to a Gramps database. This class attempts to implement functions that are likely to be common among proxy classes. Functions that are not likely to be common raise a NotImplementedError to remind the developer to implement those functions.
Real database proxy classes can inherit from this class to make sure the database interface is properly implemented.
returns a list of all child reference types associated with Family instances in the database
Finds a Citation in the database from the passed gramps’ ID. If no such Citation exists, None is returned.
Finds a Citation in the database from the passed gramps handle. If no such Citation exists, None is returned.
Return a list of database handles, one handle for each Citation in the database.
returns a list of all Attribute types associated with Event instances in the database
Finds an Event in the database from the passed GRAMPS ID. If no such Event exists, None is returned.
Finds a Event in the database from the passed gramps handle. If no such Event exists, None is returned.
Return a list of database handles, one handle for each Event in the database.
returns a list of all custom event role names associated with Event instances in the database
returns a list of all Attribute types associated with Family instances in the database
Finds a Family in the database from the passed GRAMPS ID. If no such Family exists, None is returned.
Finds a Family in the database from the passed gramps handle. If no such Family exists, None is returned.
Return a list of database handles, one handle for each Family in the database.
returns a list of all relationship types associated with Family instances in the database
returns a list of all Attribute types associated with Media and MediaRef instances in the database
Return a list of database handles, one handle for each MediaObject in the database.
Return the defined names that have been assigned to a default grouping
returns a list of all custom names types associated with Person instances in the database
Finds a Note in the database from the passed gramps’ ID. If no such Note exists, None is returned.
Finds a Note in the database from the passed gramps handle. If no such Note exists, None is returned.
Return a list of database handles, one handle for each Note in the database.
returns a list of all custom note types associated with Note instances in the database
Return the number of media objects currently in the database.
Return the number of source repositories currently in the database.
Return the number of tags currently in the database.
Finds a MediaObject in the database from the passed gramps’ ID. If no such MediaObject exists, None is returned.
Finds an Object in the database from the passed gramps handle. If no such Object exists, None is returned.
returns a list of all custom origin types associated with Person/Surname instances in the database
returns a list of all Attribute types associated with Person instances in the database
Finds a Person in the database from the passed GRAMPS ID. If no such Person exists, None is returned.
Finds a Person in the database from the passed gramps handle. If no such Person exists, None is returned.
Return a list of database handles, one handle for each Person in the database.
Finds a Place in the database from the passed gramps’ ID. If no such Place exists, None is returned.
Finds a Place in the database from the passed gramps handle. If no such Place exists, None is returned.
Return a list of database handles, one handle for each Place in the database.
Finds a Repository in the database from the passed gramps’ ID. If no such Repository exists, None is returned.
Finds a Repository in the database from the passed gramps handle. If no such Repository exists, None is returned.
Return a list of database handles, one handle for each Repository in the database.
returns a list of all custom repository types associated with Repository instances in the database
returns the Researcher instance, providing information about the owner of the database
returns a list of all Attribute types associated with Source/Citation instances in the database
Finds a Source in the database from the passed gramps’ ID. If no such Source exists, None is returned.
Finds a Source in the database from the passed gramps handle. If no such Source exists, None is returned.
Return a list of database handles, one handle for each Source in the database.
returns a list of all custom source media types associated with Source instances in the database
Finds a Tag in the database from the passed gramps handle. If no such Tag exists, None is returned.
Finds a Tag in the database from the passed tag name. If no such Tag exists, None is returned.
Return a list of database handles, one handle for each Tag in the database.
returns a list of all custom names types associated with Url instances in the database
Returns obj if predicate is True or not callable, else returns None
returns True if the handle exists in the current Citation database.
Returns True if the handle exists in the current Family database.
returns True if the handle exists in the current MediaObjectdatabase.
Returns True if the handle exists in the current Person database.
returns True if the handle exists in the current Repository database.
returns True if the handle exists in the current Source database.
Model predicate. Returns True if object referred to by handle is to be included, otherwise returns False.
Return an iterator over database handles, one handle for each Citation in the database.
Return an iterator over database handles, one handle for each Event in the database.
Return an iterator over database handles, one handle for each Family in the database.
Return an iterator over database handles, one handle for each Media Object in the database.
Return an iterator over database handles, one handle for each Note in the database.
Return an iterator over database handles, one handle for each Person in the database.
Return an iterator over database handles, one handle for each Place in the database.
Return an iterator over database handles, one handle for each Repository in the database.
Return an iterator over database handles, one handle for each Source in the database.
Return an iterator over database handles, one handle for each Tag in the database.
Return an iterator over Tag objects in the database
Proxy class for the Gramps databases. Apply filter
Bases: gramps.gen.proxy.proxybase.ProxyDbBase
A proxy to a Gramps database. This proxy will act like a Gramps database, but all data that does not match the provided filters will be hidden from the user.
Find all objects that hold a reference to the object handle. Returns an iterator over a list of (class_name, handle) tuples.
Parameters: |
|
---|
This default implementation does a sequential scan through all the primary object databases and is very slow. Backends can override this method to provide much faster implementations that make use of additional capabilities of the backend.
Note that this is a generator function, it returns a iterator for use in loops. If you want a list of the results use:
> result_list = list(find_backlink_handles(handle))
Finds a Citation in the database from the passed Gramps ID. If no such Citation exists, None is returned.
Finds a Citation in the database from the passed Gramps ID. If no such Citation exists, None is returned.
Finds an Event in the database from the passed Gramps ID. If no such Event exists, None is returned.
Finds a Event in the database from the passed Gramps ID. If no such Event exists, None is returned.
Return a list of database handles, one handle for each Event in the database.
Finds a Family in the database from the passed Gramps ID. If no such Family exists, None is returned.
Finds a Family in the database from the passed Gramps ID. If no such Family exists, None is returned.
Return a list of database handles, one handle for each Family in the database.
Finds a Note in the database from the passed Gramps ID. If no such Note exists, None is returned.
Finds a Note in the database from the passed Gramps ID. If no such Note exists, None is returned.
Return a list of database handles, one handle for each Note in the database.
Finds a MediaObject in the database from the passed Gramps ID. If no such MediaObject exists, None is returned.
Finds a MediaObject in the database from the passed Gramps handle. If no such Object exists, None is returned.
Finds a Person in the database from the passed Gramps ID. If no such Person exists, None is returned.
Finds a Person in the database from the passed Gramps ID. If no such Person exists, None is returned.
Return a list of database handles, one handle for each Person in the database. If sort_handles is True, the list is sorted by surnames
Finds a Place in the database from the passed Gramps ID. If no such Place exists, None is returned.
Finds a Place in the database from the passed Gramps handle. If no such Place exists, None is returned.
Finds a Repository in the database from the passed Gramps ID. If no such Repository exists, None is returned.
Finds a Repository in the database from the passed Gramps ID. If no such Repository exists, None is returned.
Finds a Source in the database from the passed Gramps ID. If no such Source exists, None is returned.
Finds a Source in the database from the passed Gramps ID. If no such Source exists, None is returned.
returns True if the handle exists in the current Family database.
returns True if the handle exists in the current Person database.
Return an iterator over database handles, one handle for each Event in the database.
Return an iterator over database handles, one handle for each Family in the database.
Return an iterator over database handles, one handle for each Note in the database.
Return an iterator over database handles, one handle for each Person in the database.
Proxy class for the Gramps databases. Filter out all living people.
Bases: gramps.gen.proxy.proxybase.ProxyDbBase
A proxy to a Gramps database. This proxy will act like a Gramps database, but all living people will be hidden from the user.
Find all objects that hold a reference to the object handle. Returns an iterator over a list of (class_name, handle) tuples.
Parameters: |
|
---|
This default implementation does a sequential scan through all the primary object databases and is very slow. Backends can override this method to provide much faster implementations that make use of additional capabilities of the backend.
Note that this is a generator function, it returns a iterator for use in loops. If you want a list of the results use:
> result_list = list(find_backlink_handles(handle))
Finds a Family in the database from the passed Gramps ID. If no such Family exists, None is returned.
Finds a Family in the database from the passed handle. If no such Family exists, None is returned.
Finds a Person in the database from the passed Gramps ID. If no such Person exists, None is returned.
Finds a Person in the database from the passed Gramps ID. If no such Person exists, None is returned.
Proxy class for the Gramps databases. Filter out all data marked private.
Bases: gramps.gen.proxy.proxybase.ProxyDbBase
A proxy to a Gramps database. This proxy will act like a Gramps database, but all data marked private will be hidden from the user.
Find all objects that hold a reference to the object handle. Returns an iterator over a list of (class_name, handle) tuples.
Parameters: |
|
---|
This default implementation does a sequential scan through all the primary object databases and is very slow. Backends can override this method to provide much faster implementations that make use of additional capabilities of the backend.
Note that this is a generator function, it returns a iterator for use in loops. If you want a list of the results use:
> result_list = list(find_backlink_handles(handle))
Finds a Citation in the database from the passed Gramps ID. If no such Citation exists, None is returned.
Finds a Citation in the database from the passed Gramps ID. If no such Citation exists, None is returned.
Finds an Event in the database from the passed GRAMPS ID. If no such Event exists, None is returned.
Finds a Event in the database from the passed Gramps ID. If no such Event exists, None is returned.
Finds a Family in the database from the passed GRAMPS ID. If no such Family exists, None is returned.
Finds a Family in the database from the passed Gramps ID. If no such Family exists, None is returned.
Finds a Note in the database from the passed Gramps ID. If no such Note exists, None is returned.
Finds a Note in the database from the passed Gramps ID. If no such Note exists, None is returned.
Finds a MediaObject in the database from the passed Gramps ID. If no such MediaObject exists, None is returned.
Finds an Object in the database from the passed Gramps ID. If no such Object exists, None is returned.
Finds a Person in the database from the passed GRAMPS ID. If no such Person exists, None is returned.
Finds a Person in the database from the passed Gramps ID. If no such Person exists, None is returned.
Finds a Place in the database from the passed Gramps ID. If no such Place exists, None is returned.
Finds a Place in the database from the passed Gramps ID. If no such Place exists, None is returned.
Finds a Repository in the database from the passed Gramps ID. If no such Repository exists, None is returned.
Finds a Repository in the database from the passed Gramps ID. If no such Repository exists, None is returned.
Finds a Source in the database from the passed Gramps ID. If no such Source exists, None is returned.
Finds a Source in the database from the passed Gramps ID. If no such Source exists, None is returned.
returns True if the handle exists in the current Citation database.
Return True if the handle exists in the current MediaObjectdatabase.
returns True if the handle exists in the current Person database.
Return True if the handle exists in the current Repository database.
returns True if the handle exists in the current Source database.
Predicate returning True if object is to be included, else False
Copies addresses from one object to another - excluding references to private addresses.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies associations from one object to another - excluding references to private notes.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies attributes from one object to another - excluding references to private attributes.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies citation references from one object to another - excluding references to private citations, and references to citations that refer to private sources.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies LDS ORDs from one object to another - excluding references to private LDS ORDs.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies media references from one object to another - excluding private references and references to private objects.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies notes from one object to another - excluding references to private notes.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies srcattributes from one object to another - excluding references to private srcattributes.
Parameters: |
|
---|---|
Returns: | Nothing |
Copies urls from one object to another - excluding references to private urls.
Parameters: |
|
---|---|
Returns: | Nothing |
Create a new Address instance based off the passed Address instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Address object |
Return type: | Address |
Create a new Citation instance based off the passed Citation instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Citation object |
Return type: | Citation |
Create a new Event instance based off the passed Event instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Event object |
Return type: | Event |
Create a new EventRef instance based off the passed EventRef instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ EventRef object |
Return type: | EventRef |
Create a new Family instance based off the passed Family instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Family object |
Return type: | Family |
Create a new LdsOrd instance based off the passed LdsOrd instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ LdsOrd object |
Return type: | LdsOrd |
Create a new MediaObject instance based off the passed Media instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Media object |
Return type: | MediaObject |
Create a new MediaRef instance based off the passed MediaRef instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ MediaRef object |
Return type: | MediaRef |
Create a new Name instance based off the passed Name instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Name object |
Return type: | Name |
Create a new Person instance based off the passed Person instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Person object |
Return type: | Person |
Create a new Place instance based off the passed Place instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Place object |
Return type: | Place |
Create a new Repository instance based off the passed Repository instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Repository object |
Return type: | Repository |
Create a new Source instance based off the passed Source instance. The returned instance has all private records removed from it.
Parameters: |
|
---|---|
Returns: | ‘cleansed’ Source object |
Return type: | Source |
Proxy class for the Gramps databases. Returns objects which are referenced by a person, or through a chain of references starting with a person.
Bases: gramps.gen.proxy.proxybase.ProxyDbBase
A proxy to a Gramps database. This proxy will act like a Gramps database, but returning all objects which are referenced by a selection, or by an object that is referenced by an object which is eventually referenced by one of the selected objects.
Return appropriate backlink handles for this proxy.
Follow the citation object and find all of the primary objects that it references.
Follow the event object and find all of the primary objects that it references.
Follow the family object and find all of the primary objects that it references.
Follow the media object and find all of the primary objects that it references.
Follow the note object and find all of the primary objects that it references.
Follow the person object and find all of the primary objects that it references.
Follow the place object and find all of the primary objects that it references.
Follow the repository object and find all of the primary objects that it references.
Follow the source object and find all of the primary objects that it references.
Record the tags referenced by the primary object.