Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/forms.py   synnefo(Download)
    def clean_limit_on_members_number(self):
        value = self.cleaned_data.get('limit_on_members_number')
        if value is None:
            return units.PRACTICALLY_INFINITE
        return value
            data['max_members'] = data.get('limit_on_members_number')
        else:
            data['max_members'] = units.PRACTICALLY_INFINITE
 
        data['request_user'] = self.user

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/register.py   synnefo(Download)
    except Resource.DoesNotExist:
        r = Resource(name=name,
                     uplimit=units.PRACTICALLY_INFINITE,
                     project_default=units.PRACTICALLY_INFINITE,
                     service_type=service_type,

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/templatetags/filters.py   synnefo(Download)
def inf_display(value):
    if value == units.PRACTICALLY_INFINITE:
        return 'Infinite'
    return value
 

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/api/projects.py   synnefo(Download)
        max_members = _parse_max_members(app_data["max_members"])
    except KeyError:
        max_members = units.PRACTICALLY_INFINITE
 
    private = bool(_get_maybe_boolean(app_data, "private"))