iro/controller/viewinterface.py
branchdevel
changeset 206 361378468627
parent 201 843a7bcecbc8
child 210 3763babd5e10
equal deleted inserted replaced
205:02ae72e8bab9 206:361378468627
    39         
    39         
    40         return ret
    40         return ret
    41    
    41    
    42     @validate(kwd="recipients",func=vTel)
    42     @validate(kwd="recipients",func=vTel)
    43     @vUser
    43     @vUser
    44     @vRoute(typ="sms")
    44     @validate(kwd="route",func=vRoute(typ="sms"))
    45     def sms(self, user, message, recipients, route="default", info=""):
    45     def sms(self, user, message, recipients, route="default", info=""):
    46         '''Versendet eine SMS.
    46         '''Versendet eine SMS.
    47 
    47 
    48         Keywords:
    48         Keywords:
    49         apikey[string]: Der API Key
    49         apikey[string]: Der API Key
    62         d.addCallback(ret)
    62         d.addCallback(ret)
    63         return d
    63         return d
    64    
    64    
    65     @validate(kwd="recipients",func=vTel)
    65     @validate(kwd="recipients",func=vTel)
    66     @vUser
    66     @vUser
    67     @vRoute(typ="fax")
    67     @validate(kwd="route",func=vRoute(typ="fax"))
    68     def fax(self, user, subject, fax, recipients, route="default", info=""):
    68     def fax(self, user, subject, fax, recipients, route="default", info=""):
    69         '''Versendet ein FAX.
    69         '''Versendet ein FAX.
    70 
    70 
    71         Keywords:
    71         Keywords:
    72         apikey[string]: Der API Key
    72         apikey[string]: Der API Key
    87         return d
    87         return d
    88 
    88 
    89     @validate(kwd="recipients",func=vEmail, allowString=False)
    89     @validate(kwd="recipients",func=vEmail, allowString=False)
    90     @validate(kwd="frm",func=vEmail, need=False, allowList=False)
    90     @validate(kwd="frm",func=vEmail, need=False, allowList=False)
    91     @vUser
    91     @vUser
    92     @vRoute(typ="mail")
    92     @validate(kwd="route",func=vRoute(typ="mail"))
    93     def mail(self, user, subject, body, recipients, frm=None, route="default", info=""):
    93     def mail(self, user, subject, body, recipients, frm=None, route="default", info=""):
    94         '''Versendet eine Email.
    94         '''Versendet eine Email.
    95 
    95 
    96         Keywords:
    96         Keywords:
    97         apikey[string]: Der API Key
    97         apikey[string]: Der API Key