cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

CSS file doesnot link with python SDK Example Python-webserver

CSS file doesnot link with python SDK Example Python-webserver

UDK_developer
New Poster

Hello, 

i tried out the python example of the python-webserver 

Uwe_Krestel_0-1657543465620.png

and well if you see it works correclty. I can write values in the data layer. So when i looked in the mark down file there is a picture with the stylesheet.css but in my case he doesn't want to link the css file included in /www/stylesheet.css.

i looked further in the code and copied the html file in a notepad. Then i created a file folder to my desktop i linked the stylsheet to the notepad data like this:

Uwe_Krestel_2-1657543940570.png

When i execute the html file in notepad it puts following results: 

Uwe_Krestel_3-1657544031380.png

I also changed some default values in the stylesheet.css to see if the linking is correct. 

So when i build the snap for the ctrlx Core Device I only get the first picture without the stylsheet.css linking. 

I got the python example webserver+datalayer from the sdk vers. 1.14.3. 

best regards 

UDK_developer

 

 

 

2 REPLIES 2

nickH
Community Moderator
Community Moderator

Hello UDK_developer, 

I was able to reproduce your bug. Thank you for reporting it!

We will take a deeper look into this error and let you know if there are any news. 

 

Best regards,

Nick

nickH
Community Moderator
Community Moderator

Hello UDK_developer,

I got an update for you. We found a fix for this bug. It has something to do with how the parts of the snap are packed. 

You can just add these lines to the snapcraft.yaml. So that the application will later find the css-file at "$SNAP/www". 

 

...
parts:
...

  www:
    plugin: dump
    source: ./www
    organize:
      '*': "www/"

...

 

 

This is going to be included in the next release of the SDK. 

Best regards,

Nick 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist