Browse Source

Merge pull request #62 from buxx/master

Tracim 9 years ago
parent
commit
bf75da7efe
2 changed files with 5 additions and 2 deletions
  1. 0 1
      .travis.yml
  2. 5 1
      tracim/tracim/lib/notifications.py

+ 0 - 1
.travis.yml View File

34
 
34
 
35
 after_success:
35
 after_success:
36
 - coveralls
36
 - coveralls
37
-

+ 5 - 1
tracim/tracim/lib/notifications.py View File

370
             )
370
             )
371
             raise ValueError('Unexpected empty notification')
371
             raise ValueError('Unexpected empty notification')
372
 
372
 
373
+        # Import done here because cyclic import
374
+        from tracim.config.app_cfg import CFG
373
         body_content = template.render(
375
         body_content = template.render(
374
             base_url=self._global_config.WEBSITE_BASE_URL,
376
             base_url=self._global_config.WEBSITE_BASE_URL,
375
             _=_,
377
             _=_,
381
             content_text=content_text,
383
             content_text=content_text,
382
             main_title=main_title,
384
             main_title=main_title,
383
             call_to_action_text=call_to_action_text,
385
             call_to_action_text=call_to_action_text,
384
-            result = DictLikeClass(item=dictified_item, actor=dictified_actor))
386
+            result = DictLikeClass(item=dictified_item, actor=dictified_actor),
387
+            CFG=CFG.get_instance(),
388
+        )
385
 
389
 
386
         return body_content
390
         return body_content