1 |
# Copyright (C) 2001, 2002, 2003, 2004 by Intevation GmbH |
# Copyright (C) 2001, 2002, 2003, 2004, 2005 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Jan-Oliver Wagner <[email protected]> |
# Jan-Oliver Wagner <[email protected]> |
4 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
248 |
% (element, d.name)) |
% (element, d.name)) |
249 |
elif d.conversion == "filename": |
elif d.conversion == "filename": |
250 |
value = os.path.abspath(os.path.join(self.GetDirectory(), |
value = os.path.abspath(os.path.join(self.GetDirectory(), |
251 |
value)) |
self.encode(value))) |
252 |
elif d.conversion == "ascii": |
elif d.conversion == "ascii": |
253 |
value = value.encode("ascii") |
value = value.encode("ascii") |
254 |
elif d.conversion: |
elif d.conversion: |
579 |
del self.cl_group, self.cl_prop |
del self.cl_group, self.cl_prop |
580 |
|
|
581 |
def start_clrange(self, name, qname, attrs): |
def start_clrange(self, name, qname, attrs): |
582 |
|
attrs = self.check_attrs(name, attrs, |
583 |
|
[AttrDesc("range", False, None), |
584 |
|
AttrDesc("min", False, None), |
585 |
|
AttrDesc("max", False, None)]) |
586 |
|
|
587 |
range = attrs.get((None, 'range'), None) |
range = attrs['range'] |
588 |
# for backward compatibility (min/max are not saved) |
# for backward compatibility (min/max are not saved) |
589 |
min = attrs.get((None, 'min'), None) |
min = attrs['min'] |
590 |
max = attrs.get((None, 'max'), None) |
max = attrs['max'] |
591 |
|
|
592 |
try: |
try: |
593 |
if range is not None: |
if range is not None: |