Definitions

Sorry, no definitions found. Check out and contribute to the discussion of this word!

Etymologies

Sorry, no etymologies found.

Support

Help support Wordnik (and make this page ad-free) by adopting the word midgard.

Examples

  • Never mind Thor has returned to midgard and he hath mighty love.

    Top 200 Marvel Characters #161-180 | Comics Should Be Good! @ Comic Book Resources 2007

  • Current Music: crown me king- surtur sets midgard aflame3 gunslingers | crown me king

    mordicai: crown me king! mordicai 2004

  • Midgard query builder: qb = midgard. query_builder ( 'openbossa_attendee') qb. add_constraint ( 'person. firstname', '=', 'Leif') attendees = qb. execute ()

    Planet GNOME 2010

  • Then I just: sudo apt-get update sudo apt-get install python-midgard2

    Planet GNOME 2010

  • We can go through them and also fetch the associated persons: for attendee in attendees: person = midgard. mgdschema.midgard_person () person. get_by_id (attendee. person) if attendee. likesbeer: print "% s, % s is attending the event" % (person. lastname, person. firstname)

    Planet GNOME 2010

  • As this is the first time we're interacting with the repository we need to tell Midgard to prepare the storage for itself and also for our new openbossa_attendee class: midgard. storage.create_base_storage () midgard. storage.create_class_storage ( 'midgard_person') midgard. storage.create_class_storage ( 'midgard_parameter') midgard. storage.create_class_storage ( 'openbossa_attendee')

    Planet GNOME 2010

  • First we load the Midgard extension: import _midgard as midgard

    Planet GNOME 2010

  • # Open a Midgard repository connection with our config connection = midgard. connection () connection. open_config (configuration)

    Planet GNOME 2010

  • Then we create our attendee object and link that with the person we just created: attendee = midgard. mgdschema.openbossa_attendee () attendee. person = person. id attendee. likesbeer = True attendee. create ()

    Planet GNOME 2010

  • First we create a person object with our attendee: person = midgard. mgdschema.midgard_person () person. firstname = 'Leif' person. lastname = 'Eriksson' person. create ()

    Planet GNOME 2010

Comments

Log in or sign up to get involved in the conversation. It's quick and easy.