Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
|
|
2 | 1 |
"""
|
3 |
=============
|
|
4 |
TAP plus
|
|
5 |
=============
|
|
6 |
|
|
7 |
@author: Javier Durtan
|
|
8 |
@contact: javier.duran@sciops.esa.int
|
|
9 |
|
|
10 |
European Space Astronomy Centre (ESAC)
|
|
11 |
European Space Agency (ESA)
|
|
12 |
|
|
13 |
Created on 28 sep. 2018
|
|
14 |
|
|
15 |
|
|
16 |
"""
|
|
17 |
|
|
18 |
|
|
19 | 1 |
class TapGroup(object): |
20 |
"""TAP group object
|
|
21 |
"""
|
|
22 |
|
|
23 | 1 |
def __init__(self, attrs): |
24 |
"""Constructor
|
|
25 |
"""
|
|
26 |
self.attributes = attrs |
|
27 |
self.id = attrs.getValue("id") |
|
28 |
self.owner = attrs.getValue("owner") |
|
29 |
self.users = [] |
|
30 |
self.title = None |
|
31 |
self.description = None |
|
32 |
|
|
33 | 1 |
def __str__(self): |
34 |
users = "" |
|
35 |
for u in self.users: |
|
36 |
users = users + "\n\t\t" + u.name + "(" + u.id + ")" |
|
37 |
return "Group: " + str(self.title) + \ |
|
38 |
"\n\tDescription: " + str(self.description) + \ |
|
39 |
"\n\tOwner: " + str(self.owner) + \ |
|
40 |
"\n\tUsers: " + users |
Read our documentation on viewing source code .