| |
@@ -6,29 +6,36 @@
|
| |
def required(session, value):
|
| |
return bool(value)
|
| |
|
| |
+
|
| |
def text(session, value):
|
| |
return kitchen.text.converters.to_unicode(value)
|
| |
|
| |
+
|
| |
def integer(session, value):
|
| |
return int(value)
|
| |
|
| |
+
|
| |
def link(session, value):
|
| |
# TODO -- verify that this is actually a link
|
| |
return value
|
| |
|
| |
+
|
| |
def username(session, value):
|
| |
openid = 'http://%s.id.fedoraproject.org/' % value
|
| |
return not hubs.models.User.by_openid(session, openid) is None
|
| |
|
| |
+
|
| |
def github_organization(session, value):
|
| |
# TODO -- implement this.
|
| |
return True
|
| |
|
| |
+
|
| |
def fmn_context(session, value):
|
| |
# TODO get this from the fedmsg config.
|
| |
return value in [
|
| |
'irc', 'email', 'android', 'desktop', 'hubs',
|
| |
]
|
| |
|
| |
+
|
| |
def pagure_repo(session, value):
|
| |
return value
|
| |