Advertisement
clockworkpc

Bail Authority Test

Mar 20th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.78 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/cpcmonster/bin/mll218_bailAuthority.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2012
  5. # www.clockworkpc.com.au
  6.  
  7. # You are entitled to the following four freedoms:
  8. # Freedom 0: To run this program for any purpose
  9. # Freedom 1: To study how this program works and change it to make it do what you wish
  10. # Freedom 2: To redistribute copies so you can help your neighbour
  11. # Freedom 3: To distribute copies of your modified version to others
  12.  
  13. import os
  14.  
  15. print """
  16.  
  17. Welcome to The Critical G's test for whether you have the authority to grant bail.
  18. Follow these prompts to determine whether you have the authority to grant me bail. """
  19.  
  20. vestedAuthorities = ["Supreme Court Justice","County Court Judge","Magistrate","Bail Justice","Police Officer","Sheriff"]
  21.  
  22. #Test 1: Is responsibility for granting bail vested in you?
  23.  
  24. def authorityTest():
  25.  
  26.     running = True
  27.     while running:
  28.         authorityTest = input ("""Are you one of the following?
  29.         1. Supreme Court justice
  30.         2. County Court judge
  31.         3. Magistrate
  32.         4. Bail justice
  33.         5. Police officer
  34.         6. Sheriff
  35.         7. None of the above, I think
  36.         8. I'm in the wrong place, let me out of here.
  37.  
  38.         Select one of the options and press enter: """)
  39.  
  40.         if authorityTest == 1:
  41.             running = False
  42.             supremeCourtJusticeTest()
  43.         elif authorityTest == 2:
  44.             running = False
  45.             CountyCourtTest()
  46.         elif authorityTest == 3:
  47.             running = False
  48.             magistrateTest()
  49.         elif authorityTest == 4:
  50.             running = False
  51.             bailJusticeTest()
  52.         elif authorityTest == 5:
  53.             running = False
  54.             policeSheriffTest()
  55.         elif authorityTest == 6:
  56.             running = False
  57.             policeSheriffTest()
  58.         elif authorityTest == 7:
  59.             print """
  60.  
  61.  
  62.     You probably do not have authority to grant bail...
  63.  
  64.     but feel free to try again.
  65.  
  66.     """
  67.         else:
  68.             print "You do not have authority to grant bail"
  69.             running = False
  70.             os.system("xcowsay 'Stop toying with my hope, you bastard!'")
  71.             exit()
  72.  
  73. #Test 2A: If you are a Supreme Court Justice...
  74.  
  75. def supremeCourtJusticeTest():
  76.     print """
  77.  
  78. 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.
  79.     """
  80.     os.system("xcowsay 'Go ahead, " + vestedAuthorities[0] + ": bail me out!'")
  81.  
  82. #Test 2B: If you are a County Court Judge:
  83.  
  84. def CountyCourtTest():
  85.     countyCourtTest = input("""
  86.    
  87.     Is the accused charged with treason or murder?
  88.  
  89.     1. Yes, the accused is charged with treason, or murder, or both.
  90.     2. No, the accused is charged with neither treason nor murder.
  91.    
  92.     Select one of the options and press enter: """)
  93.  
  94.     if countyCourtTest == 1:
  95.         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."
  96.         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.'")
  97.     if countyCourtTest == 2:
  98.         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."
  99.         os.system("xcowsay 'Go ahead, " + vestedAuthorities[1] + ": bail me out!'")
  100.  
  101. #Test 2C: If you are a Magistrate:
  102.  
  103. def magistrateTest():
  104.     magistrateTest_1 = input("""
  105.  
  106.         What is the accused charged with?
  107.  
  108.         1. Treason
  109.         2. Murder
  110.         3. Treason and murder
  111.         4. Something else
  112.    
  113.         Select one of the options and press enter: """)
  114.    
  115.     if magistrateTest_1 == 1:
  116.         print "You do not have authority to grant bail to an accused charged with treason."
  117.         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.'")
  118.     if magistrateTest_1 == 2:
  119.         magistrateTest_1a = input("""
  120.    
  121.         Are you the magistrate who committed the accused to stand trial?
  122.    
  123.         1. Yes, I am the magistrate who committed the accused to stand trial.
  124.         2. No, I am not the magistrate who committed the accused to stand trial.
  125.    
  126.         Select one of the options and press enter: """)
  127.    
  128.         if magistrateTest_1a == 1:
  129.             magistrateTest_1b = input("""
  130.        
  131.             Does this application for bail cite "exceptional circumstances" (e.g. an anticipated delay of 2 years before the matter will be heard in court) ?
  132.        
  133.             1. Yes, I agree that there are exceptional circumstances.
  134.             2, No, I disagree that there are exceptional circumstances.
  135.        
  136.             Select one of the options and press enter: """)
  137.        
  138.             if magistrateTest_1b == 1:
  139.                 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)"
  140.                 os.system("xcowsay 'You CAN grant me bail, so please do...'")
  141.             if magistrateTest_1b == 2:
  142.                 print """
  143.  
  144. No, you do not have the authority to grant me bail.
  145.  
  146. """
  147.                 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.'")
  148.             if magistrateTest_1b == 3:
  149.                 print "You do not have authority to grant bail to an accused charged with treason."
  150.                 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.'")
  151.             if magistrateTest_1b == 4:
  152.                 print "You have authority to grant bail to an accused charged with treason."
  153.                 os.system("xcowsay 'Go ahead, " + vestedAuthorities[2] + ": bail me out!'")
  154.  
  155.         if magistrateTest_1a == 2:
  156.             print """
  157.  
  158. No, you do not have the authority to grant me bail.
  159.  
  160. """
  161.             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.'")
  162.  
  163. #Test 2D: Bail Justice
  164.  
  165. def bailJusticeTest():
  166.     bailJusticeTest_1 = input("""
  167.  
  168.     Who appointed you?
  169.  
  170.     1. The Victorian Attorney-General
  171.     2. My uncle neighbour's cousin
  172.  
  173.     """)
  174.  
  175.     if bailJusticeTest_1 == 1:
  176.         print """
  177.        
  178.         Good.  Proceed."""
  179.        
  180.         bailJusticeTest_2 = input("""
  181.  
  182.     Does any of the following apply to the accused?
  183.  
  184.     1. The accused has been in custody for more than eight days.
  185.     2. The accused is charged with murder or treason.
  186.     3. The accused is a child charged with neither murder nor treason.
  187.     4. None of the above.
  188.  
  189.     """)
  190.  
  191.         if bailJusticeTest_2 == 1:
  192.             print """
  193.    
  194.             You cannot remand this person in custody for any longer."""
  195.    
  196.         elif bailJusticeTest_2 == 2:
  197.             print """
  198.    
  199.             You do not have authority to grant me bail."""
  200.             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.'")
  201.  
  202.         elif bailJusticeTest_2 == 3:
  203.             print """
  204.    
  205.             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."""
  206.  
  207.         else:
  208.             print """
  209.    
  210.             You have the authority to grant me bail."""
  211.             os.system("xcowsay 'Go ahead, " + vestedAuthorities[3] + ": bail me out!'")
  212.     else:
  213.         print "Bugger off."
  214.        
  215. #Test 2E: Police officer or sheriff
  216.  
  217. def policeSheriffTest():
  218.     policeSheriffTest_1 = input("""
  219.  
  220.     Has the accused been arrested?
  221.  
  222.     1. Yes, the accused is under arrest at the police station where I am stationed.
  223.     2. Yes, the accused is under arrest at another police station.
  224.     3. No, the accused is not under arrest.
  225.  
  226.     """)
  227.  
  228.     if policeSheriffTest_1 == 1:
  229.         print """
  230.    
  231.         You may have the authority to grant me bail."""
  232.         policeSheriffTest_1a = input("""
  233.  
  234.     Is any of the following true of the accused?
  235.  
  236.     1. The accused is a child.
  237.     2. It is impracticable to bring the accused before a court within 24 hours he was taken into custody.
  238.     3. Is the accused charged with treason or murder?
  239.     4. None of the above.
  240.  
  241.     """)
  242.  
  243.         if policeSheriffTest_1a == 1|2|3:
  244.             print """
  245.    
  246.             You do not have authority to grant me bail."""
  247.         else:
  248.             print """
  249.    
  250.             Yes, you have authority to grant me bail.
  251.    
  252.             """
  253.        
  254.     elif policeSheriffTest_1 == 2:
  255.         print """
  256.    
  257.         You do not have the authority to grant me bail.  This can only be determined by someone at that police station."""
  258.     else:
  259.         print """
  260.    
  261.         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."""
  262.    
  263.  
  264. authorityTest()
  265.  
  266. os.system("xcowsay 'Thanks for playing the bail game!'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement