Użytkownik jvandal napisał:
>
> def setBaseSQL(self):
> # Set up the base SQL (the fields clause, the from clause,
> etc.) The
> # UI refresh() will probably modify the where clause and maybe
> the
> # limit clause, depending on what the runtime user chooses in
> the
> # select page.
> self.addFrom("doctor_speciality")
> self.setLimitClause("500")
> self.addFieldsFromDataStructure()
> self.addJoin("doctor", "doctor_speciality.specialityfk
> =doctor.pkid")
>
> File "C:\dabo-0.9.2-win\dabo\projects\med\biz\Doctor_Speciality.py", line
> 49,
> in Doctor_Speciality
> self.addJoin("doctor", "doctor_speciality.specialityfk =doctor.pkid")
> NameError: name 'self' is not defined
>
For me, it looks like indentation problem.
Dabo by default uses tabs and maybe you uses spaces.
--
Regards
Jacek Kałucki
_______________________________________________
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/[email protected]