@@ -772,28 +772,34 @@ def main():
772
772
# Display the email account and the time it was added
773
773
DisplayData (syncFile .GetUserInfo ())
774
774
Report ("" )
775
- # If a full name and a DOB exist
775
+ # If a full name and a DOB exist print them
776
776
if syncFile .GetFullInfo ():
777
777
Report ("Full Name" .center (35 , "=" )+ " " + "DOB (DDYYYY)" .center (20 , "=" )+ "\n " )
778
778
DisplayData (syncFile .GetFullInfo ())
779
779
Report ("" )
780
780
else :
781
+ # Print no full info only if verbosity level is set to see statuses
781
782
Report ("Full Name" .center (35 , "=" )+ " " + "DOB (DDYYYY)" .center (20 , "=" )+ "\n " , 1 )
782
783
Report ("No full info available" , 1 )
783
784
Report ("" , 1 )
785
+ # Print the computers attached to the account
784
786
Report ("Computer Name" .center (35 , "=" )+ " " + "Time added" .center (20 , "=" ))
787
+ # Print how many with verbosity of 1 (status)
785
788
Report ("{0} Computer(s) were synced" .format (len (syncFile .GetAttachedComputers ())).center (35 , "_" ), 1 )
786
789
Report ("" )
787
790
DisplayData (syncFile .GetAttachedComputers ())
788
791
Report ("" )
792
+ # If Recovery email is set, print it
789
793
if syncFile .GetRecoveryEmail ():
790
794
Report ("Recovery Email" .center (35 , "=" )+ "\n " )
791
795
DisplayData (syncFile .GetRecoveryEmail ())
792
796
Report ("" )
793
797
else :
798
+ # Print no recovery email, if verbosity level is 1
794
799
Report ("Recovery Email" .center (35 , "=" )+ "\n " , 1 )
795
800
Report ("No Recovery email found" , 1 )
796
801
Report ("" , 1 )
802
+ # Prints phone number if one was found
797
803
if syncFile .GetRecoveryPhone ():
798
804
Report ("Recovery Phone" .center (35 , "=" )+ "\n " )
799
805
DisplayData (syncFile .GetRecoveryPhone ())
@@ -802,8 +808,10 @@ def main():
802
808
Report ("Recovery Phone" .center (35 , "=" )+ "\n " , 1 )
803
809
Report ("No Recovery phone found" , 1 )
804
810
Report ("" , 1 )
811
+ # Prints extensions if any were found
805
812
if syncFile .GetExtensions ():
806
813
Report ("Extensions(s)" .center (35 , "=" ))
814
+ # Prints how many extensions were found with verbosity of status
807
815
Report ("{0} Extensions were Found" .format (len (syncFile .GetExtensions ())).center (35 , "_" ), 1 )
808
816
Report ("" )
809
817
DisplayData (syncFile .GetExtensions ())
@@ -812,6 +820,7 @@ def main():
812
820
Report ("Extensions(s)" .center (35 , "=" )+ "\n " , 1 )
813
821
Report ("No Extensions found" , 1 )
814
822
Report ("" , 1 )
823
+ # Prints if any sites were found
815
824
if syncFile .GetAllSites ():
816
825
Report ("All Sites" .center (35 , "=" ))
817
826
Report ("{0} Sites found" .format (len (syncFile .GetAllSites ())).center (35 , "_" ), 1 )
@@ -823,10 +832,14 @@ def main():
823
832
Report ("No sites were found" , 1 )
824
833
Report ("" , 1 )
825
834
835
+ # If an outfile was set, close it
826
836
if outFile :
827
837
outFile .close ()
838
+ # Sets outFile to false for future report functions to work
828
839
outFile = False
840
+ # Print status about file closing
829
841
Report ("The out file has been closed.\n " , 1 )
842
+ # Report that the program is finished
830
843
Report ("The Program has finished. Exiting now\n " , 3 )
831
844
832
845
0 commit comments