2010-05-20 19:28:51 |
Abel Deuring |
bug |
|
|
added bug |
2010-05-20 20:02:15 |
Curtis Hovey |
launchpad-registry: status |
New |
Triaged |
|
2010-05-20 20:02:21 |
Curtis Hovey |
launchpad-registry: importance |
Undecided |
Low |
|
2010-05-20 20:02:27 |
Curtis Hovey |
launchpad-registry: milestone |
|
series-future |
|
2010-12-03 06:18:50 |
Curtis Hovey |
tags |
|
tech-debt |
|
2011-06-08 20:45:41 |
Curtis Hovey |
tags |
lp-registry tech-debt |
disclosure lp-registry tech-debt |
|
2011-06-08 20:45:54 |
Curtis Hovey |
tags |
disclosure lp-registry tech-debt |
disclosure lp-registry tech-debt vocabulary |
|
2011-06-09 02:34:25 |
Curtis Hovey |
tags |
disclosure lp-registry tech-debt vocabulary |
disclosure lp-registry person-picker tech-debt vocabulary |
|
2011-06-13 18:08:04 |
Curtis Hovey |
description |
Running this script:
from zope.schema.vocabulary import getVocabularyRegistry
from lp.registry.interfaces.person import IPersonSet
vocabulary_registry = getVocabularyRegistry()
team = getUtility(IPersonSet).getByName('hwdb-team')
team_vocab = vocabulary_registry.get(team, 'ValidTeamMember')
print len(team_vocab)
print team.activemembers.count()
members_from_vocab = [term.value for term in team_vocab]
real_members = [person for person in members_from_vocab
if person.inTeam(team)]
unreal_members = [person for person in members_from_vocab
if not person.inTeam(team)]
print len(real_members)
print len(unreal_members)
in bin/iharness gives this output:
116
17
18
98
__iter__() returns every record of the table Person, and __len__() returns the number of these records. It seems that the class attribute _filter is missing. |
Running this script:
from zope.schema.vocabulary import getVocabularyRegistry
from lp.registry.interfaces.person import IPersonSet
vocabulary_registry = getVocabularyRegistry()
team = getUtility(IPersonSet).getByName('hwdb-team')
team_vocab = vocabulary_registry.get(team, 'ValidTeamMember')
print len(team_vocab)
members_from_vocab = [term.value for term in team_vocab]
unreal_members = [person for person in members_from_vocab
if not person.inTeam(team)]
print len(unreal_members)
in bin/iharness gives this output:
116
98
__iter__() returns every record of the table Person, and __len__() returns the number of these records. It seems that the class attribute _filter is missing. |
|
2011-06-13 18:12:33 |
Curtis Hovey |
description |
Running this script:
from zope.schema.vocabulary import getVocabularyRegistry
from lp.registry.interfaces.person import IPersonSet
vocabulary_registry = getVocabularyRegistry()
team = getUtility(IPersonSet).getByName('hwdb-team')
team_vocab = vocabulary_registry.get(team, 'ValidTeamMember')
print len(team_vocab)
members_from_vocab = [term.value for term in team_vocab]
unreal_members = [person for person in members_from_vocab
if not person.inTeam(team)]
print len(unreal_members)
in bin/iharness gives this output:
116
98
__iter__() returns every record of the table Person, and __len__() returns the number of these records. It seems that the class attribute _filter is missing. |
Running this script:
from zope.schema.vocabulary import getVocabularyRegistry
from lp.registry.interfaces.person import IPersonSet
vocabulary_registry = getVocabularyRegistry()
team = getUtility(IPersonSet).getByName('hwdb-team')
team_vocab = vocabulary_registry.get(team, 'ValidTeamMember')
print len(team_vocab)
members_from_vocab = [term.value for term in team_vocab]
unreal_members = [person for person in members_from_vocab
if not person.inTeam(team)]
print len(unreal_members)
in bin/iharness gives this output:
98
81
__iter__() returns every record of the table Person, and __len__() returns the number of these records. It seems that the class attribute _filter is missing. |
|
2011-06-13 18:13:28 |
Curtis Hovey |
launchpad: status |
Triaged |
Fix Released |
|
2012-07-12 19:52:45 |
Curtis Hovey |
launchpad: assignee |
|
Curtis Hovey (sinzui) |
|
2017-05-15 13:45:29 |
Curtis Hovey |
launchpad: assignee |
Curtis Hovey (sinzui) |
|
|