Allura/allura/lib/widgets/forms.py
def to_python(self, value, state=None, check_allowed=True, neighborhood=None):
        """
        Validate a project shortname.

        If check_allowed is False, the shortname will only be checked for
        correctness.  Otherwise, it will be rejected if already in use or
        otherwise disallowed.
        """
        if neighborhood is None:
            neighborhood = M.Neighborhood.query.get(
                name=state.full_dict['neighborhood'])
        value = h.really_unicode(value or '').encode('utf-8').lower()
        self._validate_shortname(value, neighborhood, state)
        if check_allowed:
            self._validate_allowed(value, neighborhood, state)
        return value

        Validate a project shortname.

        If check_allowed is False, the shortname will only be checked for
        correctness.  Otherwise, it will be rejected if already in use or
        otherwise disallowed.
        
Validate a project shortname.
If check_allowed is False, the shortname will only be checked for
correctness.  Otherwise, it will be rejected if already in use or
otherwise disallowed.
Validate a project shortname . If check_allowed is False the shortname will only be checked for correctness . Otherwise it will be rejected if already in use or otherwise disallowed .
def to_python(self, value, state=None, check_allowed=True, neighborhood=None):
        if neighborhood is None:
            neighborhood = M.Neighborhood.query.get(
                name=state.full_dict['neighborhood'])
        value = h.really_unicode(value or '').encode('utf-8').lower()
        self._validate_shortname(value, neighborhood, state)
        if check_allowed:
            self._validate_allowed(value, neighborhood, state)
        return value
def to_python ( self , value , state = None , check_allowed = True , neighborhood = None ) : if neighborhood is None : neighborhood = M . Neighborhood . query . get ( name = state . full_dict [ 'neighborhood' ] ) value = h . really_unicode ( value or '' ) . encode ( 'utf-8' ) . lower ( ) self . _validate_shortname ( value , neighborhood , state ) if check_allowed : self . _validate_allowed ( value , neighborhood , state ) return value
Validate a project shortname.
Validate a project shortname .
"""
        Validate a project shortname.

        If check_allowed is False, the shortname will only be checked for
        correctness.  Otherwise, it will be rejected if already in use or
        otherwise disallowed.
        """
self
value
state
check_allowed
neighborhood