57 |
self._domain = tro._info.get('domain', None) |
self._domain = tro._info.get('domain', None) |
58 |
if self._language is None or self._domain is None: |
if self._language is None or self._domain is None: |
59 |
raise ValueError, 'potfile has no metadata' |
raise ValueError, 'potfile has no metadata' |
60 |
|
self.preferred_encodings = tro._info.get('preferred-encodings', '').split() |
61 |
self.__translation_object = tro |
self.__translation_object = tro |
62 |
missing = self._path_to_file[:-1] + 'issing' |
missing = self._path_to_file[:-1] + 'issing' |
63 |
if os.access(missing, os.W_OK): |
if os.access(missing, os.W_OK): |