Ignore:
Timestamp:
Oct 15, 2009, 6:37:56 PM (15 years ago)
Author:
slederer
Message:

Ă„nderungen am Parser, so dass er funktioniert

File:
1 edited

Legend:

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

    r775 r799  
    66@author: hmueller
    77'''
     8
     9from resource import Resource
    810
    911PrettyNames = {}
     
    3032#
    3133
    32 class Item(object):
     34class Item(Resource):
    3335    def __init__(self, name, default=None, type=None, required=False):
    3436        self.name = name
     
    5052        return self.name < other.name
    5153   
    52     def __str__(self):
    53         if PrettyNames.has_key(self.name):
    54             return '%s = "%s"' % (self.prettyName(), str(self.value))
    55         else:
    56             return '%s = "%s" # Warning: No pretty name' % (
    57                                             self.name, str(self.value))
    5854    def prettyName(self):
    5955        return PrettyNames.get(self.name, self.name)
Note: See TracChangeset for help on using the changeset viewer.