equal
deleted
inserted
replaced
35 |
35 |
36 implements(IMyAMSStaticConfiguration) |
36 implements(IMyAMSStaticConfiguration) |
37 |
37 |
38 application_package = 'ztfy.myams' |
38 application_package = 'ztfy.myams' |
39 application_name = u'MyAMS' |
39 application_name = u'MyAMS' |
|
40 inner_package = None |
|
41 inner_package_name = None |
|
42 |
40 version_location = u'menus' |
43 version_location = u'menus' |
|
44 |
41 include_top_links = True |
45 include_top_links = True |
42 include_site_search = True |
46 include_site_search = True |
43 include_mobile_search = True |
47 include_mobile_search = True |
44 include_user_activity = True |
48 include_user_activity = True |
45 include_user_shortcuts = True |
49 include_user_shortcuts = True |
51 include_reload_button = True |
55 include_reload_button = True |
52 body_css_class = u'' |
56 body_css_class = u'' |
53 |
57 |
54 @property |
58 @property |
55 def version(self): |
59 def version(self): |
56 return pkg_resources.get_distribution(self.application_package).version |
60 result = pkg_resources.get_distribution(self.application_package).version |
|
61 if self.inner_package: |
|
62 result += ' (%s v%s)' % (self.inner_package_name, |
|
63 pkg_resources.get_distribution(self.inner_package).version) |
|
64 return result |
57 |
65 |
58 |
66 |
59 class MyAMSConfiguration(Persistent, Contained): |
67 class MyAMSConfiguration(Persistent, Contained): |
60 """MyAMS user configuration""" |
68 """MyAMS user configuration""" |
61 |
69 |