Skip to content

Instantly share code, notes, and snippets.

View scj7t4's full-sized avatar

Stephen Jackson scj7t4

  • Albuquerque, NM
View GitHub Profile
@scj7t4
scj7t4 / options.py
Created June 15, 2012 15:28 — forked from mnuck/options.py
Three ways to do the same thing (now Four!)
# option 1
if request.POST['modify'] == 'public':
assign_perm('modify', anon, rs)
else:
remove_perm('modify', anon, rs)
if request.POST['view'] == 'public':
assign_perm('view', anon, rs)
else:
remove_perm('view', anon, rs)
if request.POST['execute'] == 'public':
2012-May-01 08:41:44.007280 : Info(6): Receive a new marker different from current one.
2012-May-01 08:41:44.007686 : Info(6): Current version is e55a8948-6eeb-565c-85f1-1a4f7078d887 + 235
2012-May-01 08:41:44.008093 : Info(6): Incoming version is e55a8948-6eeb-565c-85f1-1a4f7078d887 + 236
2012-May-01 08:41:44.008669 : Info(6): Forward marker to 9e0f6504-8419-5e06-9283-9a47cb1255b0
2012-May-01 08:41:44.010963 : Info(6): Forward marker to e55a8948-6eeb-565c-85f1-1a4f7078d887
2012-May-01 08:41:44.140934 : Debug(7): virtual void freedm::SCAgent::HandleRead(freedm::broker::CMessage)
2012-May-01 08:41:44.141268 : Debug(7): Peer already exists. Do Nothing
2012-May-01 08:41:44.141601 : Info(6): Received message is a marker!
2012-May-01 08:41:44.142013 : Info(6): ===================================================
2012-May-01 08:41:44.142317 : Info(6): Receive a new marker different from current one.