Re: [translate-pootle] Embed Pootle Stats

2011-08-15 Thread F Wolff

Op Do, 2011-08-11 om 09:37 + skryf Floris van den Hoeven:
> Hi Friedel,
> 
> I did the following:
> 
> In /root/Pootle-2.1.6/local_apps/pootle_app/views/index I edited URLS.PY 
> which now looks like:
> -=-=-=-=-
> urlpatterns = patterns('pootle_app.views.index',
> (r'^robots.txt$',  'robots.view'),
> (r'^about.html$',  'about.view'),
> (r'^stat_project.html$', 'stat_project.view'),
> (r'^stat_language.html$','stat_language.view'),
> (r'^stat_people.html$',  'stat_people.view'),
> (r'^/?$|^index.html$', 'index.view'),
> )
> -==-=-=-=-
> 
> In /root/Pootle-2.1.6/local_apps/pootle_app/templates/index I added the new 
> HTML files.
> 
> However, the page does not want to load.
> Am I storing the HTML files in the wrong folder?

If the above is everything you did, you are still missing the view
methods I mentioned earlier. It might be worth while to have a look at
the Django documentation for templates, views and URLs - that would
explain much better than I can.

If you put things in this url.py file, I'm guessing you will be
providing general server statistics instead of anything specific to a
language or project, right?

Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/virtaal-070-released


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Embed Pootle Stats

2011-08-11 Thread Floris van den Hoeven
Hi Friedel,

I did the following:

In /root/Pootle-2.1.6/local_apps/pootle_app/views/index I edited URLS.PY which 
now looks like:
-=-=-=-=-
urlpatterns = patterns('pootle_app.views.index',
(r'^robots.txt$',  'robots.view'),
(r'^about.html$',  'about.view'),
(r'^stat_project.html$', 'stat_project.view'),
(r'^stat_language.html$','stat_language.view'),
(r'^stat_people.html$',  'stat_people.view'),
(r'^/?$|^index.html$', 'index.view'),
)
-==-=-=-=-

In /root/Pootle-2.1.6/local_apps/pootle_app/templates/index I added the new 
HTML files.

However, the page does not want to load.
Am I storing the HTML files in the wrong folder?

Greetings,
Floris.


-Oorspronkelijk bericht-
Van: F Wolff [mailto:frie...@translate.org.za]
Verzonden: woensdag 10 augustus 2011 22:37
Aan: translate-pootle@lists.sourceforge.net
Onderwerp: Re: [translate-pootle] Embed Pootle Stats


Op Wo, 2011-08-10 om 09:50 + skryf Floris van den Hoeven:
>
>
> Hi,
>
> I checked the template folder and checked the HTML files.
> This would indeed be very easy to make such a html template.
> But how can I call for 1 of these templates externally?

You would have to add it in one of the urls.py files in the application
to specify which URL will be rendered by which view method. The view
method supplies the data to the template.

I hope that makes sense. Will you want to base this on Pootle 2.1 or the
current SVN trunk?

Friedel



--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/virtaal-070-released


--
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle
Carlson EMEA b.v. | Phone +31 (0)36 750 1781 | www.carlsonemea.com

[http://www.carlsonemea.com/webimages/ITEM_News.jpg][Latest CarlsonEMEA 
Corporate News]  <http://www.carlsonemea.com/index.php/eng/News/Corporate>
[http://www.carlsonemea.com/webimages/ITEM_Product.jpg] [Latest CarlsonEMEA 
Product News]  <http://www.carlsonemea.com/index.php/eng/News/Product>

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Embed Pootle Stats

2011-08-10 Thread F Wolff

Op Wo, 2011-08-10 om 09:50 + skryf Floris van den Hoeven:
> 
> 
> Hi,
> 
> I checked the template folder and checked the HTML files.
> This would indeed be very easy to make such a html template.
> But how can I call for 1 of these templates externally?

You would have to add it in one of the urls.py files in the application
to specify which URL will be rendered by which view method. The view
method supplies the data to the template.

I hope that makes sense. Will you want to base this on Pootle 2.1 or the
current SVN trunk?

Friedel



--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/virtaal-070-released


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Embed Pootle Stats

2011-08-10 Thread Floris van den Hoeven
Hi,

I checked the template folder and checked the HTML files.
This would indeed be very easy to make such a html template.
But how can I call for 1 of these templates externally?

Greetings,
Floris.



-Oorspronkelijk bericht-
Van: F Wolff [mailto:frie...@translate.org.za]
Verzonden: dinsdag 9 augustus 2011 18:45
Aan: translate-pootle@lists.sourceforge.net
Onderwerp: Re: [translate-pootle] Embed Pootle Stats


Op Do, 2011-08-04 om 12:11 + skryf Floris van den Hoeven:
> Hi All,
>
> Is there a way to embed the translation status on an external website?

Hi Floris

Are you referring to a "statistics widget"? It should be quite easy to
do: we just need to add a new template and expose it at some URL and
fill it with the right data. Should be quite doable if someone wants to
give it a try. Maybe just as important would then be to look into
where/how to expose this feature on Pootle itself or in our
documentation.

Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/virtaal-070-released


--
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle
Carlson EMEA b.v. | Phone +31 (0)36 750 1781 | www.carlsonemea.com

[http://www.carlsonemea.com/webimages/ITEM_News.jpg][Latest CarlsonEMEA 
Corporate News]  <http://www.carlsonemea.com/index.php/eng/News/Corporate>
[http://www.carlsonemea.com/webimages/ITEM_Product.jpg] [Latest CarlsonEMEA 
Product News]  <http://www.carlsonemea.com/index.php/eng/News/Product>

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Embed Pootle Stats

2011-08-09 Thread F Wolff

Op Do, 2011-08-04 om 12:11 + skryf Floris van den Hoeven:
> Hi All,
> 
> Is there a way to embed the translation status on an external website?

Hi Floris

Are you referring to a "statistics widget"? It should be quite easy to
do: we just need to add a new template and expose it at some URL and
fill it with the right data. Should be quite doable if someone wants to
give it a try. Maybe just as important would then be to look into
where/how to expose this feature on Pootle itself or in our
documentation.

Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/virtaal-070-released


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


[translate-pootle] Embed Pootle Stats

2011-08-04 Thread Floris van den Hoeven
Hi All,

Is there a way to embed the translation status on an external website?

Thank you in advance,
Greetings,
Floris.


Carlson EMEA b.v. | Phone +31 (0)36 750 1781 | www.carlsonemea.com

[http://www.carlsonemea.com/webimages/ITEM_News.jpg][Latest CarlsonEMEA 
Corporate News]  
[http://www.carlsonemea.com/webimages/ITEM_Product.jpg] [Latest CarlsonEMEA 
Product News]  
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle