aboutsummaryrefslogtreecommitdiff
path: root/src/plugin.py
blob: dd0f5cf02eecd6979a215eba6fd5ccaec78e4440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from Plugins.Plugin import PluginDescriptor
import CurlyTx
 
def main(session, **kwargs):
    reload(CurlyTx)
    try:
        session.open(CurlyTx.CurlyTx)
    except:
        import traceback
        traceback.print_exc()

def menuHook(menuid):
    if menuid == "mainmenu": 
        return [(_("CurlyTx"), main, "curlytx", 1)]
    return [ ]

 
def Plugins(**kwargs):
    return [
        PluginDescriptor(name = "CurlyTx",
                         description = "View remote text files",
                         where = [PluginDescriptor.WHERE_PLUGINMENU],
                         fnc = main),
        PluginDescriptor(name = "CurlyTx",
                         description = "View remote text files",
                         where=PluginDescriptor.WHERE_MENU,
                         fnc = menuHook),
        ]