web/uicfg.py
branchtls-sprint
changeset 1723 30c3a713ab61
parent 1721 694f6a50e138
child 1739 78b0819162a8
equal deleted inserted replaced
1722:62f3fefb22f4 1723:30c3a713ab61
    32 class RDisplayRelationTags(RelationTags):
    32 class RDisplayRelationTags(RelationTags):
    33     def __init__(self):
    33     def __init__(self):
    34         super(RDisplayRelationTags, self).__init__()
    34         super(RDisplayRelationTags, self).__init__()
    35         self._counter = 0
    35         self._counter = 0
    36 
    36 
    37     def tag_relation(self, values, *args, **kwargs):
    37     def tag_relation(self, stype, rtype, otype, tag, tagged=None):
    38         super(RDisplayRelationTags, self).tag_relation(values, *args, **kwargs)
    38         super(RDisplayRelationTags, self).tag_relation(stype, rtype, otype, tag,
    39         if values:
    39                                                        tagged)
    40             values['order'] = self.get_timestamp()
    40         if tag:
       
    41             tag['order'] = self.get_timestamp()
    41 
    42 
    42     def get_timestamp(self):
    43     def get_timestamp(self):
    43         self._counter += 1
    44         self._counter += 1
    44         return self._counter
    45         return self._counter
    45 
    46