More fake entries improvements

This commit is contained in:
Marco Pesenti Gritti 2007-03-05 12:05:13 +01:00
parent 583ea4214d
commit 52ca451a05

View File

@ -8,27 +8,12 @@ def insert_demo_data(data_store):
os.makedirs(journal_dir, 0755) os.makedirs(journal_dir, 0755)
data = [ data = [
{ 'file-path' : os.path.join(journal_dir, 'fishes_in_the_sea.history'),
'object-type' : 'link',
'date' : str(time.time() - 100000),
'title' : 'Fishes in the Sea',
'preview' : 'There are many fishes in the sea, and not only...',
'icon' : 'theme:object-text',
'icon-color' : '#C2B00C,#785C78',
'keep' : '0',
'buddies' : str([ { 'name' : 'Marco',
'color' : '#C2B00C,#785C78' },
{ 'name' : 'Dan',
'color' : '#75C228,#3A6E3A' },
{ 'name' : 'Blizzard',
'color' : '#472E17,#AB3DAB' } ])
},
{ 'file-path' : os.path.join(journal_dir, 'my_cat_and_my_fishes.jpeg'), { 'file-path' : os.path.join(journal_dir, 'my_cat_and_my_fishes.jpeg'),
'object-type' : 'picture', 'object-type' : 'picture',
'date' : str(time.time() - 200000), 'date' : str(time.time() - 200000),
'title' : 'My cat and my fishes', 'title' : 'My cat and my fishes',
'preview' : "Don't know why, but my cat looks to like my fishe...", 'preview' : "Don't know why, but my cat looks to like my fishe...",
'icon' : 'theme:object-text', 'icon' : 'theme:object-image',
'icon-color' : '#472E17, #AB3DAB', 'icon-color' : '#472E17, #AB3DAB',
'keep' : '1', 'keep' : '1',
'buddies' : str([ { 'name' : 'Blizzard', 'buddies' : str([ { 'name' : 'Blizzard',
@ -56,7 +41,7 @@ def insert_demo_data(data_store):
'date' : str(time.time() - 450000), 'date' : str(time.time() - 450000),
'title' : 'Thai history', 'title' : 'Thai history',
'preview' : "The history of Thailand begins with the migration of the Thais from their ancestoral home in southern China into mainland southeast asia around the 10th century AD.", 'preview' : "The history of Thailand begins with the migration of the Thais from their ancestoral home in southern China into mainland southeast asia around the 10th century AD.",
'icon' : 'theme:object-text', 'icon' : 'theme:object-link',
'icon-color' : '#75C228,#3A6E3A', 'icon-color' : '#75C228,#3A6E3A',
'keep' : '1', 'keep' : '1',
'buddies' : str([ { 'name' : 'Dan', 'buddies' : str([ { 'name' : 'Dan',
@ -80,7 +65,7 @@ def insert_demo_data(data_store):
'date' : str(time.time() - 450000), 'date' : str(time.time() - 450000),
'title' : 'The Thai Prince', 'title' : 'The Thai Prince',
'preview' : "Prince Dipangkara Rasmijoti of Thailand, (born 29 April 2005), is a member of the Thailand Royal Family, a grandson of King Bhumibol Adulyadej (Rama IX) of Thailand is the fifth son of Maha Vajiralongkorn, Crown Prince of Thailand.", 'preview' : "Prince Dipangkara Rasmijoti of Thailand, (born 29 April 2005), is a member of the Thailand Royal Family, a grandson of King Bhumibol Adulyadej (Rama IX) of Thailand is the fifth son of Maha Vajiralongkorn, Crown Prince of Thailand.",
'icon' : 'theme:object-text', 'icon' : 'theme:object-link',
'icon-color' : '#193828,#216E21', 'icon-color' : '#193828,#216E21',
'keep' : '0', 'keep' : '0',
'buddies' : str([ { 'name' : 'Eben', 'buddies' : str([ { 'name' : 'Eben',
@ -89,6 +74,21 @@ def insert_demo_data(data_store):
'color' : '#75C228,#3A6E3A' }, 'color' : '#75C228,#3A6E3A' },
{ 'name' : 'Blizzard', { 'name' : 'Blizzard',
'color' : '#472E17,#AB3DAB' } ]) 'color' : '#472E17,#AB3DAB' } ])
},
{ 'file-path' : os.path.join(journal_dir, 'fishes_in_the_sea.history'),
'object-type' : 'picture',
'date' : str(time.time() - 100000),
'title' : 'Fishes in the Sea',
'preview' : 'There are many fishes in the sea, and not only...',
'icon' : 'theme:object-image',
'icon-color' : '#C2B00C,#785C78',
'keep' : '0',
'buddies' : str([ { 'name' : 'Marco',
'color' : '#C2B00C,#785C78' },
{ 'name' : 'Dan',
'color' : '#75C228,#3A6E3A' },
{ 'name' : 'Blizzard',
'color' : '#472E17,#AB3DAB' } ])
} }
] ]
for obj in data: for obj in data: