I have started this work by exporting only the POTemplates attributes. It is mainly the table from +templates.
I added an „all_potemplates” attribute to each series (right now only distroseries, but productseries will follow), that will list all templates from that series
The sourcepackage component name is not included as this is something very specific to Ubuntu.
I think we can have a method on a distroseries to return a list of templates that are not in main.
I would like to include the translationtarget... but since it can be IProductSeries or ISourcePackage I don't know how to declare it in lazr.restful.
Maybe we should export the sourcepackage_name as a new IPOTemplate attribute.
------------------------
all_pofiles attribute is there as an idea of how we can link pofiles.
Most probably we can not export it in API, for now.
----------------------------
The IRosettaStats is not of much use for IPOTemplate and for API in general as most of it's methods are language dependent and ... well, they are methods and we can not export them as IPOTemplate or IPOFile attributes.
This is why I skiped the first step suggested by Danilo.
----------------------------
As a next step (a new bug / new branch) I think that I should try to implement the getPOFilesWithStatistics() method on a series, as suggested by Danilo.
When you have time, please take a look at this comment and the attached branch and let me know about your feedback.
I have started this work by exporting only the POTemplates attributes. It is mainly the table from +templates.
I added an „all_potemplates” attribute to each series (right now only distroseries, but productseries will follow), that will list all templates from that series
ie: https:/ /launchpad. dev/api/ beta/ubuntu/ hoary/all_ potemplates
The link to a potemplate, is similar to the normal web URL: /launchpad. dev/api/ beta/ubuntu/ hoary/+ source/ evolution/ +pots/evolution -2.2/
https:/
------- ------- ------- ------- ------- ------- ------- ------- ------- ---
These are the exported attributes: collection_ link: https:/ /launchpad. dev/api/ beta/ubuntu/ hoary/+ source/ evolution/ +pots/evolution -2.2/all_ pofiles in_languagepack s: True 908028+ 00:00 /launchpad. dev/api/ beta/~rosetta- admins 2.2.pot
active: True
all_pofiles_
description: None
exported_
format: PO format
id: 4
languages_count: 2
last_update: 2005-05-06 21:12:13.
messages_count: 22
name: evolution-2.2
owner_link: https:/
path: po/evolution-
priority: 100
translation_domain: evolution-2.2
------- ------- -------
The sourcepackage component name is not included as this is something very specific to Ubuntu.
I think we can have a method on a distroseries to return a list of templates that are not in main.
ie: https:/ /launchpad. dev/api/ beta/ubuntu/ hoary?ws. op=getNonMainTe mplates
------- ------- ------- -
I would like to include the translationtarg et... but since it can be IProductSeries or ISourcePackage I don't know how to declare it in lazr.restful.
Maybe we should export the sourcepackage_name as a new IPOTemplate attribute.
------- ------- ------- ---
all_pofiles attribute is there as an idea of how we can link pofiles.
Most probably we can not export it in API, for now.
------- ------- ------- -------
The IRosettaStats is not of much use for IPOTemplate and for API in general as most of it's methods are language dependent and ... well, they are methods and we can not export them as IPOTemplate or IPOFile attributes.
This is why I skiped the first step suggested by Danilo.
------- ------- ------- -------
As a next step (a new bug / new branch) I think that I should try to implement the getPOFilesWithS tatistics( ) method on a series, as suggested by Danilo.
When you have time, please take a look at this comment and the attached branch and let me know about your feedback.
Cheers