Changeset 120
- Timestamp:
- 05/17/05 02:36:19 (4 years ago)
- Files:
-
- fwc/trunk/fwc (modified) (1 diff)
- fwc/trunk/Object.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fwc/trunk/fwc
r119 r120 467 467 lambda ctx, token: re.match(Object.TYPE_PATTERNS[ctx['type']], token) or token in help_object(ctx, ctx['type']) : { 468 468 ORDER : 20, 469 GROUP : 10,469 GROUP : (10, 'Add ...'), 470 470 VAR : 'value', 471 471 HELP : lambda ctx: [(k, v) for k, v in help_network(ctx).iteritems() if 'value' in ctx and k not in tolist(ctx['value']) or 'value' not in ctx], fwc/trunk/Object.py
r118 r120 1 from util import tolist 2 1 3 class Object: 2 4 # Types … … 19 21 20 22 def __init__(self, type, name, value, description = ""): 21 self.name = name23 self.name = str(name) 22 24 self.value = value 23 self.type = type25 self.type = str(type) 24 26 self.description = description 27 28 def __str__(self): 29 return "%s %s %s%s" % (self.type, self.name, ' '.join(map(str, tolist(self.value))), self.description and ' description ' + repr(self.description) or '') 25 30 26 31 def __repr__(self):
