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

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

src/c/o/code.pinaxproject.com-HEAD/cpc_project/apps/signals/management.py   code.pinaxproject.com(Download)
def create_notice_types(app, created_models, verbosity, **kwargs):
    NoticeType.create(
        label = "tasks_new",
        display = _("New Task"),
        description = _("a new task been created"),
        default = 2
    )
    NoticeType.create(
        label = "tasks_comment",
    )
    NoticeType.create(
        label = "tasks_change",
        display = _("Task State Change"),
        description = _("there has been a change in the state of a task"),
        default = 2
    )
    NoticeType.create(
        label = "tasks_assignment",
    )
    NoticeType.create(
        label = "tasks_status",
        display = _("Task Status Update"),
        description = _("there has been a status update to a task"),

src/g/e/geonode-HEAD/geonode/maps/management/__init__.py   geonode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("map_created", _("Map Created"), _("A Map was created"))
        notification.models.NoticeType.create("map_comment", _("Comment on Map"), _("A map was commented on"))
        notification.models.NoticeType.create("map_rated", _("Rating for Map"), _("A rating was given to a map"))
 

src/g/e/geonode-HEAD/geonode/layers/management/__init__.py   geonode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("layer_uploaded", _("Layer Uploaded"), _("A layer was uploaded"))
        notification.models.NoticeType.create("layer_comment", _("Comment on Layer"), _("A layer was commented on"))
        notification.models.NoticeType.create("layer_rated", _("Rating for Layer"), _("A rating was given to a layer"))
 

src/g/e/geonode-HEAD/geonode/geoserver/management/__init__.py   geonode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("layer_uploaded", _("Layer Uploaded"), _("A layer was uploaded"))
        notification.models.NoticeType.create("layer_comment", _("Comment on Layer"), _("A layer was commented on"))
        notification.models.NoticeType.create("layer_rated", _("Rating for Layer"), _("A rating was given to a layer"))
 

src/g/e/GeoNode-2.0/geonode/maps/management/__init__.py   GeoNode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("map_created", _("Map Created"), _("A Map was created"))
        notification.models.NoticeType.create("map_comment", _("Comment on Map"), _("A map was commented on"))
        notification.models.NoticeType.create("map_rated", _("Rating for Map"), _("A rating was given to a map"))
 

src/g/e/GeoNode-2.0/geonode/layers/management/__init__.py   GeoNode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("layer_uploaded", _("Layer Uploaded"), _("A layer was uploaded"))
        notification.models.NoticeType.create("layer_comment", _("Comment on Layer"), _("A layer was commented on"))
        notification.models.NoticeType.create("layer_rated", _("Rating for Layer"), _("A rating was given to a layer"))
 

src/d/j/django-backcap-HEAD/backcap/management.py   django-backcap(Download)
def create_notice_types(app, created_models, verbosity, **kwargs):
    NoticeType.create("feedback_new", _("New feedback"), _("A new feedback was submitted"))
    NoticeType.create("feedback_updated", _("Feedback updated"), _("A feedback was updated"))
 
 

src/g/e/geonode-HEAD/geonode/people/management.py   geonode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("user_follow", _("User following you"), _("another user has started following you"))
 
    signals.post_syncdb.connect(create_notice_types, sender=notification.models)
    logger.info("Notifications Configured for geonode.people.managment.commands")

src/g/e/GeoNode-2.0/geonode/people/management.py   GeoNode(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        notification.models.NoticeType.create("user_follow", _("User following you"), _("another user has started following you"))
 
    signals.post_syncdb.connect(create_notice_types, sender=notification.models)
    logger.info("Notifications Configured for geonode.people.managment.commands")

src/d/j/django-rcal-HEAD/rcal/management.py   django-rcal(Download)
    def create_notice_types(app, created_models, verbosity, **kwargs):
        NoticeType.create('event_delete', _('Event Deleted'), _('One of your events got deleted'))
        #NoticeType.create('event_add', _('Event Added'), _('Someone added an event for you'))
 
    from notification import models