示例#1
0
def system_info(request):
    spversion = Spversion.objects.get()

    info = dict(
        version=settings.VERSION,
        specify6_version=re.findall(r'SPECIFY_VERSION=(.*)', specify_jar.read('resources_en.properties'))[0],
        database_version=spversion.appversion,
        schema_version=spversion.schemaversion,
        )
    return HttpResponse(simplejson.dumps(info), content_type='application/json')
示例#2
0
def system_info(request):
    spversion = Spversion.objects.get()

    info = dict(
        version=settings.VERSION,
        specify6_version=re.findall(r'SPECIFY_VERSION=(.*)', specify_jar.read('resources_en.properties'))[0],
        database_version=spversion.appversion,
        schema_version=spversion.schemaversion,
        )
    return HttpResponse(simplejson.dumps(info), content_type='application/json')
示例#3
0
def system_info(request):
    spversion = Spversion.objects.get()
    collection = request.specify_collection
    discipline = collection.discipline if collection is not None else None
    institution = Institution.objects.get()

    info = dict(
        version=settings.VERSION,
        specify6_version=re.findall(r'SPECIFY_VERSION=(.*)', specify_jar.read('resources_en.properties'))[0],
        database_version=spversion.appversion,
        schema_version=spversion.schemaversion,
        stats_url=settings.STATS_URL,
        database=settings.DATABASE_NAME,
        institution=institution.name,
        discipline=discipline and discipline.name,
        collection=collection and collection.collectionname,
        isa_number=collection and collection.isanumber,
        )
    return HttpResponse(simplejson.dumps(info), content_type='application/json')
示例#4
0
def system_info(request):
    spversion = Spversion.objects.get()
    collection = request.specify_collection
    discipline = collection.discipline if collection is not None else None
    institution = Institution.objects.get()

    info = dict(
        version=settings.VERSION,
        specify6_version=re.findall(r'SPECIFY_VERSION=(.*)', specify_jar.read('resources_en.properties'))[0],
        database_version=spversion.appversion,
        schema_version=spversion.schemaversion,
        stats_url=settings.STATS_URL,
        database=settings.DATABASE_NAME,
        institution=institution.name,
        discipline=discipline and discipline.name,
        collection=collection and collection.collectionname,
        isa_number=collection and collection.isanumber,
        )
    return HttpResponse(json.dumps(info), content_type='application/json')