Show
Ignore:
Timestamp:
08/17/08 13:42:21 (5 years ago)
Author:
nopper
Message:

Adding contexts for UMPA now static context permits loading/saving of xml files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/PacketManipulator/PM/Backend/__init__.py

    r3457 r3501  
    2525        self.ip = ip 
    2626 
    27 from Abstract import * 
    28  
    2927# Contexts 
    3028from Abstract.BaseContext.Static import StaticContext 
     
    3432from Abstract.BaseContext.Sniff import SniffContext 
    3533 
    36 from Scapy import * 
     34from PM.Manager.PreferenceManager import Prefs 
     35 
     36if Prefs()['backend.system'].value.lower() == 'umpa': 
     37    from UMPA import * 
     38else: 
     39    from Scapy import *