Beiträge von laith.said

    I made a patch to the ipkg-build to solve the following 2 issues:
    - The original ipkg-build script requires to place the CONTROL directory inside the package as well as outside on the root. This issue is fixed.
    - The original ipkg-build script includes the CONTROL folder inside the data.tar.gz, and thereby the CONTROL directory will be copied to / (the root) when you install the IPK package. THis issues is fixed


    Attached is the package.

    Acknowledge, and thanks for the info.


    The script WILL be removed from /etc/


    BTW, how do the other guys do there ipkgs then? I looked in to the other plugens on enigma2 and the use the Make.am file


    Ohh, one more thing, the script is to be executed by init.d, so actually it should be placed in /etc/init.d/ and it should be linked to rc.d as well so that it is executed at rc level.


    Any guidance for how to do this in another way?

    Hi,


    I have used the ipkg-build script to generate an ipkg for my plugin. But when I want to install the package using the ipkg install command, the plugin is being installed on the root, just like if it is not applying what is specified in the Makefile.am.


    please check the attached picture for the readouts of the Makefiles and control file of the package


    May be I did not understand the principles behind the ipkg installation on thedreambox, so could any one help telling what I'm doing wrong.


    I have checked the Makefile.am towards other plugins and I cannot see any differences.


    Thanks for help.

    Thanks lupomeo, but that did not help. I still get the following error:


    The code looks like this now:


    Please note that I have copied the plugin directory directly to the dreambox, deleted the .pyc files and restarted it the box to generate them again, that should not be a problem should it? i.e. I did not use the install plugin to install it.

    Hi,


    I'm new in this and I've been working on a small plugin, I'm facing a problem with opening a screen with message box. Enigma2 is carshing and I get the following on the error log:


    Here is the code, note that the message box is on line 54: (I tried to replace it with session.open and move the call back function under but that did not help)


    Anyone could tell me why is it failing to open the screen?

    Sure, that was a paste issue wrt to the idents :winking_face:


    The idea is that have an xml file with contenants, countries. The user select the contenant then select the country and based on the selection the plugin extract the correct URL and use it for the ntp update script.


    So, in line 16 below, I should implement fethcing the test from the text from XML and send it as a parameter to the script that executes ntpupdate.


    My question was, if I do as below
    self("menu") = MenuList(list)


    then I clear list and start to append new things to it, will that update the menu list in the screen with the new content? If that is possible, then I can instead of opening a new screen, just clear the current screen from the contenants and add the list of the counteries.

    ritzMo,


    Thanks for the review and input. That was very much of help. Please note that I'm very new in Python, so this was learning by doing :winking_face:


    I was wondering whether it really need to be in 2 different classes or whether it was enough to do on the same class, e.g. (starting from line 62 below):


    now that did not work anyhow.

    So,


    # Session.open:
    # * push current active dialog ('current_dialog') onto stack
    # * call execEnd for this dialog
    # * clear in_exec flag
    # * hide screen
    # * instantiate new dialog into 'current_dialog'
    # * create screens, components
    # * read, apply skin
    # * create GUI for screen
    # * call execBegin for new dialog
    # * set in_exec
    # * show gui screen
    # * call components' / screen's onExecBegin
    # ... screen is active, until it calls 'close'...


    which means that I can call self.session.openWithCallback(...) from within a screen and it will call execEnd for the old and call execBegin for the new.


    I'm calling self.session.openWithCallback(...) in line 64 but it seems that is does not like doing this from within the screen or something


    And I'm getting the following in trace back. If you have any idea, then please write it, else I will write back when I figure that out.

    Code
    modal open are allowed only from a screen which is modal!

    Could any of you please define the interface to the session object.


    As I understood, session is used to show the screen box on the screen, my plugin requires that when the user select and press OK, then the current screen disappear and a new one appears.


    I check the simplerss plugin which perform a similar thing, I can see that following line is execited:


    Code
    session.openWithCallback(closed, RSSSetup, rssPoller)


    My guess is that we are trying to open the new screen but I do not understand what the following parameters are, like close, RSSSetup and rssPoller.


    I guess that it is telling the I have to open a new screen and and before that I have to call the self.close function, and the new screen should be according to the RSSSetup class. But I'm not sure, I actually think thatI'm trying to let things fit.


    Could any one of you tell me how to interpret this session.openWithCallBack command and how many parameters I can include in the call and what will the return value be.


    cheers.


    Guys, any clue?

    Please provide some information about the hard- and software used.


    Box type: DM7025
    GUI (enigma1/enigma2): enigma2
    Firmware version: [Moderator] Image is in violation of the Boardrules [/Moderator]


    Boot Sequence:
    Any body can refer me to the boot sequence and how to change the boot to enable console port on DM7025. I tried to enable it from BIOS but since I have no NFS server, the kernel was giving a panic. I would like my DM7025 to write on console during booting, currently it write some few things, then when it start to load the rc files, it does not show that.


    Also if you can tell me the run level DM7025 is working on.


    Thanks and HaPpY 2oo8

    I have DM7025 for 1.5 year ago. Recently I have seen that the light on the front panel display was blinking, and it ends up with that it is not lighting any more.


    Is this a common issue in DM7025 that was fixed on DM7025+?


    How does Dream-Multimedia handle such errors? I assume that following the EU rules, there is a 2 year garauntee on the product?


    Can you please advice.


    Guys, sorry I do not understand German, so I'm sorry if I asking the same question someone else have asked about.

    Thanks Guys,


    I made the print and the result is:

    Zitat

    Selected (0, 35, 1, 470, 20, 0, 0, 'myself.ts')


    I changed it to selection[1][7]. Now I do not get the crash, but nothing is happening, i.e. the:

    Zitat

    self.container.execute("/usr/bin/ctorrent -E 0 /hdd/home/ftpuser/"+str(selection[1][7])+" >/tmp/selection.ctorrent &")


    is not executing the Linux command! I can see the full command using print but the process is not started when I check ps afterwards. I tried to execute to command on bash directly and it works fine!


    Any guidance please?


    Also I'd love to know how I can get the path name?


    I'm using the code used in FileManger plugin, here is my code:


    Thanks, but it did not help:


    Code
    Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Components/ActionMap.py", line 66, in action
        return ActionMap.action(self, contexts, action)
      File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action
        res = self.actions[action]()
      File "/usr/lib/enigma2/python/Plugins/DemoPlugins/TestPlugin/plugin.py", line 62, in ok
        self.container.execute("/usr/bin/ctorrent -E 0 "+selection[1]+" >/tmp/selection.ctorrent")
    TypeError: cannot concatenate 'str' and 'tuple' objects


    I also tried the print thing, but where can I see the print result?


    m8, I tried that, but I'm still getting a restart in enigma2


    I'm doing the following:


    enigma2 crash log is telling me:

    Code
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Components/ActionMap.py", line 66, in action
        return ActionMap.action(self, contexts, action)
      File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action
        res = self.actions[action]()
      File "/usr/lib/enigma2/python/Plugins/DemoPlugins/TestPlugin/plugin.py", line 61, in ok
        self.container.execute("/usr/bin/ctorrent -E 0 "+selection+" >/tmp/selection.ctorrent")
    TypeError: cannot concatenate 'str' and 'list' objects


    Note that I reused def finished as is from tuxtux.py


    Any ideas? please.