Subversion Repositories SmartDukaan

Rev

Rev 323 | Rev 1936 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 323 Rev 1362
Line 8... Line 8...
8
        for expchildslide in expchildrenslides :
8
        for expchildslide in expchildrenslides :
9
            childstruct = contentModel2Struct(expchildslide) 
9
            childstruct = contentModel2Struct(expchildslide) 
10
            
10
            
11
            # REVISIT - ID in place to label
11
            # REVISIT - ID in place to label
12
            slidelabel = expchildslide.getSlideDefinition().getLabel() 
12
            slidelabel = expchildslide.getSlideDefinition().getLabel() 
13
            print "slidelabel=" + slidelabel
13
            #print "slidelabel=" + slidelabel
14
            childrenstructs[slidelabel] = childstruct
14
            childrenstructs[slidelabel] = childstruct
15
            
15
            
16
        struct['childrenslides'] = childrenstructs
16
        struct['childrenslides'] = childrenstructs
17
    
17
    
18
    # Set feature structures
18
    # Set feature structures
Line 21... Line 21...
21
        featurestructs = {}
21
        featurestructs = {}
22
        for expfeature in expfeatures :
22
        for expfeature in expfeatures :
23
            
23
            
24
            # REVISIT - ID in place to label
24
            # REVISIT - ID in place to label
25
            featurelabel = expfeature.getFeatureDefinition().getLabel()
25
            featurelabel = expfeature.getFeatureDefinition().getLabel()
26
            print "featurelabel=" + featurelabel 
26
            #print "featurelabel=" + featurelabel 
27
            if expfeature.hasBullets() :
27
            if expfeature.hasBullets() :
28
                bulletsstruct = []
28
                bulletsstruct = []
29
                expbullets = expfeature.getExpandedBullets()
29
                expbullets = expfeature.getExpandedBullets()
30
                for expbullet in expbullets :
30
                for expbullet in expbullets :
31
                    if expbullet.isComposite() :
31
                    if expbullet.isComposite() :
32
                        primitivedataobjects = expbullet.getDataObject().getPrimitiveDataObjects()
32
                        primitivedataobjects = expbullet.getDataObject().getPrimitiveDataObjects()
33
                        for primitivedataobject in primitivedataobjects :
33
                        for primitivedataobject in primitivedataobjects :
34
                            bulletvalue = primitivedataobject.getValue()
34
                            bulletvalue = primitivedataobject.getValue()
35
                            print "bulletvalue=" + bulletvalue
35
                            #print "bulletvalue=" + bulletvalue
36
                            bulletsstruct.append(bulletvalue)
36
                            bulletsstruct.append(bulletvalue)
37
                         
37
                         
38
                    elif expbullet.isEnumerated() :
38
                    elif expbullet.isEnumerated() :
39
                        bulletvalue = expbullet.getExpandedEnumDataObject().getEnumValue().getValue()
39
                        bulletvalue = expbullet.getExpandedEnumDataObject().getEnumValue().getValue()
40
                        print "bulletvalue=" + bulletvalue
40
                        #print "bulletvalue=" + bulletvalue
41
                        bulletsstruct.append(bulletvalue)
41
                        bulletsstruct.append(bulletvalue)
42
                    
42
                    
43
                    else :
43
                    else :
44
                        bulletvalue = expbullet.getDataObject().getValue()
44
                        bulletvalue = expbullet.getDataObject().getValue()
45
                        print "bulletvalue=" + bulletvalue
45
                        #print "bulletvalue=" + bulletvalue
46
                        bulletsstruct.append(bulletvalue)
46
                        bulletsstruct.append(bulletvalue)
47
                        
47
                        
48
                featurestructs[featurelabel] = bulletsstruct
48
                featurestructs[featurelabel] = bulletsstruct
49
            else :
49
            else :
50
                # Set to empty list, this is to accomodate bullet-less features
50
                # Set to empty list, this is to accomodate bullet-less features