source: fedd/Makefile/federation/access_project.py @ 88e7f2f

version-3.01version-3.02
Last change on this file since 88e7f2f was 88e7f2f, checked in by Ted Faber <faber@…>, 14 years ago

version bump

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