Ignore:
Timestamp:
Nov 21, 2011 5:33:41 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
f769cb3
Parents:
80b1e82
Message:

Turn (most) of another free floating dict into a class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_info.py

    r80b1e82 r9294673  
    1414        self.uri = uri
    1515        self.proof = proof
     16        self.attrs = { }
     17
     18    def set_attribute(self, a, v):
     19        a = a.lower()
     20        if a not in self.attrs: self.attrs[a] = v
     21
     22    def get_attribute(self, a, default=None):
     23        a = a.lower()
     24        return self.attrs.get(a, default)
    1625
    1726class experiment_info:
Note: See TracChangeset for help on using the changeset viewer.