View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005957ParaView(No Category)public2007-10-25 13:342009-05-13 13:59
ReporterRobert Maynard 
Assigned ToBerk Geveci 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version3.4Fixed in Version3.4 
Summary0005957: Python Servermanager Slice problems
Descriptionprint view.Representations[:]
Traceback (most recent call last):
  File "<console>", line 1, in ?
  File "/home/rmaynard/ProjParaview/trunk/build/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 432, in __getslice__
    raise exceptions.IndexError
IndexError

by python standards that should return all the items in the list.
TagsNo tags attached.
Project
Topic Name
Type
Attached Files? file icon CustomServermanager.py [^] (68,780 bytes) 2007-10-31 15:33

 Relationships

  Notes
(0009592)
Robert Maynard (developer)
2007-10-31 12:24

Code to replicate this problem:
 view = servermanager.GetRenderView()
 print view.Representations[:]
(0009596)
Robert Maynard (developer)
2007-10-31 15:33
edited on: 2007-10-31 15:33

Here is a servermanager file that has the proper way of doing slices / gets and dels. This uses the __getItem__ and slice objects that was introduced in 2.0. This will allow people to easily use [:] or [:-1] style slicing / gets

Edit: See upload for the file

(0011138)
Ken Moreland (manager)
2008-04-07 19:02

I have not tried this patch, but if it works, why not put it in 3.4?
(0013007)
Berk Geveci (administrator)
2008-08-14 08:38

Waiting for feedback on my version of the patch from Robert and Utkarsh.
(0013556)
Berk Geveci (administrator)
2008-09-23 11:16

Committed a modified version of the patch.

 Issue History
Date Modified Username Field Change
2007-10-25 13:34 Robert Maynard New Issue
2007-10-31 12:24 Robert Maynard Note Added: 0009592
2007-10-31 15:33 Robert Maynard Note Added: 0009596
2007-10-31 15:33 Robert Maynard Note Edited: 0009596
2007-10-31 15:33 Robert Maynard File Added: CustomServermanager.py
2008-04-07 19:02 Ken Moreland Status backlog => tabled
2008-04-07 19:02 Ken Moreland Assigned To => Berk Geveci
2008-04-07 19:02 Ken Moreland Note Added: 0011138
2008-04-07 19:02 Ken Moreland Category => 3.4
2008-08-14 08:38 Berk Geveci Note Added: 0013007
2008-08-14 08:38 Berk Geveci Status tabled => @20@
2008-09-23 11:16 Berk Geveci Status @20@ => closed
2008-09-23 11:16 Berk Geveci Note Added: 0013556
2008-09-23 11:16 Berk Geveci Resolution open => fixed
2009-05-13 13:58 Utkarsh Ayachit Target Version => 3.4
2009-05-13 13:59 Utkarsh Ayachit Fixed in Version => 3.4
2011-06-16 13:10 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team