Пример #1
0
def order_title(order):
    o = order.split()
    t = style.get(o[0], "title")
    if t is None:
        t = []
        warning("%s.title is None", o[0])
    if len(o) > 1:
        t2 = style.get(o[1], "title")
        if t2 is None:
            warning("%s.title is None", o[1])
        else:
            t = substitute_args(t, [t2])
    return t
Пример #2
0
 def title_msg(self, nb=1):
     if self.is_deferred:
         result = style.get("messages", "production_deferred")
     else:
         result = []
     result += self.title
     if self.type is not None:
         t = style.get(self.type.type_name, "title")
         if nb != 1:
             t = nb2msg(nb) + t
         result = substitute_args(result, [t])
     if self.target is not None:
         if self.keyword == "build_phase_two":
             result += style.get(self.target.type.type_name, "title")
         else:
             result += EntityView(self.interface, self.target).title
     return result