source: fedd/fedd_access_project.py @ 19cc408

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since 19cc408 was 19cc408, checked in by Ted Faber <faber@…>, 16 years ago

refactoring

  • 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.