app/soc/logic/cleaning.py
changeset 837 bc1c951bf3a0
parent 788 892877b7db07
child 867 f4ea0da41915
equal deleted inserted replaced
836:1abdbedf4208 837:bc1c951bf3a0
    69   
    69   
    70     user_entity = user_logic.logic.getForFields({'link_id' : link_id}, unique=True)
    70     user_entity = user_logic.logic.getForFields({'link_id' : link_id}, unique=True)
    71   
    71   
    72     if not user_entity:
    72     if not user_entity:
    73       # user does not exist
    73       # user does not exist
    74       raise forms.ValidationError("This user does not exist")
    74       raise forms.ValidationError("This user does not exist.")
    75   
    75   
    76     return user_entity
    76     return user_entity
    77   return wrapped
    77   return wrapped
    78 
    78 
    79 
    79