~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/stories/standalone/xx-potemplate-index.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    Afrikaans               22           ...         ...     — —
41
41
    Japanese                21           ...         ...     ...     Carlos...
42
42
    Sotho, Southern         22           ...         ...     — —
43
 
    Spanish                 15           1           1       ...     Valentina Commissari
 
43
    Spanish                 15           1           1       ...     Valent...
44
44
    Xhosa                   22           ...         ...     ...     —
45
45
    Zulu                    22           ...         ...     — —
46
46
 
117
117
A source package with five templates is created.
118
118
 
119
119
    >>> from zope.component import getUtility
120
 
    >>> from canonical.launchpad.interfaces.launchpad import ILaunchpadCelebrities
 
120
    >>> from canonical.launchpad.interfaces.launchpad import (
 
121
    ...     ILaunchpadCelebrities)
121
122
 
122
123
    >>> login('admin@canonical.com')
123
124
    >>> ubuntu = getUtility(ILaunchpadCelebrities).ubuntu
209
210
 
210
211
A product series with 7 templates is created.
211
212
 
212
 
    >>> from zope.component import getUtility
213
 
    >>> from canonical.launchpad.interfaces.launchpad import (
214
 
    ...     ILaunchpadCelebrities)
215
213
    >>> from lp.app.enums import ServiceUsage
216
214
    >>> login('admin@canonical.com')
217
215
    >>> product = factory.makeProduct(name="fusa",
281
279
 
282
280
    >>> user_browser.getLink('download').click()
283
281
    >>> print user_browser.url
284
 
    http://translations.launchpad.dev/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+export
 
282
    http://trans.../ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+export
285
283
 
286
 
Translation administrators will see both download and upload links. 
 
284
Translation administrators will see both download and upload links.
287
285
Beside administering this template, "Change permissions"
288
286
and "Change details" should be also accessible.
289
287
 
292
290
    ...     'ubuntu/hoary/+source/evolution/+pots/evolution-2.2')
293
291
    >>> admin_browser.getLink('upload').click()
294
292
    >>> print admin_browser.url
295
 
    http://translations.launchpad.dev/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+upload
 
293
    http://trans.../ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+upload
296
294
 
297
295
    >>> admin_browser.open(
298
296
    ...     'http://translations.launchpad.dev/'
299
297
    ...     'ubuntu/hoary/+source/evolution/+pots/evolution-2.2')
300
298
    >>> admin_browser.getLink('download').click()
301
299
    >>> print admin_browser.url
302
 
    http://translations.launchpad.dev/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+export
 
300
    http://trans.../ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+export
303
301
 
304
302
    >>> admin_browser.open(
305
303
    ...     'http://translations.launchpad.dev/'
306
304
    ...     'ubuntu/hoary/+source/evolution/+pots/evolution-2.2')
307
305
    >>> admin_browser.getLink('Administer this template').click()
308
306
    >>> print admin_browser.url
309
 
    http://translations.launchpad.dev/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+admin
 
307
    http://trans.../ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+admin
310
308
 
311
309
    >>> admin_browser.open(
312
310
    ...     'http://translations.launchpad.dev/'
313
311
    ...     'ubuntu/hoary/+source/evolution/+pots/evolution-2.2')
314
312
    >>> admin_browser.getLink('Change details').click()
315
313
    >>> print admin_browser.url
316
 
    http://translations.launchpad.dev/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+edit
317
 
 
318
 
    >>> admin_browser.open(
319
 
    ...     'http://translations.launchpad.dev/'
320
 
    ...     'ubuntu/hoary/+source/evolution/+pots/evolution-2.2')
321
 
    >>> admin_browser.getLink('Change permissions').click()
322
 
    >>> print admin_browser.url
323
 
    http://translations.launchpad.dev/ubuntu/+settings
 
314
    http://trans.../ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+edit
324
315
 
325
316