Merge lp:~mvo/oneconf/mvo into lp:oneconf

Proposed by Michael Vogt
Status: Merged
Merged at revision: 64
Proposed branch: lp:~mvo/oneconf/mvo
Merge into: lp:oneconf
Diff against target: 180 lines (+44/-11)
10 files modified
.bzr-builddeb/default.conf (+2/-0)
data/ui/u1inventorydialog.ui (+29/-0)
debian/control (+1/-0)
debian/dirs (+1/-0)
debian/rules (+2/-2)
misc/com.ubuntu.OneConf.service (+1/-1)
oneconf/hosts.py (+2/-2)
oneconf/usc_plugin.py (+1/-1)
oneconf/uscplugin/u1inventorydialog.py (+4/-1)
setup.py (+1/-4)
To merge this branch: bzr merge lp:~mvo/oneconf/mvo
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+31316@code.launchpad.net

Description of the change

Make bzr-buildpackage work and fix some small issues. Works well for me now.

To post a comment you must log in.
lp:~mvo/oneconf/mvo updated
69. By Michael Vogt

oneconf/uscplugin/u1inventorydialog.py: if the sync time is unknown, print it instead of nothing

Revision history for this message
Michael Vogt (mvo) wrote :

On my amd64 machine I keep getting crashes but I doubt its the python code itself (deep in pthread_mutex_lock and ubuntuone)

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Oh, I got stopped between two commits to get some food tonight and got some issues fixed before looking at my email :)
This are good stuff still even if some are duplicated, the only part I won't take is:
130 -sys.path.append(os.path.abspath(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))))
131 +sys.path.append("/usr/share/oneconf")

-> This prevent me symlinking from trunk for testing. I want at some point to get rid of /usr/share/oneconf which is hardcoded in setup.py as well.
I removed python-desktopcouch dep you added as well as python-desktopcouch is a transitional package (in universe) depending on desktopcouch which contains the real desktopcouch thing.

Thanks a lot for your patches there :)

BTW, on my 32 machine, I don't have crashes in that part. will worth having a look at this (threading issue?)

review: Approve
Revision history for this message
Michael Vogt (mvo) wrote :

On Thu, 29 Jul 2010 21:35 +0000, "Didier Roche" <email address hidden>
wrote:
> Review: Approve
> Oh, I got stopped between two commits to get some food tonight and got
> some issues fixed before looking at my email :)
> This are good stuff still even if some are duplicated, the only part I
> won't take is:
> 130
> -sys.path.append(os.path.abspath(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))))
> 131 +sys.path.append("/usr/share/oneconf")
>
> -> This prevent me symlinking from trunk for testing. I want at some
> point to get rid of /usr/share/oneconf which is hardcoded in setup.py as
> well.
> I removed python-desktopcouch dep you added as well as
> python-desktopcouch is a transitional package (in universe) depending on
> desktopcouch which contains the real desktopcouch thing.

Ok, that is fine, thanks for correcting it. I did not look that closely.

> Thanks a lot for your patches there :)

My pleasure, finally I had a bit of time (while waiting for apt to
build) to play with the
code. Really nice. But for some reason I only see:
$ oneconf-query --hosts
Listing this host stored in OneConf:
ID: xxx
 name: top

my other machine is missing :/

> BTW, on my 32 machine, I don't have crashes in that part. will worth
> having a look at this (threading issue?)

Did you say *32* ?

> --
> https://code.launchpad.net/~mvo/oneconf/mvo/+merge/31316
> You are the owner of lp:~mvo/oneconf/mvo.
>

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

> my dmy other machine is missing :/
hum, once you ran oneconf on it, we need to wait for desktopcouch to sync which can be… long. Also, some people are disconnected right now due to performance issue (they can tell you if you are part of that list on #ubuntuone). You can have a look at ~/.cache/desktop-couch/log/desktop-couch-replication.log to see the replication going on. (/!\ big file to open).

> Did you say *32* ?
ahah, I should have said 42 ;)
More seriously, 32 bits atom pityfull processor :-)

