kdereview: bodega

hi :)

(x-posting between core-devel and -devel as this is (hopefully) of general
interest and because we also are supposed to announce new kdereview modules.)

So ... what is this "Bodega" thing I speak of?

Bodega is a way to publish and get at content. That could be books,
wallpapers, applications, ... pretty much anything digital. It uses the
"wharehouse" or "store" paradigm: catalogs of items that can be browsed or
searched and then downloaded.

The three attributes that make Bodega well suited to the needs of projects
such as Plasma Active, or any other KDE application for that matter, include:

* it is Free software :)
* it is not limited to (or even focused on) software, but any digital asset.
* it is built to be shared and used in a decentralized manner.

Key features include:

* can host multiple arrangements of the same data; each "arrangement" is a
filtering and categorization of content on the server using tags, and we call
these "stores". stores are "owned" by one or more people that have the ability
to manage them. this means that if it were used by KDE, each project could
have its own set of content and manage how it is arranged while having just
one instance of Bodega around. example: Kate could have a "Kate Bodega" with
categories for scripts, syntax files, etc. There could be categories for
content which has been reviewed by the Kate project for quality, content from
the Kate project itself, etc. The Kate team would have the ability to adjust
how the store is put together at any time they choose.

* assets are managed using tags. This means that one asset may appear in
multiple stores, can be filtered based on things from category to content type
to application version to .. well .. whatever :)

* can be used to advertise and deliver data from external collections (we do
this already for project gutenberg)

* supports purchases using a points-based system much like popular video game
systems do. It can process purchases made with credit cards, but points can
also be given out or earned through other means. Pricing is not a requirement,

* extensible: there's lots of room for growth

* a beautiful and easy to use client that integrates nicely with KDE's Plasma
workspaces :)

* the possibility of making more clients (an HTML front end is currently being
looked into)

* the client can be extended to handle installation of any sort of content; it
currently supports application packages via packagekit, Plasma packages, e-
books and wallpapers.

The server side is written using node.js (pgsql for a db; redis for session
handling) and does everything using a rather straight-forward JSON API.

On the client-side we have a C++ library and a QML application. This has
already been shipped as part of Plasma Active 3 and people are, indeed, using
it. :)

If/how it can be used ouside of Plasma Active is something we've only started
looking at with the help of others in the community.

Now that we've hit the first release, we're already plugging onward with a
rather full TODO list: <a href="" title=""></a> ...

If you are interested, please check out the repositories which are now in
kdereview: kde:bodega-client and kde:bodega-server and/or ask questions which
I'll do my best to answer


Re: kdereview: bodega

By Albert Astals Cid at 11/03/2012 - 08:49

El Dimecres, 24 d'octubre de 2012, a les 22:07:10, Aaron J. Seigo va escriure:
Won't have time to give it a use test, but some things grep and friends told

** bodega-client **

i18n is messed up
* the primavera/ folder has i18n but no
* the ./activeclient/src/ extracts to a catalog named active-
addons that doesn't seem to be used
* You have a ki18n(""), not sure what you expect people to translate there

Both primavera and activeclient have this option
options.add("opengl", ki18n("use a QGLWidget for the viewport"));
options.add("opengl", ki18n("use a QGLWidget for the viewport"));
which to be honest not sure the value they have to the end user

There's a few foreach missing const &

