Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-29-2007
blair blair is offline
Registered User
 
Name: Blair Zajac
Organization: Sony Pictures Imageworks
Project: VnP
 
Join Date: Mar 2007
Posts: 24
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
Reply With Quote
  #2 (permalink)  
Old 11-29-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,762
Thanks, we will put this on our todo list for the next release.
Reply With Quote
  #3 (permalink)  
Old 11-29-2007
blair blair is offline
Registered User
 
Name: Blair Zajac
Organization: Sony Pictures Imageworks
Project: VnP
 
Join Date: Mar 2007
Posts: 24
That's great!

Thank you,
Blair
Reply With Quote
  #4 (permalink)  
Old 05-06-2008
blair blair is offline
Registered User
 
Name: Blair Zajac
Organization: Sony Pictures Imageworks
Project: VnP
 
Join Date: Mar 2007
Posts: 24
Thanks!

I see this feature got into 3.3b!

Thanks!
Blair
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Core dump in Python servant locator blair Patches 2 06-26-2007 12:29 PM
Object* add(Object servant, Identity id),can the servant be static object? russule Help Center 2 06-23-2007 07:19 AM
Unable to implement servant location in Ice for Python cmellon Help Center 1 01-04-2007 03:20 PM
Adding Invocation Context crackajaxx Comments 2 05-26-2005 12:15 AM
Transfering classes between Python and C++ gmueckl Help Center 4 12-17-2004 10:45 AM


All times are GMT -4. The time now is 07:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.