Subversion Repositories SmartDukaan

Rev

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

Rev 16300 Rev 16304
Line 4... Line 4...
4
from dtr.main import Store
4
from dtr.main import Store
5
from dtr.dao import FeaturedDeals
5
from dtr.dao import FeaturedDeals
6
from dtr.storage import DataService
6
from dtr.storage import DataService
7
from dtr.storage.DataService import price_preferences, brand_preferences, \
7
from dtr.storage.DataService import price_preferences, brand_preferences, \
8
    user_actions, Brands
8
    user_actions, Brands
9
#from dtr.storage.MemCache import MemCache
9
from dtr.storage.MemCache import MemCache
10
from dtr.utils.utils import to_java_date
10
from dtr.utils.utils import to_java_date
11
from elixir import *
11
from elixir import *
12
from operator import itemgetter
12
from operator import itemgetter
13
import pymongo
13
import pymongo
14
import re
14
import re
Line 16... Line 16...
16
import random
16
import random
17
 
17
 
18
con = None
18
con = None
19
 
19
 
20
DataService.initialize(db_hostname="localhost")
20
DataService.initialize(db_hostname="localhost")
21
#mc = MemCache("127.0.0.1")
21
mc = MemCache("127.0.0.1")
22
 
22
 
23
SOURCE_MAP = {1:'AMAZON',2:'FLIPKART',3:'SNAPDEAL',4:'SAHOLIC',5:"SHOPCLUES.COM"}
23
SOURCE_MAP = {1:'AMAZON',2:'FLIPKART',3:'SNAPDEAL',4:'SAHOLIC',5:"SHOPCLUES.COM"}
24
 
24
 
25
COLLECTION_MAP = {
25
COLLECTION_MAP = {
26
                  'ExceptionalNlc':'skuBundleId',
26
                  'ExceptionalNlc':'skuBundleId',