parameters: (self, session_id, user, account, start_time)
return_statement: return basename
docstring: Naming convention :
          {session_id},{username}@{userip},
          {account}@{devicename},
          YYYYMMDD-HHMMSS,{wabhostname},{uid}
  
          NB :  backslashes are replaced by pipes for IE compatibility
docstring_summary: Naming convention :
          {session_id},{username}@{userip},
          {account}@{devicename},
          YYYYMMDD-HHMMSS,{wabhostname},{uid}
docstring_tokens: Naming convention : { session_id } { username } @ { userip } { account } @ { devicename } YYYYMMDD - HHMMSS { wabhostname } { uid }
function: def generate_record_filebase(self, session_id, user, account, start_time):
          """
          Naming convention :
          {session_id},{username}@{userip},
          {account}@{devicename},
          YYYYMMDD-HHMMSS,{wabhostname},{uid}
  
          NB :  backslashes are replaced by pipes for IE compatibility
          """
          random.seed(self.pid)
          fname = (u"%(session_id)s,%(username)s@%(source_ip)s,"
                   u"%(account)s@%(device)s,"
                   u"%(timestamp)s,%(host)s,%(random)s")
  
          basename = fname % {
              'session_id': session_id,
              'username': user,
              'source_ip': self.shared.get(u'ip_client'),
              'account': account,
              'device': self.shared.get(u'target_device'),
              'timestamp': start_time.strftime("%Y%m%d-%H%M%S"),
              'host': gethostname(),
              'random': random.randint(1000, 9999)
          }
          basename = re.sub(r'[^-A-Za-z0-9_@,.]', "", basename)
          return basename
function_tokens: def generate_record_filebase ( self , session_id , user , account , start_time ) : random . seed ( self . pid ) fname = ( u"%(session_id)s,%(username)s@%(source_ip)s," u"%(account)s@%(device)s," u"%(timestamp)s,%(host)s,%(random)s" ) basename = fname % { 'session_id' : session_id , 'username' : user , 'source_ip' : self . shared . get ( u'ip_client' ) , 'account' : account , 'device' : self . shared . get ( u'target_device' ) , 'timestamp' : start_time . strftime ( "%Y%m%d-%H%M%S" ) , 'host' : gethostname ( ) , 'random' : random . randint ( 1000 , 9999 ) } basename = re . sub ( r'[^-A-Za-z0-9_@,.]' , "" , basename ) return basename