Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(6)  |  Derive(0)  |  Import(5)

src/g/r/gramps-3.4.2/src/gen/db/read.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.lib import (MediaObject, Person, Family, Source, Citation, Event,
                     Place, Repository, Note, Tag, GenderStats, Researcher, 
                     NameOriginType)

src/g/r/gramps-3.4.2/src/gen/db/write.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.lib import (GenderStats, Person, Family, Event, Place, Source, 
                     Citation, MediaObject, Repository, Note, Tag)
from gen.db import (DbBsddbRead, DbWriteBase, BSDDBTxn, 

src/g/r/gramps-3.4.2/src/plugins/lib/libmixin.py   Gramps(Download)
#
#------------------------------------------------------------------------------
from gen.lib import (Person, Family, Event, Place, Source, 
                     MediaObject, Repository, Note, Tag)
 

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
 
        # Tag defintion
        self.tag = gen.lib.Tag()
        self.inaugurate(attrs['handle'], "tag", self.tag)
        self.tag.change = int(attrs.get('change', self.change))
            tag = self.db.get_tag_from_name(tag_name)
            if tag is None:
                tag = gen.lib.Tag()
                tag.set_name(tag_name)
                tag.set_priority(self.db.get_number_of_tags())

src/g/r/gramps-3.4.2/src/plugins/tool/Check.py   Gramps(Download)
    def class_tag(self, handle):
        tag = gen.lib.Tag()
        tag.set_handle(handle)
        return tag
 

src/g/r/gramps-3.4.2/src/gui/views/tags.py   Gramps(Download)
#-------------------------------------------------------------------------
from gen.ggettext import sgettext as _
from gen.lib import Tag
from gen.db import DbTxn
from gui.dbguielement import DbGUIElement
    def cb_new_tag(self, action):
        """
        Create a new tag and tag the selected objects.
        """
        tag = Tag()
    def cb_add_clicked(self, button, top):
        """
        Create a new tag.
        """
        tag = Tag()

src/g/r/gramps-3.4.2/src/plugins/tool/NotRelated.py   Gramps(Download)
from gen.ggettext import sgettext as _
from glade import Glade
from gen.lib import Tag
from gen.db import DbTxn
 
            if not tag:
                # create the tag if it doesn't already exist
                tag = Tag()
                tag.set_name(tag_name)
                tag.set_priority(self.db.get_number_of_tags())