[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    KNewStuff problem - GSOC 2019
From:       Ferencz_Kovács <kferike98 () gmail ! com>
Date:       2019-06-05 13:11:51
Message-ID: CAC9JrAMdtXB90h0kf4UHvA1hDMy+cnTenY2pNnkHzjr5mXPZtQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Dear KDE Developers,

I'm Ferencz Kovacs and I'm currently working on LabPlot for GSOC 2019. My
project is here
<https://summerofcode.withgoogle.com/dashboard/project/6436659309051904/overview/>.
I'm trying to use KNewStuff to upload and download some metadata files. For
starters I wanted to try the UploadDialog, however I was faced with a
problem. After a successful login I get this error message: "The server
does not recognize the category Labplot_Datasets to which you are trying to
upload." I followed the tutorial available here.
<https://techbase.kde.org/Development/Tutorials/Collaboration/HotNewStuff/Upload>
I tried to find out find out why was this problem happening, but the
documentation isn't really helpful in this matter, it's not very profound.
Then I started to analyze the source code of KNS3, in hope of finding an
answer. The upload category names are read from the .knsrc config file here.
<https://api.kde.org/frameworks/knewstuff/html/uploaddialog_8cpp_source.html?fbclid=IwAR0PriT1psbKulIUA6auilgjbp9O_C2_B-nvoF1GoqKQrJy43JqTBY6zYrg#l00112>The
 categories are gonna be loaded based on this, here
<https://api.kde.org/frameworks/knewstuff/html/uploaddialog_8cpp_source.html?fbclid=IwAR0GCNbHX5wiDVSmn4vx2SFP_AyVDAJhFCxm5syjz8BeuZExk-hiMtu6OvM#l00341>.
 Then this
<https://api.kde.org/4.x-api/kdelibs-apidocs/knewstuff/html/atticahelper_8cpp_source.html?fbclid=IwAR1Xwhj8-fyVjk6QFZkv-JarQe7E6AhHW1gY7onzXPtv9_Tqz9JQ3eBL5Jo#l00107>
 function will be called. It's gonna check whether the category
included/mentioned in the config file can be found among the ones loaded
form the server: here.
<https://api.kde.org/4.x-api/kdelibs-apidocs/knewstuff/html/atticahelper_8cpp_source.h \
tml?fbclid=IwAR3a42r-F8ULH91rV2cLVRC_htr_4bkGXbFKli2jBhGluagstuMuufly0RQ#l00126>If it \
can be found, then it's gonna be added to the valid categories. Here \
<https://api.kde.org/frameworks/knewstuff/html/uploaddialog_8cpp_source.html?fbclid=IwAR1Ae7diQAF0DZOrvoY9vxwAzr7Os66lw2HiFzhCh0U1PPxkSxSqRNVpIqU#l00567>
 the uplaodDialog checks whether there are any valid categories. Which
apperantly there are not in my case, since I'm getting the Error message
box from the previous function. Do you have any ideas why does this happen?
Do I have to register the categories first somewhere? Thank you in advance.
Every tip is more than welcome.

Yours sincerely,
Ferencz Kovacs


[Attachment #5 (text/html)]

<div dir="ltr"><div>Dear KDE Developers,</div><div><br></div><div>I&#39;m Ferencz \
Kovacs and I&#39;m currently working on LabPlot for GSOC 2019. My project is <a \
href="https://summerofcode.withgoogle.com/dashboard/project/6436659309051904/overview/" \
target="_blank">here</a>. I&#39;m trying to use KNewStuff to upload and download some \
metadata files. For starters I wanted to try the UploadDialog, however I was faced \
with a problem. After a successful login I get this error message: &quot;The server \
does not recognize the category  Labplot_Datasets to which you are trying to \
upload.&quot; I followed the tutorial available <a \
href="https://techbase.kde.org/Development/Tutorials/Collaboration/HotNewStuff/Upload" \
target="_blank">here.</a> I tried to find out find out why was this problem \
happening, but the documentation isn&#39;t really helpful in this matter, it&#39;s \
not very <span class="m_-3725728526745746046gmail-gt-baf-term-text"><span \
class="m_-3725728526745746046gmail-gt-baf-cell \
m_-3725728526745746046gmail-gt-baf-word-clickable">profound. Then I started to \
analyze the source code of KNS3, in hope of finding an answer.</span></span> The \
upload category  names are read from the .knsrc config file  <a \
href="https://api.kde.org/frameworks/knewstuff/html/uploaddialog_8cpp_source.html?fbclid=IwAR0PriT1psbKulIUA6auilgjbp9O_C2_B-nvoF1GoqKQrJy43JqTBY6zYrg#l00112" \
target="_blank">here.   </a>The categories are gonna be loaded based on this, <a \
href="https://api.kde.org/frameworks/knewstuff/html/uploaddialog_8cpp_source.html?fbclid=IwAR0GCNbHX5wiDVSmn4vx2SFP_AyVDAJhFCxm5syjz8BeuZExk-hiMtu6OvM#l00341" \
target="_blank">here</a>.   Then <a \
href="https://api.kde.org/4.x-api/kdelibs-apidocs/knewstuff/html/atticahelper_8cpp_sou \
rce.html?fbclid=IwAR1Xwhj8-fyVjk6QFZkv-JarQe7E6AhHW1gY7onzXPtv9_Tqz9JQ3eBL5Jo#l00107" \
target="_blank">this</a>  function will be called. It&#39;s gonna check whether the \
category included/mentioned in  the config file can be found among the ones loaded \
form the server: <a href="https://api.kde.org/4.x-api/kdelibs-apidocs/knewstuff/html/a \
tticahelper_8cpp_source.html?fbclid=IwAR3a42r-F8ULH91rV2cLVRC_htr_4bkGXbFKli2jBhGluagstuMuufly0RQ#l00126" \
target="_blank">here.</a>If   it can be found, then it&#39;s gonna be added to the \
valid categories. <a \
href="https://api.kde.org/frameworks/knewstuff/html/uploaddialog_8cpp_source.html?fbclid=IwAR1Ae7diQAF0DZOrvoY9vxwAzr7Os66lw2HiFzhCh0U1PPxkSxSqRNVpIqU#l00567" \
target="_blank">Here</a>  the uplaodDialog checks whether there are any valid \
categories. Which  apperantly there are not in my case, since I&#39;m getting the \
Error message  box from the previous function. Do you have any ideas why does this 
happen? Do I have to register the categories first somewhere? Thank you
 in advance. Every tip is more than welcome.</div><div><br></div><div>Yours \
sincerely,</div><div>Ferencz Kovacs<br></div></div>


["categories.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic