Changeset 812 for vanHelsing/trunk/src/resource.py
- Timestamp:
- Jan 13, 2010, 12:35:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/src/resource.py
r799 r812 22 22 23 23 def __str__(self): 24 25 equalsign_hack=[ 'diraddresses', 'ip', 'ipv4' ] 26 24 27 s = "\n".join(self.comments) 25 28 indent=" "*self._recurselevel … … 29 32 return indent+self.name+" = "+self.value+"\n"; 30 33 31 s += indent+self.name + " {\n" 34 if self.name.lower() in equalsign_hack: 35 s += indent+self.name + " = {\n"; 36 else: 37 s += indent+self.name + " {\n" 32 38 for d in self.items: 33 39 s += str(d) … … 71 77 return result 72 78 79 80 class Root(Resource): 81 def __str__(self): 82 s="" 83 for d in self.items: 84 s += str(d) 85 return s 73 86 74 87 class Director(Resource):
Note:
See TracChangeset
for help on using the changeset viewer.