Mercurial > libervia-backend
comparison src/core/sat_main.py @ 1376:28fd9e838f8f
core: getRepositoryData now get the module in argument
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 19 Mar 2015 20:40:10 +0100 |
parents | 3a20312d4012 |
children | 069ad98b360d |
comparison
equal
deleted
inserted
replaced
1375:3a20312d4012 | 1376:28fd9e838f8f |
---|---|
15 # GNU Affero General Public License for more details. | 15 # GNU Affero General Public License for more details. |
16 | 16 |
17 # You should have received a copy of the GNU Affero General Public License | 17 # You should have received a copy of the GNU Affero General Public License |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
20 import sat | |
20 from sat.core.i18n import _, D_, languageSwitch | 21 from sat.core.i18n import _, D_, languageSwitch |
21 from twisted.application import service | 22 from twisted.application import service |
22 from twisted.internet import defer | 23 from twisted.internet import defer |
23 from twisted.words.protocols.jabber import jid | 24 from twisted.words.protocols.jabber import jid |
24 from twisted.words.xish import domish | 25 from twisted.words.xish import domish |
70 if version[-1] == 'D': | 71 if version[-1] == 'D': |
71 # we are in debug version, we add extra data | 72 # we are in debug version, we add extra data |
72 try: | 73 try: |
73 return self._version_cache | 74 return self._version_cache |
74 except AttributeError: | 75 except AttributeError: |
75 self._version_cache = u"{} ({})".format(version, utils.getRepositoryData()) | 76 self._version_cache = u"{} ({})".format(version, utils.getRepositoryData(sat)) |
76 return self._version_cache | 77 return self._version_cache |
77 else: | 78 else: |
78 return version | 79 return version |
79 | 80 |
80 def get_next_id(self): | 81 def get_next_id(self): |