10
Jun

I’ve managed to get my front and back ends talking to each other. The front-end is written in Python. It loads a Glade file and uses that to generate the window to display.

To run it you need a copy of //depot/projects/soc2007/andrew-update/ from perforce. Run ‘make’ to build it. Next, from the backend directory, run ‘facund-be -c freebsd-config-control.conf’. This starts the backend. In a new terminal, from the frontend directory, run ‘python facund.py’. It will open a window with what will become a list of computers on the left with a connect and disconnect button under it. When the connect button is clicked it should attempt to connect to the back-end over the /tmp/facund unix socket and send a start message to the back-end. On disconnect it will send a stop message and wait for the back-end to do the same.

The rest of the communication is yet to be defined but I have a basic idea of the front-end sending a request something like <get value=”available_updates” id=”random_id”/>. The back-end then sends a <return id=”random_id” data=”none”/>. The return data may be changes to allow for non-string types, e.g. bool, int, array, etc.

4 Responses to “FreeBSD update front end first cut”

  • Steve

    The community demands screenshots! :)

  • sbz

    Hi Andrew, i try to test facund, so i checkout the trunk of project from berlios.de, i test run it, and i have a problem when launching python facund.py , i think i forgot to add a python module but i don’t know what module.

    (sbz@atemi:~/trunk/frontend) % python facund.py
    Traceback (most recent call last):
    File “facund.py”, line 30, in
    import facund, facund.gui, facund.network
    File “/usr/home/sbz/trunk/frontend/facund/gui/__init__.py”, line 28, in
    from connection_dialog import ConnectionDialog
    ImportError: No module named connection_dialog

    Can you assist me, please ?

    I have these current modules installed and i run FreeBSD 7.0-BETA2

    py25-cairo-1.4.0_1 Python bindings for Cairo
    py25-dbus-0.82.3 Python bindings for the D-BUS messaging system
    py25-elementtree-1.2.6 Container for hierarchical data structures written in Pytho
    py25-gnome-2.20.0 A set of Python bindings for GNOME 2
    py25-gnome-desktop-2.20.0 A set of Python bindings used by modules in the GNOME Deskt
    py25-gobject-2.14.0 Python bindings for GObject
    py25-gtk-2.12.0 A set of Python bindings for GTK+
    py25-gtksourceview-2.0.0 A python bindings for the version 2 of the GtkSourceView li
    py25-libxml2-2.6.30 Python interface for XML parser library for GNOME
    py25-numeric-24.2 The Numeric Extension to Python
    py25-orbit-2.14.3 Python bindings for ORBit2
    python25-2.5.1_1 An interpreted object-oriented programming language
    ruby18-bdb-0.6.2 Ruby interface to Sleepycat’s Berkeley DB revision 2 or lat
    xdpyinfo-1.0.2 Display information utility for X

    Thanks in advance to you.

  • andrew

    Sbz, it looks like Facund is missing some files in subversion. I’m rewriting the GUI code so this should be fixed soon. I’m also planning on working on the back end to add tests. When both of these are done I’m planning on working on creating ports for the front and back end.

  • sbz

    Ok, so i wait your port integration :) . And thanks to you in reading facund source I discover the C unit framework libcheck.

Add reply