python-twisted-core for OS2008?

2008-02-17 Thread Nadav Aharony
Hi,

I've been using python-twisted-core for Bora from the NRCC repository.
I want to upgrade to OS2008 (Actually I have to, since I need my system 
to run on N810s), but I could not find an appropriate version of Twisted 
online.


1) Does someone know if there is a Maemo OS2008 version of the Twisted core?
2) Can anyone help with doing this conversion?
3) I have never cross-compiled or built any packages or .deb files 
before, so I have no idea where to start or how hard/easy this 
conversion is. I am also willing to learn if anyone can help walk me 
through it.

Thanks!
-nadav
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Confused: Python bindings to D-Bus - OSSO.RPC or DBUS module? Also: wlancond question

2008-02-14 Thread Nadav Aharony


Hi,

I've never used the D-Bus before and I realized its probably time for me 
to start. After doing some reading on this list and whatever Google 
brought up I am a bit confused as to what I should be using and how.


My code is all Python, and I need to do some stuff like
-  getting notified if the device is plugged in to the charger or not 
(saw some examples of that)
- modifying the network interfaces (both IP addresses and connecting to 
access points and ad-hoc networks). So far I've done this with ifconfig 
and iwconfig but it was definitely a hack, plus my device used to crash 
a lot, which I attribute to collisions between my manual changes and the 
connection daemons).


First issue:
From the "python_maemo_howto" - "One of LibOSSO's main features is RPC 
(Remote Procedure Calls) services (as it "wraps" D-Bus ^3 
)"
From the example posted by Adenilson Cavalcanti just today (at the end 
of this email), I saw he used the python d-bus module, which wasn't 
mentioned in any of the other tutorials on maemo.org, but I later found 
it on the PyMaemo page.


So which is it? OSSO.RPC or the dbus module?
Can anyone point me to the difference between these two wrappers of the 
D-Bus?

Are there cases where one is better than the other?

Second issue- controlling the WLAN connection
From my reading I saw that for the networking stuff I would need to 
connect to "wlancond" and to "ICD". I saw discussions about them not 
being open source, but that there is some API available. Could anyone 
direct me to those APIs and some way to use them through Python?
Can I have access to all of the settings that are possible through the 
network configuration GUI application?
Is there any example of setting WLAN connection and IP settings (e..g 
static IP address) through python?


Any info would be appreciated,
Thanks!
Nadav


Adenilson Cavalcanti wrote:

Luciano

Long time since the last message...
:-)

Got it working using D-Bus, with this code based on the sample code of 
BlueZ wiki page (hope that it don't break formating):



import dbus
import dbus.glib
import gobject

main_loop = None

def disc_completed_signal():
print 'Signal: DiscoveryCompleted()'
main_loop.quit()


class dbus_bluetooth:
def __init__(self):
self.bus = dbus.SystemBus()
def set_callback(self, f_callback):
self.bus.add_signal_receiver(f_callback, 'RemoteNameUpdated',
 'org.bluez.Adapter', 'org.bluez',
 '/org/bluez/hci0')
self.bus.add_signal_receiver(disc_completed_signal,
 'DiscoveryCompleted', 
'org.bluez.Adapter',

 'org.bluez', '/org/bluez/hci0')
self.obj = self.bus.get_object('org.bluez', '/org/bluez/hci0')
self.adapter = dbus.Interface(self.obj, 'org.bluez.Adapter')
def discover(self):
global main_loop
self.adapter.DiscoverDevices()
gobject.threads_init()
dbus.glib.init_threads()
main_loop = gobject.MainLoop()
main_loop.run()

def test(address, name):
print 'Got a device: (%s, %s)' % (address, name)

obj = dbus_bluetooth()
obj.set_callback(test)
obj.discover()

Best regards




___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Fullscreen and Flash

2008-02-13 Thread Nadav Aharony

Hi Carlos,

I've also been working with a full-screen flash app.

For the MicroB browser, go to:
main menu (top left corner of the screen) --> view --> show toolbar
There you can choose to hide or show the toolbar in "Normal screen" mode 
or "Full Screen". Just turn off whichever you want.


Regards,
Nadav

Carlos Pinto wrote:

Hi everyone,
i published the newest issue of my maemo ezine yesterday and had two 
ideas,

wishes and questions :)

1st: Is there a way to force the browser to go "Fullscreen" without 
the address

field at the bottom of the screen?

2nd: Is it possible to display Flash on the "today-screen" aka desktop?

Big hugs and in case you would like to read the newest atarashi issue:
http://www.cyberholic.de/atarashi

You slide the pages with your fingers and sliding from top to bottom
brings up a small menu.

Carlos

--
---
endorphinum -//- cyberholic -//- vato

Carlos Pinto
Gärtnerstrasse 22 Haus1
20253 Hamburg

T 0049-40-226 11 399
M 0049-174-7446776
SKYPE cyberholicde

[EMAIL PROTECTED] 

www.cyberholic.de 
www.endorphinum.de 

XING  www.xing.com/profile/Carlos_Pinto2 


---


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
  


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Problem opening file browse dialog using Adobe Flash FileReference on the N800.

2007-12-20 Thread Nadav Aharony
Hi,

I'm working on a flash based application and I ran into a problem that 
might also be relevant to everyday usage of Flash in the web browser.


I can't get the FileReference class to work - its supposed to pop up a 
file selection dialog through the web browser, but nothing happens.


My code does work on Linux/Firefox, and also Mac with Firefox and 
Safari, but nothing happens when I click the file selection button on 
the N800. I'm using the latest version of the OS2007, with the MicroB 
engine. I also checked with an earlier version of the OS and it didn't 
work as well.

Its not just my code, it also doesn't work with other sites that use the 
Flash Filereference class, like this tutorial: 
http://www.tink.ws/blog/files/flash8/FileReferenceExample.html
This also does work on any pc that I tested with.

The class is supported in both Flash8 and Flash9, so it should work on 
the N800, shouldn't it?

Any ideas?

Thanks!
Nadav Aharony










___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers