Need help in code of eXe

This topic contains 5 replies, has 2 voices, and was last updated by  nhantothanh 1 year, 4 months ago.

  • Author
  • #29488


    Hi everybody,

    I’m currently developing some more features for eXe, but I’m currently having difficulty reading the code.

    Specifically in (iteexe> exe> webui>, I do not understand what the name = ‘preferences’ means (maybe the url to the preferencespanel.js file?), And as far as I understand The self-request function returns a JSON string (return: json.dumps ({‘success’: True, ‘data’: data, ‘locales’: self.localeNames, ‘browsers’: self. browsers, ‘licensesNames’: self.licensesNames}), I do not know where this JSON string is saved to bind to the .js file of the interface?

    I would be very grateful if anyone could say eXe’s running stream for me, this is my dissertation to be able to graduate.

    Thank you very much,

    Best regard.

  • #29494


    Hi nhantothanh,

    For some reason I can’t send you my response. I have attached it to this message.

    If you need anything more just let us know!

  • #29496


    Hi Juan Casanova,

    Thank you very much.

    In addition, I want to get the list of nodes in JSON to load into a combobox, which means that when I add the node (or delete node), it will update the JSON array.

    And I want to get the _title attribute in each node out to be able to develop the navigation feature.

    I tried to implement but not yet, please help me.

    Best regard.

  • #29497


    Hi Juan Casanova,

    Thank you very much for your support.

    Besides, I want to add another attribute to each node in the tree (called targetId), based on this attribute to navigate the flow for my feature (navigation feature).

    How should I implement render_POST so that when I click Save, information in the combobox will save the targetId property for each node? And I’m having a hard time figuring out the flow of Javascript, namely the nevow_clientToServerEvent() function.

    And would I be grateful if he could explain to me how python can send requests via Javascript, like:

    client.sendScript (‘ (“Outline”). reload ()’, filter_func = allSessionPackageClients) (‘ (“Outline”). loadNodeOnAuthoringPage’, client.currentNodeId)

    Can you explain to me how these two functions work.
    Thank you very much.

  • #29525


    Hi @nhantothanh,

    Sorry for the delay.

    I’m not sure if I follow. In which page are you trying to save this new property? On the preferences page? On the properties page?

    About the two Python functions you mention:

    • <i>client.sendScript</i> just sends a JS code to the browser that will be executed by eXe. In your case it calls the function reload() from the Outline controller (jsui/scripts/app/controller/Outline.js).
    • <i></i> calls a JS function on the browser passing to it the parameters sent to call. In your case it calls the function loadNodeOnAuthoringPage() from the Outline controller (jsui/scripts/app/controller/Outline.js) passing it the parameter client.currentNodeId.

    Sorry for the delay!

  • #29534


    Hi @JuanCasanova,

    Thanks for your reply,

    I am currently developing and have not tested, maybe I will release in mid-May on Github.

    Hope to help everyone in developing eXe.

    Best regard,


You must be logged in to reply to this topic.