Changeset 1643:256014a42248

Show
Ignore:
Timestamp:
06/03/08 16:41:50 (3 months ago)
Author:
klai@…
Branch:
default
Message:

Allow registration of fields like OwnerURL and OwnerIcon? in SLS

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • packaging/fedora_core_3/tycoon_aucd/etc/tycoon/tycoon_aucd.conf

    r1369 r1643  
    120120    } 
    121121} 
     122 
     123# Extra fields to register with the service location service 
     124SLSRegistrationFields = ( 
     125    # Information about the machine's owner 
     126    # These are only examples. Put the real ones in /etc/tycoon_aucd_local.conf 
     127    #("OwnerURL", "http://tycoon.hpl.hp.com"), 
     128    #("OwnerIcon", "http://tycoon.hpl.hp.com/~tycoon/dl/pictures/HPL-48x48.png"), 
     129) 
  • src/Tycoon/Auctioneer.py

    r1616 r1643  
    284284            data['number'] = (keys[1] - keys[0]) + 1 
    285285            c['resources'][k] = data 
     286        if hasattr(self.__options, "SLSRegistrationFields"): 
     287            for k, v in self.__options.SLSRegistrationFields: 
     288                c[k] = v 
    286289        return c 
    287290