equal
deleted
inserted
replaced
18 class CWEType(AnyEntity): |
18 class CWEType(AnyEntity): |
19 id = 'CWEType' |
19 id = 'CWEType' |
20 fetch_attrs, fetch_order = fetch_config(['name']) |
20 fetch_attrs, fetch_order = fetch_config(['name']) |
21 |
21 |
22 def dc_title(self): |
22 def dc_title(self): |
23 return self.req._(self.name) |
23 return u'%s (%s)' % (self.name, self.req._(self.name)) |
24 |
24 |
25 def dc_long_title(self): |
25 def dc_long_title(self): |
26 stereotypes = [] |
26 stereotypes = [] |
27 _ = self.req._ |
27 _ = self.req._ |
28 if self.meta: |
28 if self.meta: |
41 class CWRType(AnyEntity): |
41 class CWRType(AnyEntity): |
42 id = 'CWRType' |
42 id = 'CWRType' |
43 fetch_attrs, fetch_order = fetch_config(['name']) |
43 fetch_attrs, fetch_order = fetch_config(['name']) |
44 |
44 |
45 def dc_title(self): |
45 def dc_title(self): |
46 return self.req._(self.name) |
46 return u'%s (%s)' % (self.name, self.req._(self.name)) |
47 |
47 |
48 def dc_long_title(self): |
48 def dc_long_title(self): |
49 stereotypes = [] |
49 stereotypes = [] |
50 _ = self.req._ |
50 _ = self.req._ |
51 if self.meta: |
51 if self.meta: |