Use it like a helper. in a module I have: (this fail because LOAD is not passed in current and loadfactory need enviroment)
def renderimages(self, page=1, postid=0): curvars = {} curvars['page']=page curvars['postid']=postid return LOAD('plugin_i2padmin', 'imageslist.load', vars=curvars, ajax=True) in a view: {{=current.myapp.mymodule.renderimages(page,postid)}} I know you are going to say use directly the load in a view, but sometimes the things get more complex than this example. 2011/5/17 Massimo Di Pierro <massimo.dipie...@gmail.com> > What do you want to do exactly with LOAD in modules? > > On May 17, 1:36 pm, Martín Mulone <mulone.mar...@gmail.com> wrote: > > Pierreth I'm testing this, and it all seem to work very well, nice > feature > > indeed!. I'm looking for memory leak but it's seem stable in my notebook. > I > > already rewrite powerpack, to support this, at first sigth it's double > the > > speed from the old way putting all in models (I have many models). So I'm > > waiting to be stable. Also I'm waiting an answer on how can I use the > LOAD() > > in modules. > > > > 2011/5/17 pierreth <pierre.thibau...@gmail.com> > > > > > It would be nice to have feedback to know if the new feature is > > > working well for you. Tell me if everything is OK or not. > > > > -- > > http://martin.tecnodoc.com.ar > -- http://martin.tecnodoc.com.ar