Ignore:
Timestamp:
Jan 13, 2010, 12:35:53 PM (15 years ago)
Author:
slederer
Message:

Korrekte Syntax bei DirAddress-Elementen, Verbesserungen bei Includes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/src/resource.py

    r799 r812  
    2222
    2323    def __str__(self):
     24
     25        equalsign_hack=[ 'diraddresses', 'ip', 'ipv4' ]
     26
    2427        s = "\n".join(self.comments)
    2528        indent="  "*self._recurselevel
     
    2932                return indent+self.name+" = "+self.value+"\n";
    3033
    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"
    3238        for d in self.items:
    3339            s += str(d)
     
    7177        return result
    7278                         
     79
     80class Root(Resource):
     81    def __str__(self):
     82        s=""
     83        for d in self.items:
     84            s += str(d)
     85        return s
    7386
    7487class Director(Resource):
Note: See TracChangeset for help on using the changeset viewer.