Changes between Initial Version and Version 1 of Ticket #16308


Ignore:
Timestamp:
Jun 20, 2011, 11:00:50 PM (13 years ago)
Author:
Julien Phalip
Comment:

I've reformatted your description -- next time please use preview to make sure your code samples display correctly.

Using eval() is potentially dangerous as maliciously code could get executed. It is unclear what problem you're having. Please reopen this ticket if you can provide a clear example or a test case illustrating the problem that you're trying to solve.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16308

    • Property Resolutionneedsinfo
    • Property Status newclosed
  • Ticket #16308 – Description

    initial v1  
    44
    55problem code :
     6{{{#!python
    67class CheckboxSelectMultiple(SelectMultiple):
    78    def render(self, name, value, attrs=None, choices=()):
     
    1213        # Normalize to strings
    1314        str_values = set([force_unicode(v) for v in value])
    14 
    15 solustion:
     15}}}
     16solution:
     17{{{#!python
    1618 str_values = set([force_unicode(v) for v in '''eval'''(value)])
     19}}}
Back to Top