original_docstring: 
          Synchronizes new editor/showon accounts from GWS to Trumba
          
docstring: Synchronizes new editor/showon accounts from GWS to Trumba
docstring_tokens: Synchronizes new editor / showon accounts from GWS to Trumba
code: def sync(self):
          """
          Synchronizes new editor/showon accounts from GWS to Trumba
          """
          self.sync_accounts()
          logger.info("{0:d} new accounts added".format(
                  self.new_acounts))
  
          for choice in TrumbaCalendar.CAMPUS_CHOICES:
              campus_code = choice[0]
              for u_group in self.gro_m.get_campus_editor_groups(campus_code):
                  if len(u_group.members) > 0:
                      self.sync_editor_group_perm(u_group)
  
              for u_group in self.gro_m.get_campus_showon_groups(campus_code):
                  if len(u_group.members) > 0:
                      self.sync_showon_group_perm(u_group)
  
          logger.info("{0:d} editor permissions added".format(
                  self.new_editor_perm_counts))
          logger.info("{0:d} showon permissions added".format(
                  self.new_showon_perm_counts))
          if self.has_err():
              logger.error(self.get_error_report())
code_tokens: def sync ( self ) : self . sync_accounts ( ) logger . info ( "{0:d} new accounts added" . format ( self . new_acounts ) ) for choice in TrumbaCalendar . CAMPUS_CHOICES : campus_code = choice [ 0 ] for u_group in self . gro_m . get_campus_editor_groups ( campus_code ) : if len ( u_group . members ) > 0 : self . sync_editor_group_perm ( u_group ) for u_group in self . gro_m . get_campus_showon_groups ( campus_code ) : if len ( u_group . members ) > 0 : self . sync_showon_group_perm ( u_group ) logger . info ( "{0:d} editor permissions added" . format ( self . new_editor_perm_counts ) ) logger . info ( "{0:d} showon permissions added" . format ( self . new_showon_perm_counts ) ) if self . has_err ( ) : logger . error ( self . get_error_report ( ) )
short_docstring: Synchronizes new editor/showon accounts from GWS to Trumba
short_docstring_tokens: Synchronizes new editor / showon accounts from GWS to Trumba
comment: """
          Synchronizes new editor/showon accounts from GWS to Trumba
          """