Results 1 to 4 of 4

Thread: Adding ice_staticId() to Python servant classes

  1. #1
    blair is offline Registered User
    Name: Blair Zajac
    Organization: Sony Pictures Imageworks
    Project: VnP
    Join Date
    Mar 2007
    Posts
    34

    Adding ice_staticId() to Python servant classes

    Just as Java classes have a static ice_staticId() method, it would be useful to have the Python class have similar ice_staticId() method. Here's the current methods on a Python servant class:

    Code:
        interface Clock
    {
        /*
         * Return the current time on the server as measured in the
         * number of microseconds since 00:00:00 January 1, 1970 UTC.
         *
         * @return a long containing the number of microseconds since
         *         00:00:00 January 1, 1970 UTC
         * @throws ::SpiIce::SpiIceException
         */
        idempotent long
        getCurrentTimeMicros()
            throws ::SpiIce::SpiIceException;
    };
    Code:
    >>> dir(Clock)
    ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__',
     '__hash__', '__init__', '__module__', '__new__', '__reduce__',
    '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__',
    '_op_getCurrentTimeMicros', '_op_ice_id', '_op_ice_ids', '_op_ice_isA',
    '_op_ice_ping', 'ice_id', 'ice_ids', 'ice_isA', 'ice_ping', 'ice_type']
    All the ice_* methods are instance methods. It would be nice to be able to say Clock.ice_staticId().

    Thanks,
    Blair

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Thanks, we will put this on our todo list for the next release.

  3. #3
    blair is offline Registered User
    Name: Blair Zajac
    Organization: Sony Pictures Imageworks
    Project: VnP
    Join Date
    Mar 2007
    Posts
    34
    That's great!

    Thank you,
    Blair

  4. #4
    blair is offline Registered User
    Name: Blair Zajac
    Organization: Sony Pictures Imageworks
    Project: VnP
    Join Date
    Mar 2007
    Posts
    34

    Thanks!

    I see this feature got into 3.3b!

    Thanks!
    Blair

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to do classes in Python
    By bobc in forum Help Center
    Replies: 4
    Last Post: 04-06-2009, 06:22 PM
  2. Python servant object cloning policy
    By spsoni in forum Help Center
    Replies: 2
    Last Post: 10-07-2008, 07:53 PM
  3. Python servant implementing multiple facets
    By tctimmeh in forum Help Center
    Replies: 1
    Last Post: 05-14-2008, 06:00 PM
  4. Core dump in Python servant locator
    By blair in forum Patches
    Replies: 2
    Last Post: 06-26-2007, 12:29 PM
  5. Transfering classes between Python and C++
    By gmueckl in forum Help Center
    Replies: 4
    Last Post: 12-17-2004, 10:45 AM

Posting Permissions

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