Exemple #1
0
    def render(self, session, country, continent, fullname, comments, **arguments):
        dbcontinent = Continent.get_unique(session, continent, compel=True)
        add_location(session, Country, country, dbcontinent, fullname=fullname,
                     comments=comments)

        session.flush()

        return
Exemple #2
0
    def render(self, session, country, continent, fullname, comments,
               **arguments):
        dbcontinent = Continent.get_unique(session, continent, compel=True)
        add_location(session,
                     Country,
                     country,
                     dbcontinent,
                     fullname=fullname,
                     comments=comments)

        session.flush()

        return
Exemple #3
0
 def render(self, session, continent, **arguments):
     return Continent.get_unique(session, continent, compel=True)