Exemple #1
0
def share(share_id = None):
    error = None
    codeshare = None
    code = None
    if share_id:
        codeshare = f.get_codeshare(share_id)
        if codeshare:
            option = False
            share = dw.wrap_codeshare(codeshare.CodeShare,{code:False})
            code = dw.wrap_code(codeshare.Code)
    print code
    return render_template('code/share.html',tab='index', codeshare = share, code = code, error = error)
Exemple #2
0
def share(share_id=None):
    error = None
    codeshare = None
    code = None
    if share_id:
        codeshare = f.get_codeshare(share_id)
        if codeshare:
            option = False
            share = dw.wrap_codeshare(codeshare.CodeShare, {code: False})
            code = dw.wrap_code(codeshare.Code)
    print code
    return render_template('code/share.html',
                           tab='index',
                           codeshare=share,
                           code=code,
                           error=error)
Exemple #3
0
 def code(self):
     from lib.functions import get_code
     code = get_code(self.code_id)
     from lib.datawrappers import wrap_code
     return wrap_code(code)