Do you know if the updating from the web2py framework is working yet?
It says it experimental when you do it, but does it work?

On Aug 26, 8:43 pm, Martín Mulone <mulone.mar...@gmail.com> wrote:
> Yes you have to reload web2py everytime you make a change when you are using
> modules. Or put this line in a top of your model:
>
> if request.is_local: #disable in production enviroment    from
> gluon.custom_import import track_changes    track_changes()
>
> Another: Last web2py is 1.98.2
>
> 2011/8/26 Jarrod Cugley <jcug...@gmail.com>
>
>
>
>
>
>
>
>
>
> > Wow. Don't ask me why, but it's working now, I didn't change anything
> > at all... I did restart web2py however...
>
> > I'm pretty confused but whatever it was, it's working now, thanks
> > Martin, I'll be sure to post again if it breaks hahahaha!
>
> > On Aug 26, 8:29 pm, Martín Mulone <mulone.mar...@gmail.com> wrote:
> > > You have the last version?, You have _init_.py in module?, You try
> > changing
> > > objects to another name, pehaps a name-conflict?.
>
> > > 2011/8/26 Jarrod Cugley <jcug...@gmail.com>
>
> > > > I've tried local_import().. Which seems to be deprecated from what
> > > > I've read in this group
>
> > > > I've tried from mymodule import class, and this doesn't seem to work
> > > > either? Is there any documentation on this? Cause I can't really find
> > > > anything that helps me. This is my code:
>
> > > > ### controller/default.py ###
> > > > def search():
> > > >    from objects import Searching
> > > >    return dict(show=Searching.show(db))
>
> > > > ### modules/objects.py ###
> > > > from gluon import *
> > > > request = current.request
>
> > > > class Searching(object):
> > > >    @staticmethod
> > > >    def show(db):
> > > >        search = db(db.listing.title==request.args(0).replace("_","
> > > > ")).select(db.listing.ALL)
> > > >        items = []
> > > >        for person in search:
> > > >            items.append(DIV(A(person.first_name, _href=URL('listing',
> > > > args=person.id))))
>
> > > >        return TAG[''](*items)
>
> > > > ### Error = ImportError: cannot import name Searching ###
>
> > > > Can anyone figure out what I've done wrong?
>
> > > --
> > >  http://martin.tecnodoc.com.ar
>
> --
>  http://martin.tecnodoc.com.ar

Reply via email to