Commit 5438962c authored by Thodoris Nestoridis's avatar Thodoris Nestoridis

last update

parent e27f1d7b
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
</div> </div>
</div> </div>
<div *ngIf='grouboilerplates?.length === 0' class="alert alert-warning" role="alert">No available projects, please add a new project</div>
<div class="content"> <div class="content">
<div fxLayout="row wrap"> <div fxLayout="row wrap">
<div fxFlex="20%" *ngFor="let gb of grouboilerplates| filter:title"> <div fxFlex="20%" *ngFor="let gb of grouboilerplates| filter:title">
......
...@@ -10,8 +10,8 @@ from reqman.apps.reqtool.rest_api.services.parse_ontologies import * ...@@ -10,8 +10,8 @@ from reqman.apps.reqtool.rest_api.services.parse_ontologies import *
#find_subclass_domain_range() #find_subclass_domain_range()
#MAIN SYNTAX #MAIN SYNTAX
import pprint #import pprint
#pprint.pprint(get_main_sytax()) #print.pprint(get_main_sytax(g))
MAIN_CHOICES = ( ("",""), ("M1", "M1"), MAIN_CHOICES = ( ("",""), ("M1", "M1"),
("M2", "M2"), ("M2", "M2"),
......
...@@ -18,7 +18,9 @@ from reqman.settings.environment import env ...@@ -18,7 +18,9 @@ from reqman.settings.environment import env
#get prefix syntax from the Onotlogy# #get prefix syntax from the Onotlogy#
#print(get_prefix_new_syntax()) #print(get_prefix_new_syntax())
#PREFIX_SYNTAX = get_prefix_syntax() #PREFIX_SYNTAX = get_prefix_syntax()
#g = Graph()
#g.load('../../Ontologies/2022_AOCS.ttl', format="turtle")
#print(get_main_sytax(g))
SIMPLE_PREFIX_CHOICES = ( ("",""), SIMPLE_PREFIX_CHOICES = ( ("",""),
("P1", "If/Unless <logical expression>"), ("P1", "If/Unless <logical expression>"),
......
...@@ -304,7 +304,7 @@ class MainChoicesAPIView(APIView): ...@@ -304,7 +304,7 @@ class MainChoicesAPIView(APIView):
sao6['SubInstanceOfSubclass'].append({"Instance": es_instance[6].strip(), "Comment": comment }) sao6['SubInstanceOfSubclass'].append({"Instance": es_instance[6].strip(), "Comment": comment })
break break
if(flag == 4): if(flag == 4):
#print(instance, "Instance", es_instance[5].strip(), "Comment", comment ) print(instance, "Instance", es_instance[5].strip(), "Comment", comment )
if(sao5 ['SubInstanceOfSubclass'] == ''): if(sao5 ['SubInstanceOfSubclass'] == ''):
sao5 ['SubInstanceOfSubclass'] = [] sao5 ['SubInstanceOfSubclass'] = []
sao5['SubInstanceOfSubclass'].append({"Instance": es_instance[5].strip(), "Comment": comment }) sao5['SubInstanceOfSubclass'].append({"Instance": es_instance[5].strip(), "Comment": comment })
...@@ -358,6 +358,7 @@ class MainChoicesAPIView(APIView): ...@@ -358,6 +358,7 @@ class MainChoicesAPIView(APIView):
return HttpResponse('Update Instance') return HttpResponse('Update Instance')
if (es_instance[0].strip() == 'Item'): if (es_instance[0].strip() == 'Item'):
m = data.values('item_choices')[0]['item_choices'][:-1] m = data.values('item_choices')[0]['item_choices'][:-1]
print('["'+instance+'","'+instance+'"]')
if (len(m) ==1 ): if (len(m) ==1 ):
m+= '["'+instance+'","'+instance+'"]'+']' m+= '["'+instance+'","'+instance+'"]'+']'
else : else :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment