Subversion Repositories SmartDukaan

Rev

Rev 11149 | Rev 11417 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11149 Rev 11380
Line 82... Line 82...
82
        else:
82
        else:
83
            spm = SourcePercentageMaster.get_by(source=source_id)
83
            spm = SourcePercentageMaster.get_by(source=source_id)
84
            return spm
84
            return spm
85
 
85
 
86
def sendMailAndSync(fkItems,syncedItems):
86
def sendMailAndSync(fkItems,syncedItems):
-
 
87
    if len(fkItems) == 0 and len(syncedItems) ==0:
-
 
88
        print "Nothing to send"
-
 
89
        return
87
    xstr = lambda s: s or ""
90
    xstr = lambda s: s or ""
88
    message="""<html>
91
    message="""<html>
89
            <body>
92
            <body>
90
            <h3>Commission about to get expire</h3>
93
            <h3>Commission about to get expire</h3>
91
            <p>System will automatically update commission on expiry</p>
94
            <p>System will automatically update commission on expiry</p>