fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor correction in cybernaut trainers form
[edumed.git]
/
edumed
/
utils.py
diff --git
a/edumed/utils.py
b/edumed/utils.py
index
756ffa3
..
2dce875
100644
(file)
--- a/
edumed/utils.py
+++ b/
edumed/utils.py
@@
-1,9
+1,10
@@
# -*- coding: utf-8 -*-
import codecs
import csv
# -*- coding: utf-8 -*-
import codecs
import csv
-
import cStringIO
import cStringIO
+from settings.apps import INSTALLED_APPS
+
# source: https://docs.python.org/2/library/csv.html#examples
class UnicodeCSVWriter(object):
# source: https://docs.python.org/2/library/csv.html#examples
class UnicodeCSVWriter(object):
@@
-33,4
+34,11
@@
class UnicodeCSVWriter(object):
def writerows(self, rows):
for row in rows:
def writerows(self, rows):
for row in rows:
- self.writerow(row)
\ No newline at end of file
+ self.writerow(row)
+
+
+def process_app_deps(list_with_deps):
+ return tuple(
+ (x[0] if type(x) == tuple else x)
+ for x in list_with_deps
+ if type(x) != tuple or x[1] in INSTALLED_APPS)
\ No newline at end of file