Hi
I am trying to use a python module on a N95 phone that has PyS60 v1.4.2
I am getting a error on this line
Code:
if type(rules) not in (NoneType, DictType):
NameError: global name 'NoneType' is not defined
At the top of the module file there is
Code:
from Types import *
that should include everything from the types.py file that is in the PyS60 distribution (I have checked).
I have tried several things to get this to work, for example to include the types like this
Code:
from types import NoneType
from types import DictType
(Then I got a error that this could not be imported)
Also to change the input like this
and have the if condition like
Code:
if type(rules) not in (types.NoneType, types.DictType):
but then I get
Code:
AttributeError: 'module' object has no attribute 'NoneType'
Anyone who knows what I am doing wrong or how this could be fixed.
kindest regards,
Magnus Agust Skulason