4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
2 results tagged redmine x
  • Créer un module xchat (python)

    Objectif : tapper /obug <number> dans xchat m'ouvre un onglet dans ff vers l'url du bug

    1) activer le module python dans les options
    2) créer un fichier .py dans /home/arnaud/.xchat2/
    3)
    module_name = "openbuginredmine"
    module_version
    = "1.0"
    __module_description__ = "module to open bug in redmine"

    import os
    import xchat

    def obug(word, word_eol, userdata):
    if len(word) < 2:
    print "Second arg must be the bug number!"
    else:

    xchat.command("NOTICE @%s %s" % (xchat.get_info("channel"), word_eol[1]))

        os.system("firefox https://monurlredmine.com/issues/"+word[1])
    return xchat.EAT_ALL 

    xchat.hook_command("obug", obug, help="/obug <number> open bug in ff")

    Et voilà, plus qu'à reboot le xchat, ou bien /load nomdufichier.py

    ça peut etre appliqué à plein de trucs : pouvoir lancer ce qu'on veut depuis xchat

    November 5, 2013 at 3:07:31 PM GMT+1 - permalink - archive.org - http://xchat.org/docs/xchatpython.html#head-cf24838660500eceef2367deb88df5963483c852
    auto module python redmine xchat
  • redmine IR
    January 15, 2013 at 12:24:21 PM GMT+1 - permalink - archive.org - http://arnaudb.net:8080/redmine/login
    redmine
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation