This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| List the Fedora packages I own by their status in Upstream Release Monitoring. | |
| Requires a few python modules:: | |
| $ sudo yum install python-fedora python-keyring python-vault | |
| If you couldn't get python-vault, that's because it's not in F17 yet. Try:: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import pprint | |
| import json | |
| import urllib | |
| BASE_URL = "https://apps.fedoraproject.org/packages/" + \ | |
| "fcomm_connector/xapian/query/search_packages/" | |
| query_params = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copy/paste the following into a term | |
| VENV=testing-moksha | |
| rmvirtualenv $VENV | |
| mkvirtualenv $VENV | |
| pip install mdemos.all | |
| # Grab some configs | |
| wget https://raw.github.com/ralphbean/mdemos.server/master/development.ini | |
| wget https://raw.github.com/ralphbean/mdemos.server/master/orbited.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def prepare(self): | |
| super(SubmissionForm, self).prepare() | |
| self.safe_modify('c') | |
| self.c.language_id = self.c.language_id(options=[ | |
| (lang.id, lang.name) | |
| for lang in DBSession.query(Assignment)\ | |
| .get(self.assignment_id.value).allowed_languages | |
| ]) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| ''' | |
| Created on 17.03.2012 | |
| Ported to tw2 on 25.05.2012 | |
| @author: moschlar | |
| ''' | |
| import tw2.core as twc | |
| import tw2.forms as twf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Here you can create samples of your widgets by providing default parameters, | |
| inserting them in a container widget, mixing them with other widgets, etc... | |
| These samples will appear in the WidgetBrowser | |
| See http://toscawidgets.org/documentation/WidgetBrowser for more information | |
| """ | |
| import tw2.core as twc | |
| from tw2.forms.samples import DemoChildren |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to take the output of commands and post them to a tmp web directory | |
| # for easy sharing. Requires python-ansi2html. | |
| # | |
| # Author: Ralph Bean <[email protected]> | |
| # License: GPLv3+ | |
| # Edit the following three variables to suit your needs | |
| WEB_USER=your_username | |
| WEB_HOST=your_site.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| ''' | |
| Created on 17.03.2012 | |
| @author: moschlar | |
| ''' | |
| import tw2.core as twc | |
| import tw2.forms as twf | |
| import tw2.sqla as twsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| ''' | |
| Created on 17.03.2012 | |
| @author: moschlar | |
| ''' | |
| import tw2.core as twc | |
| import tw2.forms as twf | |
| import tw2.sqla as twsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sauce.tests import TestController | |
| __all__ = ['TestSite'] | |
| class TestSite(TestController): | |
| sites = ['/', '/about', '/contact'] | |
| def _do_site(self, site): | |
| response = self.app.get(site) |