Uwe Grauer wrote: > Please change the extension for Classdesigner generated code files. > The code in these files doesn't have anything to do with full python > syntax. It is something like a subset of python syntax. > > Why is that? Well, if it would be full valid python syntax, everything > would work like you think it works in python. > But this isn't the case. > I ran into this issue for several times now. > > I had a form with two buttons on it: > A new button and a edit button which were used to call a childform to do > the work. Because the functionality is very similar for this, i created > a function callEditForm(self, newrecmode=False) which i called like > self.callEditForm() from my editbutton and > self.callEditFormn(newrecmode=True) from my newbutton. > This doesn't work!!! > Don't ask how long it took until i discovered this. > Shame on me. > > So we should change the extension for classdesigner-code files to > reflect this fact that it is really some sort of glue between the > generated layout and real python code. > Call it "form-code.dpy" or something like that but don't use the > extension ".py" for this. > It would also be nice to have a comment at the beginning of these code > files which explicitly states this fact. > Something like: > > ### Dabo Class Designer code. You may freely edit the code, > ### but do not change the comments containing: > ### 'Dabo Code ID: XXXX', > ### as these are needed to link the code to the objects. > ### > ####################### WARNING: ########################### > ### > ### Don't expect to be able to use the full range of python > ### syntax here. Not everything is likely to work. > ### > ############################################################ > > I would like to call this proposal DEP 001. > (where DEP means "Dabo Enhance proposal" ;-)) > > What do you think about this? >
Who would this help? After reading the thread so far, I don't see any benefit. Carl K _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
