View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000331 | ascend | pygtk gui | public | 2007-04-02 06:22 | 2011-08-16 19:06 |
Reporter | john | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | |||||
Target Version | 1.0 | Fixed in Version | |||
Summary | 0000331: problem with variable entry box in case of dimensionless var | ||||
Description | problem with variable entry box in case of dimensionless var | ||||
Additional Information | /home/john/ascend/pygtk/varentry.py in checkEntry(self) 71 _my_dims = "[dimensionless]" 72 ---> 73 raise InputError("Incompatible units '%s' (must fit with '%s')" 74 % (self.units, _my_dims.getName().toString()) ) | ||||
Tags | No tags attached. | ||||
|
The error still exists but seems to have changed: Traceback (most recent call last): File "pygtk/modelview.py", line 479, props_activate(self=<modelview.ModelView instance at 0x8d21d4c>, widget=<gtk.ImageMenuItem object at 0x8d482d4 (GtkImageMenuItem at 0x8e8c638)>, *args=()) _dia = VarPropsWin(self.browser,_instance); _dia.run(); else: variables: {'_dia.run': ('local', <bound method VarPropsWin.run of <properties.VarPropsWin instance at 0x94efcac>>)} File "pygtk/properties.py", line 214, run(self=<properties.VarPropsWin instance at 0x94efcac>) if _res == gtk.RESPONSE_APPLY or _res == gtk.RESPONSE_OK: self.apply_changes(); except InputError: variables: {'self.apply_changes': ('local', <bound method VarPropsWin.apply_changes of <properties.VarPropsWin instance at 0x94efcac>>)} File "pygtk/properties.py", line 149, apply_changes(self=<properties.VarPropsWin instance at 0x94efcac>) try: i.checkEntry() self.color_entry(_k,"white"); variables: {'i.checkEntry': ('local', <bound method RealAtomEntry.checkEntry of <varentry.RealAtomEntry instance at 0x955180c>>)} File "pygtk/varentry.py", line 74, checkEntry(self=<varentry.RealAtomEntry instance at 0x955180c>) raise InputError("Incompatible units '%s' (must fit with '%s')" % (self.units, _my_dims.getName().toString()) ) variables: {'self.units': ('local', '?')} AttributeError: 'str' object has no attribute 'getName' |
|
Another aspect of this bug is that when editing the value of dimensionless values, they are shown with a suffixed " 1" afterwards. Dimensionless values should be shown without units, instead. |
|
The bug has been fixed in changeset 3585 http://code.ascend4.org/viewvc?view=rev&revision=3585. The problem regarding the suffixed 1 is still there, though. |
Date Modified | Username | Field | Change |
---|---|---|---|
2007-04-02 06:22 | john | New Issue | |
2007-04-02 06:22 | john | Status | new => assigned |
2007-04-02 06:22 | john | Assigned To | => john |
2007-04-02 06:22 | john | Target release | => 0.9.6 |
2007-11-12 22:21 | john | Category | build-linux => pygtk gui |
2008-03-13 15:55 | john | Note Added: 0000470 | |
2009-05-01 16:52 | john | Target Version | => 0.9.7 |
2009-05-01 17:58 | john | Target Version | 0.9.7 => 1.0 |
2010-03-10 10:45 | john | Note Added: 0000577 | |
2010-03-10 10:45 | john | Assigned To | john => |
2010-03-10 10:45 | john | Status | assigned => confirmed |
2011-08-16 19:06 | aakash | Note Added: 0000757 |