/srv/irclogs.ubuntu.com/2012/01/05/#ayatana.txt

=== jono is now known as Guest45463
=== agateau_ is now known as agateau
=== jibel_ is now known as jibel
=== DrPepperKid is now known as MacSlow|lunch
=== om26er_ is now known as om26er
=== MacSlow|lunch is now known as MacSlow
didrocksmhall119: hey, are you around?15:49
didrocksdavidcalle: if you want I can look at the scope packaging as I've packaged the other lenses15:50
davidcalleHey didrocks. Thank you. I'd like to because I'm not sure of the quality of the packaged ones.15:52
didrocksthey are all python, aren't they?15:53
davidcalleyes15:54
davidcalleCould you have a look at this one, for example? https://code.launchpad.net/~davidc3/onehundredscopes/dribbble It's packaged, it works, but I'd like to have your insight on the packaging.15:55
didrockslooking :)15:55
mhall119didrocks: I am15:55
davidcalledidrocks, ty :)15:55
mhall119didrocks: do you know how scopes are identified as add-ons for a lens in USC?15:56
didrocksmhall119: are they? right now, you just have lenses which are shown as plugin, do we have scopes already?15:57
didrocksdavidcalle: so, some comments:15:57
didrocksdavidcalle: debian/control: why all those build-deps? seems you just need debhelper and python, isn't it?15:58
didrocks(even not python-all)15:58
didrocksdavidcalle: also, if you wait autodetection of build-deps, you need to add gir1.2-unity-4.0, and gir1.2-dee-0.5, as well as python-lxml15:58
didrocksdavidcalle: then, in debian/rules, replace: dh $@ by dh $@ --with python215:59
didrocksand normally ${python:Depends} will be expanded with the right depends15:59
davidcalledidrocks, ok. ( The original packaging is kenvandine's one, for the AskUbuntu lens. I've mostly copied and pasted. )15:59
didrocksdavidcalle: no worry ;)16:00
mhall119didrocks: I was told they were...16:00
didrocksalso, the short description shouldn't be the same than the long one16:00
mhall119didrocks: either way, who should I talk to about how they are/should be?16:00
didrocksmhall119: mpt on #software-center16:00
davidcalledidrocks, I blame my lack of inspiration for this one ;)16:00
mhall119thanks16:00
didrocksmhall119: also, mention the scope to him, I think he just think about lens for the new category16:01
mhall119will do16:01
didrocksdavidcalle: heh, it just has to be fixed when we start to push them to precise16:01
didrocksdavidcalle: last thing, on the copyright file16:01
didrocksdavidcalle: we try to move to a parsable format16:01
didrocksdavidcalle: you can find the spec here: http://dep.debian.net/deps/dep5/16:02
davidcalledidrocks, mhall119 in the updated specs : lenses are in the Dash search plugins sub-category, scopes are not displayed but are listed as suggested plug-ins in the package view.16:02
mptmhall119, https://wiki.ubuntu.com/SoftwareCenter#lenses16:02
didrocksand about the scope detection? It should be detected as a plug in of the right lens16:03
mhall119mpt: davidcalle: right, it says they are listed as add-ons, but doesn't specify how USC knows that what lens they are an add-on for16:03
davidcalledidrocks, thanks, looking at it.16:04
didrocksdavidcalle: apart from that, it looks good :)16:04
davidcalledidrocks, great :) On my way to fix packaged lenses and scopes.16:05
didrocksdavidcalle: excellent, keep me in touch if you need anything :)16:05
davidcalleI will.16:06
mhall119didrocks: I've been browsing the quickly packaging code, and wow it does a lot of maintenance16:06
didrocksmhall119: so, I looked at singlet on my side, and yeah, this can be definitively be integrated16:06
mhall119didrocks: cool, in what way were you thinking?16:06
didrocksalso, having some commands like "create" "package", "release"16:06
didrocksmhall119: yeah, I have some questions though, you are installing the actual code lens in /usr/lib/singlet, isn't it?16:07
didrockslens code*16:07
mhall119didrocks: that's the default, yes16:07
mhall119only because I copied from davidcalle's code which installed them to /usr/lib/ohscopes/16:07
didrocksthat's not very LSB :)16:07
mhall119where would be a better location?16:07
didrocksdavidcalle: you are doing that? :)16:07
didrocksyeah, it depends what this code is16:08
didrocksare there common code between all lenses/scopes?16:08
mhall119didrocks: his instructions did, not sure about his packages16:08
mhall119didrocks: not yet, other than dbus and gir16:08
mhall119singlet may become a common foundation for python lenses/scopes16:08
davidcalledidrocks, I've followed what's done with default lenses, the daemon is in : /usr/lib/unity-lens*16:08
didrocksok, so it should be in /usr/share/lens_name then16:08
davidcalledidrocks, ok16:08
didrocksdavidcalle: indeed, but they are not python! :)16:08
didrocksthat's interesting thinking about it16:09
didrocksas it's a service16:09
didrocksbut not a library service16:09
didrocksI need to think about it :)16:09
mhall119didrocks: executables in /usr/share?16:09
didrocksmhall119: sure, we have a lot of them :)16:09
didrockssotware-center, oneconf… :p16:10
mhall119ok16:10
mhall119can  they live in /usr/share/unity/lenses/ with the .lens files?16:10
didrocksbut as a service, I need to think about it16:10
didrockshum, I'm not fan of making this directory crowded16:10
didrocksone sec, looking at something16:10
didrocksbbiab16:10
mhall119they'd each have their own subdirectory16:10
mhall119/usr/share/unity/lenses/dictionary/(dictionary.lens, dictionary.svg, dictionary-lens)16:11
davidcallemhall119, what about scopes?16:11
mhall119right now the .lens and .svg already go there16:11
mhall119davidcalle: good question, they currently go in the lens' directory in /usr/share/unity/lenses/ right?16:11
mhall119make we should use /usr/share/unity/lenses/<lens>/scopes/<scope>/ ?16:12
mhall119didrocks: mpt: ^^ thoughts?16:13
davidcallemhall119, I'd like that. But maybe we shouldn't complicate Unity's parsing of these folders.16:13
didrocksmhall119: can you make a tree (in a pastebin) of what is produced by singlet?16:13
mhall119would it complicate things?16:13
didrocksthere is not just one file, isn't it?16:13
mhall119didrocks: there are 2, a unity .lens file, and a dbus .service file16:14
mhall119the source code file also acts as the daemon executable16:14
didrockshum, so the helpers you wrote aren't necessary?16:14
didrocks(as you created some subfolders)16:14
mhall119which helpers are you talking about?16:14
mhall119the 'make' and 'install' commands?16:15
didrockswhat's in http://bazaar.launchpad.net/~singlet-developers/singlet/trunk/files/head:/src/singlet/16:15
mhall119the ./lens/ folder has the base class and metaclass for a Lens object16:16
didrocksyeah, and that's what can't go into /usr/lib :)16:16
mhall119the ./scope/ folder doesn't have anything useful yet, that's what I plan on adding next16:16
mhall119yeah, singlet will be a separate package, installed to wherever python libs go16:16
didrocksok, like quickly-widget in some way16:17
mhall119/usr/share/pyshared or /usr/lib/python2.?/dist-packages16:17
didrocksindeed16:17
mhall119I guess (not familiar with quickly much)16:17
didrocks(well, symlinked in fact)16:17
didrocksok, we are on the same page then :)16:17
didrocksand the daemon alone can go in /usr/lib/ then16:17
mhall119ok16:18
mhall119davidcalle: 16:16 < kiwinote> mhall119: didrocks: I think the cleanest way to make an addon show up in  s-c is for the scope to list the lens in the 'Enhances' field16:18
mhall119in debian/control16:19
didrocksso yeah, adds the field to the scope package ^16:19
davidcallemhall119, excellent16:19
didrocksmhall119: ok, so I'll look closely to singlet and try to integrate it as a quickly template if you don't mind16:19
mhall119didrocks: won't mind at all, I can provide a code file template too if you need me to16:20
didrocksmhall119: that would be awesome! look at the ubuntu-application template (there are some string that we autoreplace)16:20
didrocksor the ubuntu-cli one!16:20
didrocks(in the data/ directory)16:20
didrocksmhall119: I can't commit doing it next week as we have our platform rally in budapest, but the week after, we can do that together quite "quickly" ;)16:21
mhall119didrocks: sure thing, I'll send you something later today16:21
mhall119didrocks: ok16:21
didrocksexcellent! :-)16:21
didrocksso, basically:16:21
didrockssinglet factored as a common library between scope/lenses16:22
didrocks(will be installed as a python library in /usr/share/pyshared)16:22
mhall119yup, serving as an abstraction layer for DBus GObject16:22
didrocksthe code template moving apart, as a quickly template16:22
didrocks(which will dep on singlet)16:22
didrocksand install the .lens, .service files16:23
didrockssounds quite achievable :)16:23
mhall119cool16:25
mhall119didrocks: with singlet, there are going to be several choices of base Lens class to use, depending on what you want, how would that work with a quickly template?16:38
didrocksmhall119: hum, can you expand your idea a little bit ?16:38
didrockswith examples :)16:39
mhall119didrocks: so right now I have Lens, which is pretty basic, and SingleScopeLens which has only one scope that is defined within the lens code itself16:39
mhall119in the future there will be others16:40
didrockswhat the difference between Lens and SingleScopeLens, Lens can accept multiple scopes?16:40
didrocksmhall119: for me that can be different template16:40
mhall119yes, and by default it has none, and isn't connected to DBus events to handle searches or handle URIs16:40
didrocksas they can share all the packaging code (well "inherit") rather16:40
mhall119ok16:40
didrocksI think SingleScopeLens will be the most used16:41
mhall119probably16:42
mhall119a hidden (no icon in dash) lens base will probably also be used16:42
didrockshum, that's just a parameter16:42
didrockswe can use quickly for that16:43
didrocksthere is quickly configure16:43
didrocksand we can tell "no icon please"16:43
mhall119does quickly configure change the code?16:43
didrocksit can do what we need16:43
mhall119I can probably add a hidden=True to the Len's Meta innerclass16:43
didrocksyeah, that was my pick :)16:43
didrockslet's try to not create 1 billion templates when changes are minor :)16:44
mhall119ok16:44
=== jono_ is now known as jono
=== yofel_ is now known as yofel
james_whi, does a scope depend on the lens that it is for?18:47
mhall119kiwinote: ^^ can you clarify for james?18:49
mhall119he's curious about dependencies being disallowed by policy in the extras repo18:49
mhall119from my understanding of our prior conversation, Depends isn't strictly necessary, only Enhances18:51
mhall119but also that a scope depending on a lens will be allowed as an exception to the policy18:51
mhall119mpt: ^^18:53
kiwinotemhall119: to show up as an addon in software-center you only need the scope to list the lens in the enhances field19:19
kenvandineoh, never heard of the enhances field19:20
kiwinotemhall119: whether you want a dependency too is a more general packagin question which I can't really help you with as I don't know much about lenses and scopes and their interactions19:20
kenvandinenice :)19:20
mhall119james_w: ^^ make sense to you?20:06
james_wmhall119, I guess20:35
james_wit's still not clear whether scopes are supposed to depend on the lenses, or whether that's just up to each scope20:36
mhall119james_w: scopes don't *need* to depend on a lens.  A scope *may* depend on a lens if the developers wants to, and we have an exception to the extras policy to allow that21:14
james_wwhere's that exception documented?21:14
james_wmhall119, ^21:15
mhall119james_w: I've just heard it, I'm not sure if it's been documented somewhere yet, or even where it would be21:15
james_wok21:15
mhall119jcastro: do you  know where the official extras acceptance policy is documented?21:19
jcastrono clue21:40
jcastrohttps://wiki.ubuntu.com/ExtensionRepositoryPolicy21:41
jcastromaybe?21:41
AlanBellhi mhall11921:49
mhall119I guess I could have just checked, huh AlanBell ?21:49
AlanBellI have put together a little lens that connects to an OpenERP server and searches for stuff21:49
mhall119I think a desktop-wide credentials store would be ideal21:49
AlanBellnice little thing, very fast, but I need a way for the user to be able to specify the URL to their server and put in their password21:50
AlanBellI also want to do a lens that searches the vTiger CRM system, and various other internal business systems that will require a username and password21:50
AlanBellI can see it doing an RT issue tracker lens or a bugzilla lens or whatever21:51
AlanBelllots of useful lenses that need a bit of config and authentication and I don't know the right way to present that to the user21:52
mhall119james_w: are you writing a lens?21:54
mhall119statik: how did your singlet testing go?21:54
statikmhall119: really good!21:55
statiki got a working lens21:55
mhall119statik: awesome, can I get a short description, screenshot and link to the code?  I'm working on a blog post21:57
mhall119statik: btw, we're going to use singlet to make a Quickly template for lens creating and packaging21:57
statikmhall119: no, it was a lens for accessing some internal systems. i'd like to do a launchpad one inspired by pad.lv, and when I get that working I'll definitely share it with you.21:58
james_wmhall119, no, we have a query from a developer who wants to submit a scope + lens to software-center, and thinks they can't because of the policy21:58
mhall119statik: ok21:58
mhall119statik: btw, I think doctormon was going to be working on a launchpad lens too, you might want to see if he's gotten started yet21:59
mhall119james_w: ok21:59
mhall119james_w: can you tell me who the developer is, so I can see about featuring his lens too?22:00
james_wmhall119, I don't know who it is at this point22:02
james_wI can let you know when it is submitted though22:02
mhall119thanks james_w22:53
mhall119we need a new message-indicator like container for things like tasks/notes/snippets23:01
mhall119jcastro: ^^ who should I talk to about that?23:02
mhall119between tomboy, gtg and glipper, I have at least 2 more indicator icons than is necessary23:03

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!