×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Nokia Developer Expert
    Join Date
    Dec 2007
    Posts
    63

    Talking Python for S60 1.4.2 released

    Python for S60 1.4.2 is now released. This is an officially signed release.

    You can download the release from the usual place in SourceForge:

    http://sourceforge.net/project/showf...roup_id=154155

    This release runs on S60 2nd edition (and all FPs) and 3rd edition.

    The release includes:
    - source code
    - device and emulator binaries for 2.0, 2.6, 2.8 and 3.0
    - emulator binaries for armv5 (RVCT)
    - documentation PDF.

    The release is officially Nokia signed. The capabilities for the PythonForS60 component are "ALL -TCB -DRM -AllFiles", so the DLLs are usable with almost all applications as is and thus there is no longer a need for a separate unsigned-freedevcert version of this package.

    The script shell package is signed with the user-grantable capability set (ReadUserData WriteUserData NetworkServices LocalServices UserEnvironment). If you need more capabilities, you need to obtain a devcert and sign the unsigned-freedevcert script shell package with it.

    Changes in 1.4.2 from 1.4.1:
    -----------------------------
    * logs module added
    * Localised vendor ID and unique vendor ID have been set to "Nokia" in the SIS packages for 3rd edition. As a result, you may need to uninstall the previous version before installing this one.

    Corrected defects:

    1844058: wrong time returned for inbox messages
    1842737: positioning.select_module() crashes python
    1838133: calendar find_instances fails for long searchstrings
    1821233: e32.ao_callgate(not_a_callable) fails to set an exce
    1817899: Code in appuifwmodule.cpp prevents use of SVG icons
    1817278: Incomplete Documentation for 1.4.1 Video APIs
    1815670: Missing 00000000.rss file in template dir
    1815190: import telephone causes an error
    1802502: e32db format_time broken in some localisations
    1793145: ViewSrv 9 panic while exiting previously backgrounde
    1759880: start_server does not report error for unknown file
    1757337: Incomplete documentation for Contact object
    1446285: 240:Adding Icon with out-of-range index to Listbox

    Note: The UIDs for officially signed 3rd edition packages (1.4.x) are different from the prereleases (1.3.x). The 1.4.x releases have UIDs assigned from the protected range, while the 1.3.x releases had UIDs from the unprotected range. If your software depends on the UIDs it may need changes. Especially note that it may not be possible to directly upgrade an application package that embeds a 1.3.x runtime package into a new version that embeds a 1.4.x runtime package without removing the old runtime package first.

    The UID changes relevant to application programmers are as follows:

    - PythonForS60 package: old 0xF0201510 new 0x2000B1A0
    - PythonScriptShell package: old 0xF0201515 new 0x2000B1A5

    All users are recommended to upgrade.

    This release is the same as 1.3.11 in that ***you need to install both the PythonforS60 _and_ the PythonScriptShell package to get the same functionality as before on 2nd edition. ***

    Bug reports, patches and feature requests are welcomed in the usual places:

    Bugs: http://sourceforge.net/tracker/?grou...55&atid=790646
    Patches: http://sourceforge.net/tracker/?grou...55&atid=790648
    Feature requests:http://sourceforge.net/tracker/?grou...55&atid=790649

    Yes, really - if you find a clear bug file it in SourceForge. That's what we track regularly, not every thread in the discussion board. If you post a bug report only in the DiBo, we might miss it.

    When filing bugs, include the device you used, its firmware version (you can see this by entering *#0000# in the idle screen), the PyS60 version and a minimal test case (if applicable).

    Happy hacking!

  2. #2
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.2 released

    Hello tvijayan

    Nice to meet you Welcome to Python world

    I saw your name recently on sourceforge and now it's you who announce the very awaiting PyS60 1.4.2 !!!

    logs module is a great addition !


    logs Module to access the phone logs.
    The logs offers generic access to the phone's log. Via logs's API it is possible to access, for example,
    the list of received calls or the list of sms received. At this stage, it is only possible to read logs.


    THANKS !!!!

    PS: Replace 1.4.1 by this thread to sticky please ...

    BR
    Cyke64
    Last edited by cyke64; 2008-01-21 at 10:29.
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  3. #3
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Python for S60 1.4.2 released

    Hi,

    1st I saw the log module announcement by cyke, and he mentioned Python for S60 1.4.2 and I thought What??

    Then I saw this one! Wow! that great!
    I am going to install it now on 2 of my devices and am very exited to get the Logs Module!

    Many applications which weren't possible with past python for S60 will now be possible and can be implemented in Python for S60..

    Also all the regular python users need to pay attention to this

    Bug reports, patches and feature requests are welcomed in the usual places:

    Bugs: http://sourceforge.net/tracker/?grou...55&atid=790646
    Patches: http://sourceforge.net/tracker/?grou...55&atid=790648
    Feature requests:http://sourceforge.net/tracker/?grou...55&atid=790649

    Yes, really - if you find a clear bug file it in SourceForge. That's what we track regularly, not every thread in the discussion board. If you post a bug report only in the DiBo, we might miss it.
    This will help in making python better and efficient.

    Really exicited for 1.4.2! Thanks! Python seems to be progressing in flights!
    Thanks tvijayan and Cyke for announcing!
    It will be soon sticky soon!

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  4. #4
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for S60 1.4.2 released

    Cyke64, you're just too fast for me Stickied.

    tvijayan doesn't have admin rights to the discussion board yet, that's why I had to sticky this.

  5. #5
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.2 released

    Hello ,

    You find very interesting examples for log module in the PyS60 1.4.2 source code but not in the binary release

    So I post here the 3 examples found !


    Code:
    #
    # alllogs.py
    #
    # Copyright (c) 2006 - 2007 Nokia Corporation
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    
    import logs
    print "getting logs. be patient..."
    ev = logs.raw_log_data()
    print ev
    print len(ev)
    print "done ..."
    Code:
    #
    # allcalls.py
    #
    # Copyright (c) 2006 - 2007 Nokia Corporation
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    
    import logs
    import contacts
    #
    print "getting CALL logs. be patient..."
    evlist = logs.calls(mode='in')
    evlist.extend(logs.calls(mode='out'))
    #
    db = contacts.open()
    #
    for d in evlist:
        if len(d) > 0:
            print '%s %s' %(d['description'], d['direction'])
            if len(d['name']) < 1:
                if d['contact'] == -1:
                    print '%s \'unknown\''%(d['number'])
                else:
                    id=d['contact']
                    contact=db[id]
                    fnames=contact.find('first_name')
                    lname=contact.find('last_name')
                    if len(fnames)>0 and len(lname)>0:
                        full_name = lname[0].value +' '+fnames[0].value
                        print '%s %s'%(d['number'],full_name)
                    else:
                        print '%s N/A'%d['number']
            else:
                print '%s %s'%(d['number'],d['name'])
    #
    print "done ..."
    Code:
    #
    # allsms.py
    #
    # Copyright (c) 2006 - 2007 Nokia Corporation
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    
    import logs
    import contacts
    #
    print "getting SMS logs. be patient..."
    evlist = logs.sms(mode='in')
    evlist.extend(logs.sms(mode='out'))
    
    #print evlist
    
    #
    db = contacts.open()
    #
    for d in evlist:
        if len(d) > 0:
            print '%s %s' %(d['description'], d['direction'])
            
            if len(d['name']) < 1:
                persons=db.find(d['number'])
                if len(persons) > 0:
                    fnames = persons[0].find('first_name')
                    lname  = persons[0].find('last_name')
                    if len(fnames)>0 and len(lname)>0:
                        full_name = lname[0].value +' '+fnames[0].value
                        print '%s %s'%(d['number'],full_name)
                    else:
                        print '%s N/A'%d['number']
                else:
                    print '%s N/A'%d['number']
            else:
                print '%s %s'%(d['number'],d['name'])
    #
    
    print "done ..."

    Especially for you Croozeus

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  6. #6
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Python for S60 1.4.2 released

    Quote Originally Posted by cyke64 View Post
    Especially for you Croozeus

    BR
    Cyke64
    You are a mind reader man! I was going to ask this!
    Thanks
    Let me try it!

    BR
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  7. #7
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.2 released

    Quote Originally Posted by croozeus View Post
    You are a mind reader man! I was going to ask this!
    I know that

    I have already updated wiki page for announcing PyS60 1.4.2 release (both wiki of course

    @jplauril
    I'm faster than you because I'm a Forum Nokia Champion

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  8. #8
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Python for S60 1.4.2 released

    Hi Cyke,

    I tried all the above examples.
    In 1st alllogs.py I get the log entries with the DATA calls too! Thats fine.But one thing that amazes me is len(ev) is printed as 2


    THe 2nd one shows all the call rcords..1st I didnt have any so it printed only done.After makeing some records for calls, I got that printed too.
    The 3rd one shows all the SMS logs. That works Fine!

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  9. #9
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.2 released

    Hello

    I noted that some functions in telephone module have disappeared (at least in source code)

    telephone.incoming_call()

    telephone.answer()

    telephone.call_state(callable)

    What is the reason of this ?

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  10. #10
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.2 released

    Sorry
    Code has not been erased but in telephone.py has been made inactived

    Why ?


    BR
    Cyke64
    Last edited by cyke64; 2008-01-22 at 07:17.
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  11. #11
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: Python for S60 1.4.2 released

    Quote Originally Posted by cyke64 View Post
    Sorry
    Code has not been erased but in telephone.py has been made inactived
    Works fine (as expected?) for me:
    Code:
    import telephone
    def x(x):
      print x
    telephone.call_state(x)
    >>> (3,u'+358mynumberhere')
    (8,u'')
    (1,u'')

  12. #12
    Registered User
    Join Date
    Jan 2008
    Posts
    7

    Re: Python for S60 1.4.2 released

    Great news. Thanks to all.

    Is there any solution to the limitation of number of menu/submenu items (max of 30)?

    Regards,
    FatMate

  13. #13
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.2 released

    Quote Originally Posted by fatmate View Post
    Great news. Thanks to all.

    Is there any solution to the limitation of number of menu/submenu items (max of 30)?

    Regards,
    FatMate
    Yes ! Change in the source code the limit and build !
    It's a arbitrary choice ...

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  14. #14
    Registered User
    Join Date
    Jan 2008
    Posts
    7

    Re: Python for S60 1.4.2 released

    Yep. Seems to be in "pys60-1.4.2_src\src\appui\Python_appui.h".

    ### KMaxPythonMenuExtensions 30 ###


    Thanks a lot, Cyke64.


    Regards,
    FatMate

  15. #15
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for S60 1.4.2 released

    Yes, it's an arbitrary limit. The reason it's not unlimited is that an entry in the resource file app/Python.rss is needed for every submenu entry -- or at least that's the only way we could make it work. You'll need to add more entries there if you want to add more submenu entries.

    Though, is a menu with over 30 entries really usable? What's the use case?

Similar Threads

  1. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Symbian
    Replies: 5
    Last Post: 2009-07-14, 17:00
  2. Python for S60 1.4.0 released
    By jplauril in forum Symbian
    Replies: 43
    Last Post: 2009-05-24, 09:22
  3. Python for S60 1.4.1 released
    By jplauril in forum Symbian
    Replies: 30
    Last Post: 2009-02-07, 14:09
  4. Python for S60 1.3.22 released
    By jplauril in forum Symbian
    Replies: 14
    Last Post: 2007-06-28, 03:53
  5. Python for S60 1.3.14 released
    By jplauril in forum Symbian
    Replies: 11
    Last Post: 2006-11-27, 17:43

Posting Permissions

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