| |
@@ -35,7 +35,7 @@
|
| |
|
| |
session.commit()
|
| |
|
| |
- ############## Internationalizationteam
|
| |
+ # ############# Internationalizationteam
|
| |
hub = hubs.models.Hub(name='i18n', archived=True)
|
| |
session.add(hub)
|
| |
session.add(hubs.models.HubConfig(
|
| |
@@ -45,13 +45,14 @@
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='stats', index=0)
|
| |
hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='rules', index=1,
|
| |
- _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/I18N',
|
| |
- 'schedule_text': None,
|
| |
- 'schedule_link': None,
|
| |
- 'minutes_link': 'https://meetbot.fedoraproject.org/sresults/?group_id=i18n&type=team',
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='rules', index=1, _config=json.dumps({
|
| |
+ 'link': 'https://fedoraproject.org/wiki/I18N',
|
| |
+ 'schedule_text': None,
|
| |
+ 'schedule_link': None,
|
| |
+ 'minutes_link': 'https://meetbot.fedoraproject.org/sresults/'
|
| |
+ '?group_id=i18n&type=team',
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
widget = hubs.models.Widget(plugin='meetings', index=2,
|
| |
@@ -59,16 +60,25 @@
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
- widget = hubs.models.Widget(plugin='about', index=3,
|
| |
- _config=json.dumps({
|
| |
- "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(plugin='sticky', index=1, left=True,
|
| |
- _config=json.dumps({
|
| |
- 'text': "<p>The Fedora I18N project works on internationalization (i18n) to support the localization (l10n) of Fedora in many languages. Translation of Fedora software and documentation are handled by the Fedora L10N project.</p> <p>The goals of the Project are to:</p> <ul><li>Develop, package, and maintain applications like input methods for different languages</li> <li>Improve applications and utilities to support and process different languages</li> <li>Quality-assure that existing applications meet i18n standards</li> <li>Support the infrastructure of the Fedora Localization Project</li></ul>",
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='about', index=3, _config=json.dumps({
|
| |
+ "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
+ }))
|
| |
+ hub.widgets.append(widget)
|
| |
+
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
+ 'text': """
|
| |
+ <p>The Fedora I18N project works on internationalization (i18n) to support the
|
| |
+ localization (l10n) of Fedora in many languages. Translation of Fedora software
|
| |
+ and documentation are handled by the Fedora L10N project.</p> <p>The goals of
|
| |
+ the Project are to:</p> <ul><li>Develop, package, and maintain applications
|
| |
+ like input methods for different languages</li> <li>Improve applications and
|
| |
+ utilities to support and process different languages</li> <li>Quality-assure
|
| |
+ that existing applications meet i18n standards</li> <li>Support the
|
| |
+ infrastructure of the Fedora Localization Project</li></ul>
|
| |
+ """,
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='dummy', index=2, left=True)
|
| |
hub.widgets.append(widget)
|
| |
@@ -82,7 +92,7 @@
|
| |
|
| |
session.commit()
|
| |
|
| |
- ############## CommOps
|
| |
+ # ############# CommOps
|
| |
hub = hubs.models.Hub(name='commops')
|
| |
session.add(hub)
|
| |
session.add(hubs.models.HubConfig(
|
| |
@@ -92,17 +102,20 @@
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='stats', index=0)
|
| |
hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='rules', index=1,
|
| |
- _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/CommOps',
|
| |
- 'schedule_text': None,
|
| |
- 'schedule_link': None,
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/?group_id=commops&type=team',
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='rules', index=1, _config=json.dumps({
|
| |
+ 'link': 'https://fedoraproject.org/wiki/CommOps',
|
| |
+ 'schedule_text': None,
|
| |
+ 'schedule_link': None,
|
| |
+ 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
+ '?group_id=commops&type=team',
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(plugin='meetings', index=2,
|
| |
- _config=json.dumps({'calendar': 'commops', 'n_meetings': 4}))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='meetings', index=2, _config=json.dumps({
|
| |
+ 'calendar': 'commops', 'n_meetings': 4
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
@@ -112,10 +125,12 @@
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(plugin='sticky', index=1, left=True,
|
| |
- _config=json.dumps({
|
| |
- 'text': "Bringing more heat and light to Fedora, so you don't have to choose between 'building things' and 'building communities that build things.'",
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
+ 'text': "Bringing more heat and light to Fedora, so you don't have "
|
| |
+ "to choose between 'building things' and 'building "
|
| |
+ "communities that build things.'",
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='dummy', index=2, left=True)
|
| |
hub.widgets.append(widget)
|
| |
@@ -131,7 +146,7 @@
|
| |
|
| |
session.commit()
|
| |
|
| |
- ############## Marketing team
|
| |
+ # ############# Marketing team
|
| |
hub = hubs.models.Hub(name='marketing')
|
| |
session.add(hub)
|
| |
session.add(hubs.models.HubConfig(
|
| |
@@ -141,30 +156,41 @@
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='stats', index=0)
|
| |
hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='rules', index=1,
|
| |
- _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/Marketing',
|
| |
- 'schedule_text': None,
|
| |
- 'schedule_link': None,
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/?group_id=fedora-mktg&type=channel',
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='rules', index=1, _config=json.dumps({
|
| |
+ 'link': 'https://fedoraproject.org/wiki/Marketing',
|
| |
+ 'schedule_text': None,
|
| |
+ 'schedule_link': None,
|
| |
+ 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
+ '?group_id=fedora-mktg&type=channel',
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(plugin='meetings', index=2,
|
| |
- _config=json.dumps({'calendar': 'marketing', 'n_meetings': 4}))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='meetings', index=2, _config=json.dumps({
|
| |
+ 'calendar': 'marketing', 'n_meetings': 4
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
- widget = hubs.models.Widget(plugin='about', index=3,
|
| |
- _config=json.dumps({
|
| |
- "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(plugin='sticky', index=1, left=True,
|
| |
- _config=json.dumps({
|
| |
- 'text': "The Fedora Marketing Team develops and executes marketing strategies to promote the usage and support of Fedora worldwide. Through the development of processes and content, this project aims to support the efforts of other Fedora projects to spread Fedora and to provide a central repository of ideas and information that can be used to deliver Fedora to new audiences. We work closely with the Fedora Ambassadors who spread the word about Fedora at events and allow the Fedora Project to interact directly with its existing and prospective users. ",
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='about', index=3, _config=json.dumps({
|
| |
+ "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
+ }))
|
| |
+ hub.widgets.append(widget)
|
| |
+
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
+ 'text': """
|
| |
+ The Fedora Marketing Team develops and executes marketing strategies to promote
|
| |
+ the usage and support of Fedora worldwide. Through the development of processes
|
| |
+ and content, this project aims to support the efforts of other Fedora projects
|
| |
+ to spread Fedora and to provide a central repository of ideas and information
|
| |
+ that can be used to deliver Fedora to new audiences. We work closely with the
|
| |
+ Fedora Ambassadors who spread the word about Fedora at events and allow the
|
| |
+ Fedora Project to interact directly with its existing and prospective users.
|
| |
+ """,
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='dummy', index=2, left=True)
|
| |
hub.widgets.append(widget)
|
| |
@@ -181,7 +207,7 @@
|
| |
|
| |
session.commit()
|
| |
|
| |
- ############## Design team
|
| |
+ # ############# Design team
|
| |
hub = hubs.models.Hub(name='designteam')
|
| |
session.add(hub)
|
| |
session.add(hubs.models.HubConfig(
|
| |
@@ -191,30 +217,37 @@
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='stats', index=0)
|
| |
hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='rules', index=1,
|
| |
- _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/Design',
|
| |
- 'schedule_text': 'Meetings are every other Tuesday at 16:00 UTC',
|
| |
- 'schedule_link': 'https://apps.fedoraproject.org/calendar/design/',
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/?group_id=fedora-design&type=channel',
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='rules', index=1, _config=json.dumps({
|
| |
+ 'link': 'https://fedoraproject.org/wiki/Design',
|
| |
+ 'schedule_text': 'Meetings are every other Tuesday at 16:00 UTC',
|
| |
+ 'schedule_link': 'https://apps.fedoraproject.org/calendar/design/',
|
| |
+ 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
+ '?group_id=fedora-design&type=channel',
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(plugin='meetings', index=2,
|
| |
- _config=json.dumps({'calendar': 'design', 'n_meetings': 4}))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='meetings', index=2, _config=json.dumps({
|
| |
+ 'calendar': 'design', 'n_meetings': 4
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
- widget = hubs.models.Widget(plugin='about', index=3,
|
| |
- _config=json.dumps({
|
| |
- "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='about', index=3, _config=json.dumps({
|
| |
+ "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(plugin='sticky', index=1, left=True,
|
| |
- _config=json.dumps({
|
| |
- 'text': "The Design Team is the design group of the Fedora project. Our interests are not only in creating graphics for use by the Fedora community, but also in advocating the use of the creative tools that are a part of Fedora.",
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
+ 'text': """
|
| |
+ The Design Team is the design group of the Fedora project. Our interests are
|
| |
+ not only in creating graphics for use by the Fedora community, but also in
|
| |
+ advocating the use of the creative tools that are a part of Fedora.
|
| |
+ """,
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='dummy', index=2, left=True)
|
| |
hub.widgets.append(widget)
|
| |
@@ -232,7 +265,7 @@
|
| |
session.commit()
|
| |
|
| |
|
| |
- ############## Infra team
|
| |
+ # ############# Infra team
|
| |
hub = hubs.models.Hub(name='infrastructure')
|
| |
session.add(hub)
|
| |
session.add(hubs.models.HubConfig(
|
| |
@@ -242,30 +275,39 @@
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='stats', index=0)
|
| |
hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='rules', index=1,
|
| |
- _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/Infrastructure',
|
| |
- 'schedule_text': 'We meet weekly in #fedora-meeting at 18:00 UTC',
|
| |
- 'schedule_link': 'https://apps.fedoraproject.org/calendar/infrastructure/',
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/?group_id=infrastructure&type=team',
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='rules', index=1, _config=json.dumps({
|
| |
+ 'link': 'https://fedoraproject.org/wiki/Infrastructure',
|
| |
+ 'schedule_text': 'We meet weekly in #fedora-meeting at 18:00 UTC',
|
| |
+ 'schedule_link':
|
| |
+ 'https://apps.fedoraproject.org/calendar/infrastructure/',
|
| |
+ 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
+ '?group_id=infrastructure&type=team',
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(plugin='meetings', index=2,
|
| |
- _config=json.dumps({'calendar': 'infrastructure', 'n_meetings': 4}))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='meetings', index=2, _config=json.dumps({
|
| |
+ 'calendar': 'infrastructure', 'n_meetings': 4
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
- widget = hubs.models.Widget(plugin='about', index=3,
|
| |
- _config=json.dumps({
|
| |
- "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(plugin='sticky', index=2, left=True,
|
| |
- _config=json.dumps({
|
| |
- 'text': "The Infrastructure Team consists of dedicated volunteers and professionals managing the servers, building the tools and utilities, and creating new applications to make Fedora development a smoother process. We're located all over the globe and communicate primarily by IRC and e-mail. ",
|
| |
- }))
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='about', index=3, _config=json.dumps({
|
| |
+ "text": "I'm a Fedora user, and this is my about widget text!",
|
| |
+ }))
|
| |
+ hub.widgets.append(widget)
|
| |
+
|
| |
+ widget = hubs.models.Widget(
|
| |
+ plugin='sticky', index=2, left=True, _config=json.dumps({
|
| |
+ 'text': """
|
| |
+ The Infrastructure Team consists of dedicated volunteers and professionals
|
| |
+ managing the servers, building the tools and utilities, and creating new
|
| |
+ applications to make Fedora development a smoother process. We're located all
|
| |
+ over the globe and communicate primarily by IRC and e-mail.
|
| |
+ """,
|
| |
+ }))
|
| |
hub.widgets.append(widget)
|
| |
widget = hubs.models.Widget(plugin='dummy', index=3, left=True)
|
| |
hub.widgets.append(widget)
|
| |
This commit fixes all Flake8 errors and enables the "lint" test in tox (that just runs flake8).
It should be mostly harmless (whitespaces and unused imports), no code change except some imports reorders, but I've checked them and they should not cause problems.
All unit tests still pass, the app seems to run properly.