equal
deleted
inserted
replaced
1 """ |
1 """ |
2 Configuration |
2 Configuration |
3 """ |
3 """ |
4 |
|
5 import render |
|
6 |
4 |
7 class Configuration (object) : |
5 class Configuration (object) : |
8 """ |
6 """ |
9 Various configuration settings |
7 Various configuration settings |
10 """ |
8 """ |
|
9 |
|
10 # the path to the gallery |
|
11 gallery_path = "." |
11 |
12 |
12 # the name of the gallery |
13 # the name of the gallery |
13 gallery_title = "Image Gallery" |
14 gallery_title = "Image Gallery" |
14 |
15 |
15 # recognized image extensions |
16 # recognized image extensions |
42 ("ShootingMode", "Shooting mode" ), |
43 ("ShootingMode", "Shooting mode" ), |
43 ("LensType", "Lens type" ), |
44 ("LensType", "Lens type" ), |
44 ("FocalLength", "Focal length" ) |
45 ("FocalLength", "Focal length" ) |
45 ] |
46 ] |
46 |
47 |
|
48 ## runtime settings |
|
49 |
|
50 # do not modify anything |
|
51 read_only = False |
|
52 |
|
53 |
|
54 ### functions |
47 def is_image (self, file) : |
55 def is_image (self, file) : |
48 """ |
56 """ |
49 Tests if the given File is an image, based on its file extension |
57 Tests if the given File is an image, based on its file extension |
50 """ |
58 """ |
51 |
59 |