Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #/home/cpcmonster/bin/mll218_bailAuthority.py
- # Released under a GPLv3 Licence by Clockwork PC 2012
- # www.clockworkpc.com.au
- # You are entitled to the following four freedoms:
- # Freedom 0: To run this program for any purpose
- # Freedom 1: To study how this program works and change it to make it do what you wish
- # Freedom 2: To redistribute copies so you can help your neighbour
- # Freedom 3: To distribute copies of your modified version to others
- import os
- print """
- Welcome to The Critical G's test for whether you have the authority to grant bail.
- Follow these prompts to determine whether you have the authority to grant me bail. """
- vestedAuthorities = ["Supreme Court Justice","County Court Judge","Magistrate","Bail Justice","Police Officer","Sheriff"]
- #Test 1: Is responsibility for granting bail vested in you?
- def authorityTest():
- running = True
- while running:
- authorityTest = input ("""Are you one of the following?
- 1. Supreme Court justice
- 2. County Court judge
- 3. Magistrate
- 4. Bail justice
- 5. Police officer
- 6. Sheriff
- 7. None of the above, I think
- 8. I'm in the wrong place, let me out of here.
- Select one of the options and press enter: """)
- if authorityTest == 1:
- running = False
- supremeCourtJusticeTest()
- elif authorityTest == 2:
- running = False
- CountyCourtTest()
- elif authorityTest == 3:
- running = False
- magistrateTest()
- elif authorityTest == 4:
- running = False
- bailJusticeTest()
- elif authorityTest == 5:
- running = False
- policeSheriffTest()
- elif authorityTest == 6:
- running = False
- policeSheriffTest()
- elif authorityTest == 7:
- print """
- You probably do not have authority to grant bail...
- but feel free to try again.
- """
- else:
- print "You do not have authority to grant bail"
- running = False
- os.system("xcowsay 'Stop toying with my hope, you bastard!'")
- exit()
- #Test 2A: If you are a Supreme Court Justice...
- def supremeCourtJusticeTest():
- print """
- In terms of the Bail Act 177 (Vic) subs 13(2), the Supreme Court of Victoria may grant bail for all offences. The Supreme Court also has common law authority to order that any person being held in custody while awaiting trial be released on bail [R v Broom [1955] VLR 208] or to vary the conditions set by another court or bail justice in granting bail. [R v Barrett [1959] VR 458] This authority is related to the Supreme Court's additional power under the Habeas Corpus Act 1679, under which any person being held in custody awaiting trial is entitled to apply to any Supreme Court justice for a writ of habeas corpus, which if successful, will result in bail being granted.
- """
- os.system("xcowsay 'Go ahead, " + vestedAuthorities[0] + ": bail me out!'")
- #Test 2B: If you are a County Court Judge:
- def CountyCourtTest():
- countyCourtTest = input("""
- Is the accused charged with treason or murder?
- 1. Yes, the accused is charged with treason, or murder, or both.
- 2. No, the accused is charged with neither treason nor murder.
- Select one of the options and press enter: """)
- if countyCourtTest == 1:
- print "In terms of the Bail Act 1977 (Vic) subs 13(2), a Victorian County Court may NOT grant bail to an accused charged with murder or treason."
- os.system("xcowsay 'I will have to go to a Supreme Court or a Supreme Court Justice if you are to have any luck, my friend.'")
- if countyCourtTest == 2:
- print "In terms of the Bail Act 1977 (Vic) subs 13(2), a Victorian County Court my grant bail to an accused charged with any offence excepting murder or treason."
- os.system("xcowsay 'Go ahead, " + vestedAuthorities[1] + ": bail me out!'")
- #Test 2C: If you are a Magistrate:
- def magistrateTest():
- magistrateTest_1 = input("""
- What is the accused charged with?
- 1. Treason
- 2. Murder
- 3. Treason and murder
- 4. Something else
- Select one of the options and press enter: """)
- if magistrateTest_1 == 1:
- print "You do not have authority to grant bail to an accused charged with treason."
- os.system("xcowsay 'I will have to go to a County Court Judge, a Supreme Court, or a Supreme Court Justice if you are to have any luck, my friend.'")
- if magistrateTest_1 == 2:
- magistrateTest_1a = input("""
- Are you the magistrate who committed the accused to stand trial?
- 1. Yes, I am the magistrate who committed the accused to stand trial.
- 2. No, I am not the magistrate who committed the accused to stand trial.
- Select one of the options and press enter: """)
- if magistrateTest_1a == 1:
- magistrateTest_1b = input("""
- Does this application for bail cite "exceptional circumstances" (e.g. an anticipated delay of 2 years before the matter will be heard in court) ?
- 1. Yes, I agree that there are exceptional circumstances.
- 2, No, I disagree that there are exceptional circumstances.
- Select one of the options and press enter: """)
- if magistrateTest_1b == 1:
- print "Yes, you have the authority to grant me bail, but you are not obligated to. (cf S. Garnett's judgement, 2/8/2010, Pasquale Barbaro -- Application for Bail)"
- os.system("xcowsay 'You CAN grant me bail, so please do...'")
- if magistrateTest_1b == 2:
- print """
- No, you do not have the authority to grant me bail.
- """
- os.system("xcowsay 'I will have to go to a County Court Judge, a Supreme Court, or a Supreme Court Justice if you are to have any luck, my friend.'")
- if magistrateTest_1b == 3:
- print "You do not have authority to grant bail to an accused charged with treason."
- os.system("xcowsay 'I will have to go to a County Court Judge, a Supreme Court, or a Supreme Court Justice if you are to have any luck, my friend.'")
- if magistrateTest_1b == 4:
- print "You have authority to grant bail to an accused charged with treason."
- os.system("xcowsay 'Go ahead, " + vestedAuthorities[2] + ": bail me out!'")
- if magistrateTest_1a == 2:
- print """
- No, you do not have the authority to grant me bail.
- """
- os.system("xcowsay 'I will have to go to a County Court Judge, a Supreme Court, or a Supreme Court Justice if you are to have any luck, my friend.'")
- #Test 2D: Bail Justice
- def bailJusticeTest():
- bailJusticeTest_1 = input("""
- Who appointed you?
- 1. The Victorian Attorney-General
- 2. My uncle neighbour's cousin
- """)
- if bailJusticeTest_1 == 1:
- print """
- Good. Proceed."""
- bailJusticeTest_2 = input("""
- Does any of the following apply to the accused?
- 1. The accused has been in custody for more than eight days.
- 2. The accused is charged with murder or treason.
- 3. The accused is a child charged with neither murder nor treason.
- 4. None of the above.
- """)
- if bailJusticeTest_2 == 1:
- print """
- You cannot remand this person in custody for any longer."""
- elif bailJusticeTest_2 == 2:
- print """
- You do not have authority to grant me bail."""
- os.system("xcowsay 'I will have to go to a County Court Judge, a Supreme Court, or a Supreme Court Justice if you are to have any luck, my friend.'")
- elif bailJusticeTest_2 == 3:
- print """
- You do have the authority to grant me bail. If you do not do so, I have to be brought before the court within the next working day."""
- else:
- print """
- You have the authority to grant me bail."""
- os.system("xcowsay 'Go ahead, " + vestedAuthorities[3] + ": bail me out!'")
- else:
- print "Bugger off."
- #Test 2E: Police officer or sheriff
- def policeSheriffTest():
- policeSheriffTest_1 = input("""
- Has the accused been arrested?
- 1. Yes, the accused is under arrest at the police station where I am stationed.
- 2. Yes, the accused is under arrest at another police station.
- 3. No, the accused is not under arrest.
- """)
- if policeSheriffTest_1 == 1:
- print """
- You may have the authority to grant me bail."""
- policeSheriffTest_1a = input("""
- Is any of the following true of the accused?
- 1. The accused is a child.
- 2. It is impracticable to bring the accused before a court within 24 hours he was taken into custody.
- 3. Is the accused charged with treason or murder?
- 4. None of the above.
- """)
- if policeSheriffTest_1a == 1|2|3:
- print """
- You do not have authority to grant me bail."""
- else:
- print """
- Yes, you have authority to grant me bail.
- """
- elif policeSheriffTest_1 == 2:
- print """
- You do not have the authority to grant me bail. This can only be determined by someone at that police station."""
- else:
- print """
- You do not have the authority to grant me bail. A necessary condition for your vestment with the authority to hear my bail application is that I be under arrest."""
- authorityTest()
- os.system("xcowsay 'Thanks for playing the bail game!'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement