Changeset 69 for mecha.py

Show
Ignore:
Timestamp:
03/28/07 08:38:40 (22 months ago)
Author:
ploum
Message:

Only display the comment form if you can actually post one.
It fixes #61 for now

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mecha.py

    r68 r69  
    4141#for form in  br.forms() : 
    4242#       print form 
    43 br.select_form(predicate=isform) 
     43try : 
     44        br.select_form(predicate=isform) 
     45except : 
     46        print "pas de form" 
    4447print br.form 
    45 br["field.comment"]="Another dummy comment (at the top?)" 
    46 br.submit() 
     48#br["field.comment"]="Another dummy comment (at the top?)" 
     49#br.submit() 
    4750#for form in br.forms(): 
    4851#       print "***"