source: fedd/federation/access_project.py @ 6f02be5

axis_examplecompt_changesinfo-opsversion-3.01version-3.02
Last change on this file since 6f02be5 was 5d3f239, checked in by Ted Faber <faber@…>, 16 years ago

change package name to avoid conflicts with fedd on install

  • Property mode set to 100644
File size: 525 bytes
Line 
1#!/usr/local/bin/python
2
3class access_project:
4    """
5    A project description used to grant access to this testbed.
6
7    The description includes a name and a list of node types to which the
8    project will be granted access.
9    """
10    def __init__(self, name, nt):
11        self.name = name
12        self.node_types = list(nt)
13
14    def __repr__(self):
15        if len(self.node_types) > 0:
16            return "access_proj('%s', ['%s'])" % \
17                    (self.name, str("','").join(self.node_types))
18        else:
19            return "access_proj('%s', [])" % self.name
20
Note: See TracBrowser for help on using the repository browser.