bugAtheist - Bugs: bug #33675, Propuesta de cambio en la gestión...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33675: Propuesta de cambio en la gestión de parámetros de SubTasks

Submitted by:  Miguel Ángel García <magmax>
Submitted on:  Wed 29 Jun 2011 06:27:39 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Miguel Ángel García <magmax>
Open/Closed: Closed

Wed 29 Jun 2011 06:27:39 PM UTC, original submission:

Hola.

Quería proponer un cambio en la gestión de parámetros de Tasks y Commands.

Actualmente, se separan los argumentos mediante un "split" de la clase "string". Esto tiene el problema de separar por espacios sin poder escaparlos y sin agrupar por comillas.

Propongo utilizar 'shlex' para realizar esta tarea.

En concreto, bastaría con editar task.py, añadir 'import shlex' y cambiar la línea 68: 'cmd = self.cmd.split()' por la línea: 'cmd = shlex.split(self.cmd)'

Desconozco si existirá algún efecto secundario, salvo para aquéllos que esperan recibir comillas dobles.

Un saludo.

Miguel Ángel García <magmax>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dvilla (Updated the item)
  • -unavailable- added by magmax (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 Jul 2011 08:18:42 AM UTCmagmaxOpen/ClosedOpen=>Closed
    Fri 01 Jul 2011 06:44:00 PM UTCmagmaxStatusConfirmed=>Fixed
      Assigned toNone=>magmax
    Fri 01 Jul 2011 04:34:53 PM UTCdvillaStatusNone=>Confirmed
    Wed 29 Jun 2011 06:28:16 PM UTCmagmaxSeverity3 - Normal=>1 - Wish

    Back to the top


    Powered by Savane 3.1-cleanup1