×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    MWS and gsm_location()

    Hi Guys

    When I make a test script directly in Python, fetching the cellId with gsm_location(), it works perfectly with the following code sample :

    import location
    gsmInfo = location.gsm_location()
    print "" + gsmInfo

    But when I use it in combination with a Mobile Web Server in the request handler method, the method location.gsm_location() returns None. Why is that?

    def handler(req):
    from mod_python import apache
    import positioning, e32, location

    gsmInfo = location.gsm_location()
    cellId = unicode(gsmInfo [2])

    I'm using the following :
    PythonScript_shell 1_4_1 signed with my own dev cert
    PythonForS60_1_4_1
    Mobile Web Server beta 11
    Nokia N95

    Thanks in advance,

    Alju

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: MWS and gsm_location()

    Quote Originally Posted by alju View Post
    ...
    But when I use it in combination with a Mobile Web Server in the request handler method, the method location.gsm_location() returns None. Why is that?
    That's quite peculiar. The Python API returns None, if the calling application does not have the Location capability. However, the Apache included with MWS does have that capability, so the call should succeed.

    Johan

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    9

    Re: MWS and gsm_location()

    Dude

    have you find any solution? I have the same problem
    thnx if you share it

    Ali

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •