Thanks. Yes, I'll release the plugin as soon as I'm happy with how it
works. I'll announce it on the list here when the time comes (hopefully in
the next couple of weeks).
Nice! Are you planning to release the plugin?
Let me know if you need any help testing it. :)
On Saturday, November 26, 2011, monotasker wrote:
> I'm adapting the select_or_add widget from web2py slices so that it can be
> packaged as a plugin. In that process I'm moving the business logic from
That did it! Thanks Martin. I would never have figured that out on my own.
Is it documented anywhere in the book?
try something like this
from gluon.compileapp import LoadFactory
def renderimages(self, page=1, postid=0):
""" Render Images """
curvars = {}
curvars['page']=page
curvars['postid']=postid
environment = {}
environment['request'] = current.request
Hmmm ... Those don't seem to be working.
from gluon import LOAD
This doesn't seem to import anything. PyDev tells me that there's an
"unresolved import" Still get the 'NoneType not callable' error.
from gluon import current
LOAD = current.LOAD
I get AttributeError: 'thread._local' object has n
You can do
from gluon import LOAD
or
in model
from gluon import current
current.LOAD = LOAD
in module
from gluon import current
LOAD = current.LOAD
On Fri, Nov 25, 2011 at 5:15 PM, monotasker wrote:
> I'm adapting the select_or_add widget from web2py slices so that it can be
> packaged as a
I'm adapting the select_or_add widget from web2py slices so that it can be
packaged as a plugin. In that process I'm moving the business logic from a
model file into a custom module. But this line is throwing an error that I
can't fix:
form_loader_div = DIV(LOAD(c = self.controller, f = self.fu
7 matches
Mail list logo