source: fedd/fedd/access_project.py @ ec4fb42

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

Clean up some names that start with fedd_ that are ugly with the new package
structure. A couple other bugs cleaned up, too.

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