Changes between Initial Version and Version 2 of Ticket #275


Ignore:
Timestamp:
Aug 5, 2005, 10:40:49 AM (19 years ago)
Author:
Adrian Holovaty
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #275

    • Property Component Admin interfaceCore framework
  • Ticket #275 – Description

    initial v2  
    22
    33In method __call__ of class RequiredIfOtherFieldsGiven :
    4 
     4{{{
    55def __call__(self, field_data, all_data):
    66    for field in self.other:
    77        if all_data.get(field) and not field_data:
    88           raise ValidationError, self.error_message
    9 
     9}}}
    1010looking at the __call__ method of the class RequiredIfOtherFieldNotGiven, the get() method is invoked in this way:
    1111
     12{{{
    1213if not all_data.get(self.other, False) and not field_data:
    13 
     14}}}
    1415
    1516maybe the missed argument is just ``False``, but I'm not sure :-(
     
    1920This is the traceback generated when you call "save" on the add poll form:
    2021
    21 
     22{{{
    2223There's been an error:
    2324
     
    3738
    3839TypeError: get() takes exactly 3 arguments (2 given)
    39 
     40}}}
Back to Top