Example #1
0
#!/usr/bin/env python
#coding:utf-8
from _gearman import gearman

index = gearman.client('index.index', True)

if __name__ == "__main__":
    print rendermail("/SITE/_mail/sso/root/test.html", '*****@*****.**', 'zfvwg')
Example #2
0
#!/usr/bin/env python
#coding:utf-8
from _gearman import gearman

rendermail = gearman.client('mail.rendermail', True)

if __name__ == "__main__":
    import mail
    from z42.web.mail import rendermail as _rendermail
    _rendermail("test.html", '*****@*****.**', 'zfvwg')
    print rendermail("test.html", '*****@*****.**', 'zfvwg')
Example #3
0
#!/usr/bin/env python
#coding:utf-8
import _env
from _gearman import gearman

index = gearman.client('search.index', True)

import hyperestraier
from z42.config import HYPERESTRAIER
import base64


class Transport(object):
    def __init__(self):
        self.url = None
        self.pxhost = None
        self.pxport = 0
        self.timeout = 0
        self.auth = None

    def extract(self, callback):
        return callback(None)

    def sendAndExtract(self,
                       command,
                       callback,
                       errback,
                       extractCallback,
                       headers={},
                       body=None,
                       autoContentType=True):
Example #4
0
#!/usr/bin/env python
#coding:utf-8
import _env
from _gearman import gearman

index = gearman.client('search.index', True)

import hyperestraier
from z42.config import HYPERESTRAIER
import base64

class Transport(object):
    def __init__(self):
        self.url = None
        self.pxhost = None
        self.pxport = 0
        self.timeout = 0
        self.auth = None

    def extract(self, callback):
        return callback(None)

    def sendAndExtract(self, command, callback, errback, extractCallback,
                       headers={}, body=None, autoContentType=True):
        result = self.send(command, callback, errback,
                           headers, body, autoContentType)
        return extractCallback(result)

    def callback(self, result):
        li = []
        count = 0
Example #5
0
#!/usr/bin/env python
#coding:utf-8
from _gearman import gearman

index = gearman.client('index.index', True)

if __name__ == "__main__":
    print rendermail("/SITE/_mail/sso/root/test.html", '*****@*****.**',
                     'zfvwg')