Hi Ed,

 

I am going on with the Pycon Tutorial, which I found very useful.

(I am not a professional programmer but I have already made some smaller
scripts in Visual Basic.)

 

 

I am at Edit Recipes form validation section in the tutorial.

(Customising an AppWizard Application / Business Rules / file:
biz/Recipes.py)

 

I set up the default date successfully but the field validation doesn't work
for me.

 

The Def validateField(self, fld, val) function is triggered. I traced that
by putting

            Def validateField(self, fld, val)

                return "some text"

I could see the "some text" in the message bar below.

 

However, the part

                        if fld == "title":

                          return self.validateTitle(val)

 

doesn't show any effect when I put only one letter in the Title field and
change to the next field.

 

When I change the 

            return self.validateTitle(val) row to

            return "some text"

nothing happens also, therefore, I think the problem is not with the
validateTitel() function.

 

What can be wrong?

 

Miklós

 



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaackgpanngp0urgxvyyklpm8kaaaaqaaaan7yryjq1bu6bxxf0ddr7ggeaa...@upcmail.hu

Reply via email to