Thanks Anthony. Your tip worked. One more thing-- In 1.92.1, I have a controller "a2/mnpg.py" without any View file associated it. That used to work. In 1.99.2, it says "Invalid Controller a2/mnpg.html". Do I need to create a View compulsorily for any controller in 1.99.2?
---- Vineet On Oct 17, 7:04 pm, Anthony <[email protected]> wrote: > Conditional models were introduced in 1.96.1. Subfolders in the /models > folder weren't officially supported prior to that, but if you had > subfolders, the model files in them were not executed conditionally. If you > want the import executed for every request, you have to put it in a > non-conditional model file. > > Anthony > > > > On Monday, October 17, 2011 9:52:57 AM UTC-4, Vineet wrote: > > > Yes. I am using conditional model. > > But whatever the case, same setup is working in web2py 1.92.1 > > I copied the apps within "applications" folder to web2py 1.99.2 > > > It is not working there. > > No change at all is made. > > > Then what may be the reason behind this? (earlier imported module in > > "model" file not available in other model file). > > > --- Vineet > > > On Oct 17, 5:45 pm, Anthony <[email protected]> wrote: > > > Are you using conditional models (i.e., is your aa1.py model file inside > > > /models/aa1/)? > > > > On Monday, October 17, 2011 7:06:16 AM UTC-4, Vineet wrote: > > > > > I downloaded dabo windows ver 1.99.2 > > > > OS: Win7 64bit > > > > > In old version: 1.92.1, I used to keep a 3rd party module named "dabo" > > > > in "site-packages" dir (within web2py dir) & import them in the 1st > > > > model file (named "aa1.py"). > > > > Upon starting the app, this aa1.py is executed first, so that it was > > > > available for all further model files, controller files. > > > > > I tried the same thing in the latest version of web2py. > > > > But the 3rd party module, which gets imported in the first model file, > > > > is no longer available for subsequent models & controllers. > > > > > *** aa1.py : 1st model file *** > > > > import dabo > > > > ... > > > > ... > > > > *** > > > > > *** bb2.py : next model file *** > > > > class myBizobj(dabo.biz.dBizobj); > > > > ... > > > > ... > > > > *** > > > > When controller action "/aa1" is called, > > > > OK. No problem. > > > > > When controller action "/bb2" is called, > > > > NameError: name 'dabo' is not defined > > > > > Is there any change in the latest version which is causing this > > > > behaviour? > > > > > ---Vineet- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -

