I'ts working as it's supposed to, yes. I'm wondering though - would you be able to add an option only showing the active accounts and not the inactive ones?
I'd like an option showing something like
Or is this already possible via the template file?Code:firstname.lastname@example.org (MSN) - Disabled email@example.com (IRC) - Enabled firstname.lastname@example.org/ (XMPP) - Enabled username (Yahoo) - Enabled
(Btw - what did you do to make sure the example accounts didn't show as links?)
Last edited by achmonth; December 1st, 2010 at 03:32 PM.
New version attached, replace as before
I reused the options for buddy listing filtering:
As for the emails not linking I have no idea, I just pasted the text straight into code tagsCode:-o, --onlineonly Only show online buddies. If outputting account listings this option limits it to enabled only. -a, --availableonly Only show available buddies. If outputting account listings this option limits it to enabled only. -f, --offlineonly Only show offline buddies. If outputting account listings this option limits it to disabled only.
I also optimised the logic somewhat, no if the -L option is added it should be a lot faster as it wont go through all the buddy info grabbing process too
That did it
This is all what I dared hope for. I kneel down and kiss the ground before you.
Thanks once more
Updates as follows:
- Added an --accountlisting / -L option to switch from buddy listings to your own account listings with status and protocol. This supports the template option also, see help for more info.
Package changes can be seen here: https://launchpad.net/~conkyhardcore...source.changes
The apt packages should be available soon
All the script packages have now been copied into the Conky Companions PPA. Any package updates will be provided by the team through this new ppa. The ppa can be found here: https://launchpad.net/~conky-companions/+archive/ppa. To use this ppa first delete the old ppa files using this:
Then follow the modified first post instructions for the scriptsCode:sudo rm /etc/apt/sources.list.d/m-buck* && sudo rm /etc/apt/sources.list.d/conkyhardcore*
Script updates will only be published through this new ppa going forwards
Man, I have to say this XD You're a lifesaver, really.
Thanks for the great Plugin, are you still thinking about updating it? It seems to do everything someone could ask for already, just out of curiosity.
I was thinking, dunno if I can do it via template or using -W -A and stuff but... Can you order your contacts by the group they belong to?
I managed to sort via Status by adding -A v -W w -U x, but no groups (maybe some ifs on the template, but I don't know how yet)
I'm not good with Python (really should learn a bit of it), I started to actually use Linux only a few months ago, but I can try to be of some help to make the group sorting possible. Let me know if you have anything.
Thanks again =D
No sorting by groups is there, should be fairly straight forward to do...maybe change the --sortbylogactivity to a --sort="LOGACTIVITY" / --sort="NAME" / --sort="GROUP" with NAME being the default
I am not sure when I can find the time though....if I get bored over the long weekend I'll take a look...
I see, I took a look at the code, kind of got how it work... What adds the -s option is line 84, isn't it?
If it is, I noticed it redirects to line 371 that starts this:Code:self.parser.add_option("-s", "--sortbylogactivity", dest="sortbylogactivity", default=False, action="store_true", help=u"If used the list is sorted by most recent activity first, this is useful when limiting the list size with the limit option")
I'll see if I can get any further, I know some logic, but none Python coding XDCode:if self.options.sortbylogactivity == True: pidginDataList.sort(key=lambda obj: obj.activitydatetime,reverse=True) else: pidginDataList.sort() return pidginAccountDataList, pidginDataList
Take your time with the code, I'll let you know if I get anything.
Thanks for the quick reply =] See you o/