Mercurial > libervia-web
comparison libervia/pages/photos/new/page_meta.py @ 1339:3a1cb3c5702f
pages (photos/new): typo
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 15 Aug 2020 23:29:00 +0200 |
parents | 198605982d15 |
children | 39719ff4fcad |
comparison
equal
deleted
inserted
replaced
1338:9bfd2d0661b2 | 1339:3a1cb3c5702f |
---|---|
2 | 2 |
3 from libervia.server.constants import Const as C | 3 from libervia.server.constants import Const as C |
4 from twisted.internet import defer | 4 from twisted.internet import defer |
5 from sat.core.log import getLogger | 5 from sat.core.log import getLogger |
6 from sat.core.i18n import D_ | 6 from sat.core.i18n import D_ |
7 from sat.tools.common import date_utils, data_format | 7 from sat.core import exceptions |
8 | 8 |
9 """creation of new events""" | 9 """creation of new events""" |
10 | 10 |
11 name = "photos_new" | 11 name = "photos_new" |
12 access = C.PAGES_ACCESS_PROFILE | 12 access = C.PAGES_ACCESS_PROFILE |
34 profile | 34 profile |
35 ) | 35 ) |
36 try: | 36 try: |
37 fis_service = next(iter(entities_services)) | 37 fis_service = next(iter(entities_services)) |
38 except StopIteration: | 38 except StopIteration: |
39 raise DataError(D_( | 39 raise exceptions.DataError(D_( |
40 "You server has no service to create a photo album, please ask your server" | 40 "You server has no service to create a photo album, please ask your server " |
41 "administrator to add one")) | 41 "administrator to add one")) |
42 | 42 |
43 await self.host.bridgeCall( | 43 await self.host.bridgeCall( |
44 "interestsRegisterFileSharing", | 44 "interestsRegisterFileSharing", |
45 fis_service, | 45 fis_service, |