Modify

Opened 3 years ago

Closed 3 years ago

Last modified 19 months ago

#9880 closed defect (fixed)

List index out of range error in importexport_webadminui.html

Reported by: anonymous Owned by: ben_12
Priority: normal Component: ExportImportXlsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

When I run the plugin I get this error:

Most recent call last:

    File "xxx/.python-eggs/ImportExportXLS-0.1.4-py2.6.egg-tmp/importexportxls/templates/importexport_webadminui.html", line 93, in <Expression u"[fd.label for fd in defaultfields if fd.name == 'version'][0]">
    
Code fragment:

    Line	

    88	<legend>Export</legend>

    89	<div>

    90	<table style="border:0px;">

    91	<thead>

    92	<th>${[fd.label for fd in defaultfields if fd.name == 'type'][0]}</th>

    93	<th>${[fd.label for fd in defaultfields if fd.name == 'version'][0]}</th>

    94	<th>${[fd.label for fd in defaultfields if fd.name == 'milestone'][0]}</th>

    95	<th>${[fd.label for fd in defaultfields if fd.name == 'component'][0]}</th>

    96	<th>${[fd.label for fd in defaultfields if fd.name == 'status'][0]}</th>

    97	<th>${[fd.label for fd in defaultfields if fd.name == 'resolution'][0]}</th>

    98	</thead>

    Local variables:

    Name	Value

    __data__ 	[{'active_panel': u'importexport', 'all': <built-in function all>, ...

    fd 	{'type': 'time', 'name': 'changetime', 'label': 'Modified'}

what can I do?

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by anonymous

  • Trac Release changed from 0.11 to 0.12

comment:2 Changed 3 years ago by ben_12

There is always a version field, no ? Otherwise Trac doesn't work, or there is something that I don't know ?

comment:3 Changed 3 years ago by anonymous

Perhaps, TicketSystem don't return version field description if there is no version defined.
I'll see that later.

comment:4 Changed 3 years ago by ben_12

  • Resolution set to fixed
  • Status changed from new to closed

(In [11365]) fixes #9880 : List index out of range error in importexport_webadminui.html fixes #9887 : Add a statistics page fixes #9888 : Add text format for column with cell wrapping (longtext) fixes #9889 : Add a column with comments in ticket change log fixes #9890 : Give possibility to order columns

comment:5 Changed 3 years ago by ben_12

Thanks for report, it must work now.

comment:6 Changed 3 years ago by rjollos

  • Description modified (diff)

comment:7 Changed 3 years ago by anonymous

thanks for the solution :)

Add Comment

Modify Ticket

Action
as closed The owner will remain ben_12.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.