Subversion Repositories SmartDukaan

Rev

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

Rev 8189 Rev 8190
Line 172... Line 172...
172
            imported_coupon_module = __import__("shop2020.model.v1.user.promotionrules", globals(), locals(), [coupon_module])
172
            imported_coupon_module = __import__("shop2020.model.v1.user.promotionrules", globals(), locals(), [coupon_module])
173
            rule = eval("imported_coupon_module." + coupon_module)
173
            rule = eval("imported_coupon_module." + coupon_module)
174
            
174
            
175
            if coupon.promotion.id == 37:
175
            if coupon.promotion.id == 37:
176
                count = PromotionTracker.get_by(promotion_id = 37).count()
176
                count = PromotionTracker.get_by(promotion_id = 37).count()
177
                if count == 2013:
177
                if count >= 2013:
178
                    raise PromotionException(112, 'This promotion is over.')
178
                    raise PromotionException(112, 'This promotion is over.')
179
            
179
            
180
            args = eval(coupon.arguments) if coupon.arguments is not None else {}
180
            args = eval(coupon.arguments) if coupon.arguments is not None else {}
181
            
181
            
182
            '''
182
            '''