stashboard/models.py
def load_defaults(cls):
        """
        Install the default statuses. xI am not sure where these should live just yet
        """
        if not cls.get_by_slug("down"):
            d = cls(name="Down", slug="down",
                    image="icons/fugue/cross-circle.png",
                    description="The service is currently down")
            d.put()

        if not cls.get_by_slug("up"):
            u = cls(name="Up", slug="up", default=True,
                    image="icons/fugue/tick-circle.png",
                    description="The service is up")
            u.put()

        if not cls.get_by_slug("warning"):
            w = cls(name="Warning", slug="warning",
                    image="icons/fugue/exclamation.png",
                    description="The service is experiencing intermittent problems")
            w.put()

        Install the default statuses. xI am not sure where these should live just yet
        
Install the default statuses. xI am not sure where these should live just yet
Install the default statuses . xI am not sure where these should live just yet
def load_defaults(cls):
        if not cls.get_by_slug("down"):
            d = cls(name="Down", slug="down",
                    image="icons/fugue/cross-circle.png",
                    description="The service is currently down")
            d.put()
        if not cls.get_by_slug("up"):
            u = cls(name="Up", slug="up", default=True,
                    image="icons/fugue/tick-circle.png",
                    description="The service is up")
            u.put()
        if not cls.get_by_slug("warning"):
            w = cls(name="Warning", slug="warning",
                    image="icons/fugue/exclamation.png",
                    description="The service is experiencing intermittent problems")
            w.put()
def load_defaults ( cls ) : if not cls . get_by_slug ( "down" ) : d = cls ( name = "Down" , slug = "down" , image = "icons/fugue/cross-circle.png" , description = "The service is currently down" ) d . put ( ) if not cls . get_by_slug ( "up" ) : u = cls ( name = "Up" , slug = "up" , default = True , image = "icons/fugue/tick-circle.png" , description = "The service is up" ) u . put ( ) if not cls . get_by_slug ( "warning" ) : w = cls ( name = "Warning" , slug = "warning" , image = "icons/fugue/exclamation.png" , description = "The service is experiencing intermittent problems" ) w . put ( )
Install the default statuses.
Install the default statuses .
"""
        Install the default statuses. xI am not sure where these should live just yet
        """
cls