On 1 March 2012 16:15, Bruce Wade bruce.w...@gmail.com wrote:
Ummm where are you creating your object? In db.py? Or only in actions that
require it? If only in actions that require it you will also need to import
it and create an instance in the appadmin file.
I think my previous email(s) on
Ummm where are you creating your object? In db.py? Or only in actions that
require it? If only in actions that require it you will also need to import
it and create an instance in the appadmin file.
On Wed, Feb 29, 2012 at 10:56 PM, Johann Spies johann.sp...@gmail.comwrote:
On 1 March 2012
I have this in a model. It is included in many tables.
akb_signature = db.Table(db, 'akb_signature',
Field('created_on', 'datetime', default = request.now,
readable = False, writable = False),
Field('created_by', db.auth_user,
where the akb_signature_uuid is defined?
in a model or module
from gluon import current
current.akb_signature_uuid = akb_signature_uuid = something
then in appadmin
from gluon import current
does not works¿
http://zerp.ly/rochacbruno
Em 29/02/2012 06:26, Johann Spies johann.sp...@gmail.com
On 29 February 2012 12:05, Bruno Rocha rochacbr...@gmail.com wrote:
where the akb_signature_uuid is defined?
in a model or module
model
from gluon import current
current.akb_signature_uuid = akb_signature_uuid = something
In the model I have
from gluon import current
current.db = db
Is there any reason you have a extra comma in the __init__ method?
def __init__(self, db*,*):
On Wed, Feb 29, 2012 at 3:14 AM, Johann Spies johann.sp...@gmail.comwrote:
On 29 February 2012 12:05, Bruno Rocha rochacbr...@gmail.com wrote:
where the akb_signature_uuid is defined?
in a model or
On 29 February 2012 16:28, Bruce Wade bruce.w...@gmail.com wrote:
Is there any reason you have a extra comma in the __init__ method?
def __init__(self, db*,*):
Well spotted. No. It was a typo. I have removed it now, but that did not
change the behaviour of appadmin.
Regards
Johann
--
Have you tried setting:
def __init__(self, db):
self.signature = current.akb_signature_uuid
then using self.signature?
On Wed, Feb 29, 2012 at 10:21 PM, Johann Spies johann.sp...@gmail.comwrote:
On 29 February 2012 16:28, Bruce Wade bruce.w...@gmail.com wrote:
Is there any reason you
On 1 March 2012 08:26, Bruce Wade bruce.w...@gmail.com wrote:
Have you tried setting:
def __init__(self, db):
self.signature = current.akb_signature_uuid
then using self.signature?
Yes I had something similar and for some reason which I do not understand
the code complained:
9 matches
Mail list logo