'current_artist' : fields.function(_current_artist, method=True,string='Current Artist',type='selection',
selection=[('current','Current'),('unused','Unused')],
Help="Person is part of the current Album/Track",
store=True),
the data are stored correctly (in a text field ?) in the database
web browser works, GTK seems to have a similar problem
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/Koo/Dialogs/TreeWidget.py", line 269, in open
self.executeAction( 'tree_but_open', id )
File "/usr/lib64/python2.6/site-packages/Koo/Dialogs/TreeWidget.py", line 262, in executeAction
Api.instance.executeKeyword(keyword, {'model':self.model, 'id':id, 'report_type':report_type, 'ids': [id]})
File "./koo.py", line 127, in executeKeyword
return Koo.Actions.executeKeyword( keyword, data, context )
File "/usr/lib64/python2.6/site-packages/Koo/Actions/Actions.py", line 224, in executeKeyword
Api.instance.executeAction(action, data, context=context)
File "./koo.py", line 124, in executeAction
Koo.Actions.executeAction( action, data, context )
File "/usr/lib64/python2.6/site-packages/Koo/Actions/Actions.py", line 173, in executeAction
target=target )
File "./koo.py", line 133, in createWindow
view_type, window, context, mode, name, autoReload, target )
File "/usr/lib64/python2.6/site-packages/Koo/Dialogs/WindowService.py", line 51, in createWindow
context=context, name=name )
File "/usr/lib64/python2.6/site-packages/Koo/Dialogs/FormWidget.py", line 108, in __init__
self.screen.setupViews( view_type, view_ids )
File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 142, in setupViews
self.switchView()
File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 361, in switchView
self.setView( self.currentView() )
File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 610, in currentView
self.addViewByIdAndType( id, type )
File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 383, in addViewByIdAndType
return self.addView( view['arch'], view['fields'], display, toolbar=view.get('toolbar', False), id=view.get('view_id',False) )
File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 449, in addView
view = ViewFactory.create(id, self, self.resource, dom, self.fields)
File "/usr/lib64/python2.6/site-packages/Koo/View/ViewFactory.py", line 73, in create
return parser.create(viewId, parent, model, node, fields)
File "/usr/lib64/python2.6/site-packages/Koo/View/Tree/Parser.py", line 95, in create
fields[fname]['readonly'] = bool(int(node_attrs['readonly']))
ValueError: invalid literal for int() with base 10: 'True'
A Dimecres, 19 d'agost de 2009, Ferdinand @ ChriCar va escriure: function( _current_ artist, True,string= 'Current Artist' ,type=' selection' , [('current' ,'Current' ),('unused' ,'Unused' )], Help="Person is part
> Public bug reported:
>
> 'current_artist' : fields.
> method=
> selection=
> of the current Album/Track", store=True),
Can you send the description of the view? Simply the <field artist" ...> would be enough.
name="current_
> python2. 6/site- packages/ Koo/Dialogs/ TreeWidget. py", line python2. 6/site- packages/ Koo/Dialogs/ TreeWidget. py", line executeKeyword( keyword, :self.model, 'id':id, 'report_ type':report_ type, 'ids': [id]}) File executeKeyword( keyword, data, context ) python2. 6/site- packages/ Koo/Actions/ Actions. py", line executeAction( action, data, executeAction( action, data, context ) python2. 6/site- packages/ Koo/Actions/ Actions. py", line python2. 6/site- packages/ Koo/Dialogs/ WindowService. py", python2. 6/site- packages/ Koo/Dialogs/ FormWidget. py", line setupViews( view_type, view_ids ) python2. 6/site- packages/ Koo/Screen/ Screen. py", line 142, python2. 6/site- packages/ Koo/Screen/ Screen. py", line 361, python2. 6/site- packages/ Koo/Screen/ Screen. py", line 610, dAndType( id, type ) python2. 6/site- packages/ Koo/Screen/ Screen. py", line 383, view.get( 'toolbar' , False), id=view. get('view_ id',False) ) python2. 6/site- packages/ Koo/Screen/ Screen. py", line 449, create( id, self, self.resource, dom, python2. 6/site- packages/ Koo/View/ ViewFactory. py", line 73, in create( viewId, parent, model, node, fields) python2. 6/site- packages/ Koo/View/ Tree/Parser. py", line fname][ 'readonly' ] = bool(int( node_attrs[ 'readonly' ])) client- kde
> the data are stored correctly (in a text field ?) in the database
> web browser works, GTK seems to have a similar problem
>
> Traceback (most recent call last):
> File "/usr/lib64/
> 269, in open self.executeAction( 'tree_but_open', id )
> File "/usr/lib64/
> 262, in executeAction Api.instance.
> {'model'
> "./koo.py", line 127, in executeKeyword
> return Koo.Actions.
> File "/usr/lib64/
> 224, in executeKeyword Api.instance.
> context=context)
> File "./koo.py", line 124, in executeAction
> Koo.Actions.
> File "/usr/lib64/
> 173, in executeAction target=target )
> File "./koo.py", line 133, in createWindow
> view_type, window, context, mode, name, autoReload, target )
> File "/usr/lib64/
> line 51, in createWindow context=context, name=name )
> File "/usr/lib64/
> 108, in __init__ self.screen.
> File "/usr/lib64/
> in setupViews self.switchView()
> File "/usr/lib64/
> in switchView self.setView( self.currentView() )
> File "/usr/lib64/
> in currentView self.addViewByI
> File "/usr/lib64/
> in addViewByIdAndType return self.addView( view['arch'], view['fields'],
> display, toolbar=
> File "/usr/lib64/
> in addView view = ViewFactory.
> self.fields) File
> "/usr/lib64/
> create return parser.
> File "/usr/lib64/
> 95, in create fields[
> ValueError: invalid literal for int() with base 10: 'True'
>
> ** Affects: openobject-
> Importance: Undecided
> Status: New
-- www.NaN- tic.com
Albert Cervera i Areny
http://
Mòbil: +34 669 40 40 18