The foreach loop in qScriptValueFromTags is unnecessary slow (doing keys +
values) (it's ok if the length of tags is never high)

** bodega-server **

assetimporters/projectgutenberg/src/lcc.cpp has no copyright in the header

assetimporters/projectgutenberg/src/lcc.cpp has QObject::tr calls, what's the
deal with those, are you expecting a translation? If so you'll need a, if not, do we need them?

There's a few foreach missing const &


Re: kdereview: bodega

By Ben Cooksley at 01/02/2013 - 16:59

On Sun, Nov 4, 2012 at 1:49 AM, Albert Astals Cid < ... at kde dot org> wrote:
Hi Aaron,

What is the status of the review of bodega-client and bodega-server?
It seems that the 2 weeks review period has since passed, but there
are unresolved review problems. Can you please take a look?


Re: kdereview: bodega

By Josef Spillner at 10/24/2012 - 20:10

Hello Aaron,

:: Aaron J. Seigo Mittwoch 24 Oktober 2012
I'd like to encourage you to go further and drop the restriction to "digital"
assets eventually. Many people use their computer to buy or share real stuff
online. There are increasingly attempts to make this possible via free
infrastructure (e.g. <a href="" title=""></a>), all with their own
user interfaces, but also with programmatic interfaces waiting to be connected
to desktops.

It should be easily possible to define asset content models and delivery
options to cover this diversity in a multi-market frontend. While for most
digital assets the delivery option may be "download" or "subscribe", for
services like cloud storage it may be "create an account" (or "replicate at my
own infrastructure" for the better ones), and for products like used bikes it
may be "send it over to me". All of these delivery options would be associated
with a webpage to proceed in the most simple case, and there would be
corresponding wizards to add new offers which stay under the user's control
and are merely propagated to any selected market.

No desktop is currently able to capture this multiplicity, but it seems
worthwhile to try.


Re: kdereview: bodega

By Aaron J. Seigo at 10/25/2012 - 04:46

On Wednesday, October 24, 2012 21:10:58 Josef Spillner wrote:
let's divide this into 2 pieces: services and physical goods.

services: we already can support those, and will hopefully see our first
services appear in Plasma Active 4 with the work being done to bring good
ownCloud sync integration to PA. most of the work has been done thanks to
Klaas' pretty snazzy "mirall", and Sebas has been adding the necessary UI
bits. the plan is to offer services via Bodega that install the relevant sync
bits that are missing, including account configuration.

we're also starting to look into other types of services, such as
subscriptions (though they usually result in access to digital assets, we'll
ignore that detail for now ;). again, both free-as-in-beer subscriptions as
well as for-a-fee.

so services: check :)

for physical items .. that is indeed something we haven't yet considered. but
you're right .. there's no particular reason it couldn't be done. it would
mean adding inventory and a shipping infrastructure to the system, two things
non-tangible assets don't have to deal with. i think this is out of scope for
now, as we have a number of things already on the roadmap to finish out .. but
i won't exclude it as an idea for the future.

thanks for challenging our vision by pushing it further :)

Re: kdereview: bodega

By =?UTF-8?Q?Nicol... at 10/25/2012 - 00:12

2012/10/24, Josef Spillner < ... at kde dot org>:
I see what you mean, and indeed that's an interesting use case that
could use a common solution. But I'm not sure if Bodega is the right
place to do it. It might be stretching its scope/goals too much.

Re: kdereview: bodega

By Steven Sroka at 10/24/2012 - 20:41

I love you guys. I love the idea of Bogeda. Thanks for making KDE so awesome!

Steven Sroka

Re: kdereview: bodega

By Andras Mantia at 10/24/2012 - 16:19


I hope you are aware about the meaning of the name in certain countries. :)
In Spain it is winery, while in Romania and probably some parts of Hungary
it is the name of the cheap drinking places especially in little villages
where people go for only one thing: to drink alchool (mostly hard ones).
So here it has a negative connotation.


Re: kdereview: bodega

By Alexander Dymo at 10/24/2012 - 19:11

Wed, 24 Oct 2012 23:19:57 +0300 you wrote Andras Mantia < ... at kde dot org>:
Interestingly, in Russian it reminds me of "bodyaga" which means diluted liquid that gets sold as if it is a pure one. Simply put, its alcohol diluted with water :)

Re: Re: kdereview: bodega

By Alex Fiestas at 10/24/2012 - 17:48

On Wednesday 24 October 2012 23:19:57 Andras Mantia wrote:
I don't see the negative connotation on drinking hard alcohols... But i'm
weird :p

Re: kdereview: bodega

By Andras Mantia at 10/25/2012 - 02:53

On Wednesday, October 24, 2012 11:48:08 PM Alex Fiestas wrote:
When you see the type of guys going in such places you will understand. :)


Re: kdereview: bodega

By Antonis Tsiapaliokas at 10/24/2012 - 19:06

Bring back the kde-devel ML.

Please next time keep the cc


Re: kdereview: bodega

By Anders Lund at 10/24/2012 - 16:21

On Onsdag den 24. oktober 2012 23:19:57 Andras Mantia wrote:
Same here in Denmark