I'll be connected in an hour on IRC

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory '.bzr-builddeb'
2=== added file '.bzr-builddeb/default.conf'
3--- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000
4+++ .bzr-builddeb/default.conf 2010-07-29 19:02:40 +0000
5@@ -0,0 +1,2 @@
6+[BUILDDEB]
7+native = True
8
9=== modified file 'data/ui/u1inventorydialog.ui'
10--- data/ui/u1inventorydialog.ui 2010-07-07 13:51:58 +0000
11+++ data/ui/u1inventorydialog.ui 2010-07-29 19:02:40 +0000
12@@ -4,10 +4,12 @@
13 <!-- interface-naming-policy project-wide -->
14 <object class="GtkWindow" id="dialog_u1login">
15 <property name="title" translatable="yes">Inventory on Ubuntu On</property>
16+ <property name="window_position">center-on-parent</property>
17 <property name="destroy_with_parent">True</property>
18 <child>
19 <object class="GtkVBox" id="vbox1">
20 <property name="visible">True</property>
21+ <property name="spacing">2</property>
22 <child>
23 <placeholder/>
24 </child>
25@@ -175,6 +177,33 @@
26 <property name="position">1</property>
27 </packing>
28 </child>
29+ <child>
30+ <object class="GtkHButtonBox" id="hbuttonbox1">
31+ <property name="visible">True</property>
32+ <property name="layout_style">end</property>
33+ <child>
34+ <object class="GtkButton" id="button_close">
35+ <property name="label">gtk-close</property>
36+ <property name="visible">True</property>
37+ <property name="can_focus">True</property>
38+ <property name="receives_default">True</property>
39+ <property name="use_stock">True</property>
40+ <property name="image_position">bottom</property>
41+ <signal name="clicked" handler="on_button_close_clicked"/>
42+ </object>
43+ <packing>
44+ <property name="expand">False</property>
45+ <property name="fill">False</property>
46+ <property name="position">0</property>
47+ </packing>
48+ </child>
49+ </object>
50+ <packing>
51+ <property name="expand">False</property>
52+ <property name="pack_type">end</property>
53+ <property name="position">2</property>
54+ </packing>
55+ </child>
56 </object>
57 </child>
58 </object>
59
60=== modified file 'debian/control'
61--- debian/control 2010-07-29 15:08:16 +0000
62+++ debian/control 2010-07-29 19:02:40 +0000
63@@ -21,6 +21,7 @@
64 python-xapian,
65 python-dbus,
66 desktopcouch,
67+ python-desktopcouch,
68 python-oauth,
69 python-gobject,
70 python-apt,
71
72=== added file 'debian/dirs'
73--- debian/dirs 1970-01-01 00:00:00 +0000
74+++ debian/dirs 2010-07-29 19:02:40 +0000
75@@ -0,0 +1,1 @@
76+usr/share/update-notifier/plugins/cache-changed
77
78=== modified file 'debian/rules'
79--- debian/rules 2010-07-29 15:08:16 +0000
80+++ debian/rules 2010-07-29 19:02:40 +0000
81@@ -11,7 +11,7 @@
82 rm -r debian/oneconf/usr/share/oneconf/*.egg-info
83 # Move the scripts to $(SHARE) and relink some again later.
84 mv debian/oneconf/usr/*bin/* debian/oneconf/$(share)
85- rmdir debian/software-center/usr/*bin
86+ rmdir debian/software-center/usr/*bin || true
87
88
89 override_dh_install:
90@@ -19,6 +19,6 @@
91
92 dh_link $(share)/oneconf-query usr/bin/oneconf-query \
93 $(share)/oneconf/usc_plugin.py usr/share/software-center/plugins/oneconf_plugin.py \
94- $(share)/oneconf-update usr/share/update-notifier/plugins/cache-changed/
95+ $(share)/oneconf-update usr/share/update-notifier/plugins/cache-changed/oneconf-update
96
97 .PHONY: override_dh_auto_install
98
99=== modified file 'misc/com.ubuntu.OneConf.service'
100--- misc/com.ubuntu.OneConf.service 2010-06-01 10:15:01 +0000
101+++ misc/com.ubuntu.OneConf.service 2010-07-29 19:02:40 +0000
102@@ -1,3 +1,3 @@
103 [D-BUS Service]
104 Name=com.ubuntu.OneConf
105-Exec=/home/didrocks/work/oneconf/oneconf-trunk/oneconf-service
106+Exec=/usr/share/oneconf/oneconf-service
107
108=== modified file 'oneconf/hosts.py'
109--- oneconf/hosts.py 2010-07-21 11:14:32 +0000
110+++ oneconf/hosts.py 2010-07-29 19:02:40 +0000
111@@ -126,8 +126,8 @@
112 current = (hostid == self.hostid)
113 curr_host = self._hosts[hostid]
114 result[hostid] = (current, curr_host['hostname'],
115- curr_host['show_inventory'],
116- curr_host['show_others'])
117+ curr_host.get('show_inventory', False),
118+ curr_host.get('show_others', False))
119 return result
120
121 def set_show_inventory(self, show_inventory, others):
122
123=== modified file 'oneconf/usc_plugin.py'
124--- oneconf/usc_plugin.py 2010-07-29 15:42:48 +0000
125+++ oneconf/usc_plugin.py 2010-07-29 19:02:40 +0000
126@@ -30,7 +30,7 @@
127
128
129 # append directory to take oneconf module
130-sys.path.append(os.path.abspath(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))))
131+sys.path.append("/usr/share/oneconf")
132 from oneconf.dbusconnect import DbusConnect
133 from oneconf.uscplugin import u1inventorydialog, oneconfeventhandler, oneconfpane
134
135
136=== modified file 'oneconf/uscplugin/u1inventorydialog.py'
137--- oneconf/uscplugin/u1inventorydialog.py 2010-07-29 15:39:07 +0000
138+++ oneconf/uscplugin/u1inventorydialog.py 2010-07-29 19:02:40 +0000
139@@ -59,6 +59,9 @@
140 def show(self):
141 self.dialog_u1login.show()
142
143+ def on_button_close_clicked(self, button):
144+ self.dialog_u1login.hide()
145+
146 def refresh(self, logger=None):
147 """switched connected mode on/off"""
148 if not logger:
149@@ -69,7 +72,7 @@
150 self.label_u1_status.set_text(_("Signed in as %s") % logger.login)
151 self.button_manage_u1.set_label(_("Ubuntu One Settings…"))
152 self.button_manage_u1.connect("clicked", self.setting)
153- self.label_sync_u1_date.set_label(logger.last_sync)
154+ self.label_sync_u1_date.set_label(logger.last_sync or _("unknown"))
155 self.label_sync_u1_date.show()
156 else:
157 self.button_sign_in.show()
158
159=== modified file 'setup.py'
160--- setup.py 2010-07-29 15:08:16 +0000
161+++ setup.py 2010-07-29 19:02:40 +0000
162@@ -23,9 +23,6 @@
163 RELEASE='%s'
164 """ % (VERSION, CODENAME, DISTRO, RELEASE))
165
166-#should be replace by $USR
167-open("misc/version.py","w").write("""
168-
169 # real setup
170 setup(name="oneconf", version=VERSION,
171 scripts=["oneconf-query",
172@@ -36,7 +33,7 @@
173 'oneconf.uscplugin',
174 ],
175 data_files=[
176- ('share/oneconf/ui/',
177+ ('share/oneconf/data/ui/',
178 glob.glob("data/ui/*.ui")),
179 ('share/dbus-1/services/',
180 ["misc/com.ubuntu.OneConf.service"]),

Subscribers

People subscribed via source and target branches