Re: [web2py] python Help with classes

2017-07-21 Thread Jim S
there is no *"isavailable"* Yes there is. Did you paste the wrong result? 'isavailable' is True in the second result set too. -Jim On Friday, July 21, 2017 at 9:46:26 AM UTC-5, Ramos wrote: > > There is no traceback. the record is returned like this if i remove > session=current.session

Re: [web2py] python Help with classes

2017-07-21 Thread António Ramos
There is no traceback. the record is returned like this if i remove session=current.session , 'titleenter': 'Review', 'title': 'Draft', 'titleaction': 'Draft', 'entities_extra': , 'entities': , 'rgb': '#00c0ef', 'rules': , 'details': 'Person', 'id': 8L,* 'isavailable': True*, 'icon': 'fa-user', '

Re: [web2py] python Help with classes

2017-07-21 Thread Anthony
What is the traceback? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-

Re: [web2py] python Help with classes

2017-07-21 Thread António Ramos
this is my real code in wf_validates.py from gluon import current class Validate(object): def status(self,table,field,row,db): wf=db.workflows(id=row[table]["workflow"])["workflow"] if wf in ["Ficheiros","Load","Pessoa"]: cb=getattr(eval("Ficheiros")(), "status"+"_"+"Draft")('xx','db') return cb

Re: [web2py] python Help with classes

2017-07-21 Thread António Ramos
yes i have from gluon import current in my wf_validates.py 2017-07-21 13:39 GMT+01:00 Anthony : > Do you have the following in your module: > > from gluon import current > > Anthony > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py

[web2py] python Help with classes

2017-07-21 Thread Anthony
Do you have the following in your module: from gluon import current Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message be

[web2py] python Help with classes

2017-07-20 Thread António Ramos
hello i tested this simple code outside web2py class a(): def a1(self): temp=getattr(eval("b")(), "b1")('testing result') return temp class b(): def b1(self,param): * s=somevar2.somesubvar1* return param print a().a1() if i remove *s=somevar2.somesubvar1*