annaluce wrote:
>
>
>
> annaluce wrote:
>>
>> come faccio a validare un campo in funzione del valore di un altro.
>> ad esempio come faccio a rendere obbligatorio il numero matricola solo se
>> studente universitario?
>>
>
> ok dopo aver creato 2 string field testo1 e testo2 e lo script prova come
> segue:
>
> if context.REQUEST.get('testo1').startswith('pippo'):
> return False
> else:
> return 'errore'
>
> se inserisco nell'override validator di testo2
> folder/prova funziona
> mentre python: folder.prova non funziona.
>
> come faccio allora ad inserire pualcosa tipo
> python: test(value == '' or folder.prova=='errore','Errore',False)
>
Risolto era folder.prova() e non solo folder.prova
--
View this message in context:
http://n2.nabble.com/PloneFormGen-override-validator-tp3828647p3835163.html
Sent from the Plone - Italy mailing list archive at Nabble.com.
_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html