/usr/share/pyshared/tp/netlib/objects/Design_Add.py is in python-tp-netlib 0.2.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import copy
from Design import Design
class Design_Add(Design):
no = 49
def __init__(self, sequence, \
id, \
*args, **kw):
self.no = 49
apply(Design.__init__, (self, sequence, id,)+args, kw)
def __str__(self):
output1 = pack(self.struct, self.id, -1, self.categories, self.name, self.desc, -1, self.owner, self.components, "", [])
self.length = len(output1)
output2 = Processed.__str__(self)
return output2+output1
|