예제 #1
0
 def setUpClass(cls):
     super(CitationsViewsTestCase, cls).setUpClass()
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass
예제 #2
0
파일: tasks.py 프로젝트: erinmayhood/osf.io
def update_citation_styles():
    from scripts import parse_citation_styles
    total = parse_citation_styles.main()
    print("Parsed {} styles".format(total))
예제 #3
0
 def _parsed_citation_styles(self):
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass
예제 #4
0
파일: __init__.py 프로젝트: envobe/osf.io
def update_citation_styles(ctx):
    from scripts import parse_citation_styles
    total = parse_citation_styles.main()
    print('Parsed {} styles'.format(total))
예제 #5
0
 def _parsed_citation_styles(self):
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass