but without session, it works. but i need for example broker in every
controllerfunction (in each controller)
On 30 Jun., 16:38, pk wrote:
> does session work with:
>
> session.broker =
> ALBroker("pythonBroker",BrokerIP,BrokerPORT,RoboIP,RoboPORT)
>
> than here i get an error
>
> On 30 Jun., 16:
does session work with:
session.broker =
ALBroker("pythonBroker",BrokerIP,BrokerPORT,RoboIP,RoboPORT)
than here i get an error
On 30 Jun., 16:19, pk wrote:
> thanks massimo:
> i still get errors here my model:
>
> import time
> from naoqi import ALBroker
> from naoqi import ALProxy
>
> broke
thanks massimo:
i still get errors here my model:
import time
from naoqi import ALBroker
from naoqi import ALProxy
broker = session.broker
behaviorProxy = session.behaviorProxy
ttsProxy = session.ttsProxy
motionProxy = session.motionProxy
testvariable = session.testvariable
def connectRobo(roboi
If the statement "test=session.test" is within a controller and
outside all defs, then it is global to that controller, but that's
all. It's not accessible to other controllers. It probably is visible
to the controller's views -- you'll have to check to be sure. However,
session.test is accessible
ok thanks, and what can i do now with the variable test in the first
line.
can i use this now in every function in each controller?
On 30 Jun., 15:12, mdipierro wrote:
> I think you want a session variable, not a global variable
>
> test=session.test
>
> def changingtest():
> session.test = 5
I think you want a session variable, not a global variable
test=session.test
def changingtest():
session.test = 5
return None
On 30 Giu, 07:42, pk wrote:
> hi together,
>
> i need help to solve this problem: i have a global variable in the
> model like:
>
> test = None
>
> def changingt
6 matches
Mail list logo