Changeset - aba70cc961f1
[Not reviewed]
0 1 0
Christopher Neugebauer - 6 years ago 2017-11-18 00:23:54
chrisjrn@gmail.com
more schedule monkey patching
1 file changed with 12 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/monkey_patch.py
Show inline comments
...
 
@@ -54,2 +54,4 @@ def patch_conference_schedule():
 
                update_keynote(request, slot_data)
 
            elif slot.kind.label.lower() == "housekeeping":
 
                update_keynote(request, slot_data)
 
            else:
...
 
@@ -82,2 +84,3 @@ def patch_conference_schedule():
 

	
 
        slot_data["name"] = "Keynote"
 
        slot_data["authors"] = [author_name]
...
 
@@ -86,4 +89,4 @@ def patch_conference_schedule():
 
        ] if request.user.is_staff else ["redacted"]
 
        slot_data["abstract"] = "Keynote presentation from North Bay Python 2017"
 
        slot_data["description"] = "Keynote presentation from North Bay Python 2017"
 
        slot_data["abstract"] = "Keynote presentation from North Bay Python 2017 by " + author_name
 
        slot_data["description"] = "Keynote presentation from North Bay Python 2017 by " + author_name
 
        slot_data["conf_url"] = "https://2017.northbaypython.org"
...
 
@@ -95,2 +98,9 @@ def patch_conference_schedule():
 

	
 
    def update_housekeeping(request, slot_data):
 
        slot_data["authors"] = ["North Bay Python"]
 
        slot_data["contact"] = [
 
            "spam@northbaypython.org"
 
        ] if request.user.is_staff else ["redacted"]
 

	
 

	
 
    sv._schedule_json = schedule_json
0 comments (0 inline, 0 general)