Code

Changes between Initial Version and Version 1 of Ticket #16308


Ignore:
Timestamp:
06/20/11 21:00:50 (3 years ago)
Author:
julien
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 Status changed from new to closed
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Resolution changed from to needsinfo
  • 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}}}