comparison roundup/xmlrpc.py @ 5504:7f3dfdd6a620

make sure everything is sorted in the xmlrpc schema
author Christof Meerwald <cmeerw@cmeerw.org>
date Thu, 16 Aug 2018 20:34:42 +0100
parents 56c9bcdea47f
children ed02a1e0aa5d
comparison
equal deleted inserted replaced
5503:4f6e1ce89557 5504:7f3dfdd6a620
71 71
72 def schema(self): 72 def schema(self):
73 s = {} 73 s = {}
74 for c in self.db.classes: 74 for c in self.db.classes:
75 cls = self.db.classes[c] 75 cls = self.db.classes[c]
76 props = [(n,repr(v)) for n,v in cls.properties.items()] 76 props = [(n,repr(v)) for n,v in sorted(cls.properties.items())]
77 s[c] = props 77 s[c] = props
78 return s 78 return s
79 79
80 def list(self, classname, propname=None): 80 def list(self, classname, propname=None):
81 cl = self.db.getclass(classname) 81 cl = self.db.getclass(classname)

Roundup Issue Tracker: http://roundup-tracker.org/