- Add model functions for working with prototypes

- Add API calls for working with prototypes
- Get UI for prototypes working (minus add)
This commit is contained in:
Joseph Schorr 2014-01-21 14:18:20 -05:00
parent 330051f7d9
commit e17c3590a7
9 changed files with 329 additions and 1 deletions

View file

@ -153,6 +153,10 @@ def initialize_database():
LogEntryKind.create(name='org_remove_team_member')
LogEntryKind.create(name='org_set_team_description')
LogEntryKind.create(name='org_set_team_role')
LogEntryKind.create(name='org_create_prototype_permission')
LogEntryKind.create(name='org_modify_prototype_permission')
LogEntryKind.create(name='org_delete_prototype_permission')
def wipe_database():
@ -261,6 +265,10 @@ def populate_database():
build.status_url = 'http://localhost:5000/test/build/status'
build.save()
model.add_prototype_permission(org, 'read', activating_user=new_user_1, delegate_user=new_user_2)
model.add_prototype_permission(org, 'read', activating_user=new_user_1, delegate_team=reader_team)
model.add_prototype_permission(org, 'write', activating_user=new_user_2, delegate_user=new_user_1)
today = datetime.today()
week_ago = today - timedelta(6)
six_ago = today - timedelta(5)