eppye-bots / bots

Automatically exported from code.google.com/p/bots
66 stars 126 forks source link

Add: QUERIES now alos support callables #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
QUERIES used mpaths to get a value.
This is now enhanced: indicated a function to call.
Bit similar to user scripts/user exits.
(I like this change!)

Example:

def callme():
    #my complicated way to get  a 'alt' value
    return 'MY_ALT_VALUE'

structure = [
    {ID:'UNB',MIN:0,MAX:99999,    
        QUERIES:{
            'frompartner':  {'BOTSID':'UNB','S002.0004':None},
            'topartner':    {'BOTSID':'UNB','S003.0010':None},
            'alt':    callme,
            },

Original issue reported on code.google.com by hjebb...@gmail.com on 29 Apr 2013 at 10:37

GoogleCodeExporter commented 9 years ago

Original comment by hjebb...@gmail.com on 6 Sep 2013 at 4:54

GoogleCodeExporter commented 9 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:46