Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
rref #5367
Browse files Browse the repository at this point in the history
  • Loading branch information
evrenesat committed Jun 22, 2016
1 parent a5e71a5 commit a0df6f7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ulakbus/models/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@

from zengine.auth.permissions import get_all_permissions
from zengine.dispatch.dispatcher import receiver

from zengine.signals import crud_post_save
from zengine.lib.cache import Cache

from zengine.messaging.lib import BaseUser
try:
from zengine.lib.exceptions import PermissionDenied
except ImportError:
class PermissionDenied(Exception):
pass


class User(Model):

class User(Model, BaseUser):
"""User modeli
User modeli Ulakbus temel kullanıcı modelidir. Temel kullanıcı
Expand Down Expand Up @@ -103,9 +105,9 @@ def get_role(self, role_id):
"""
return self.role_set.node_dict[role_id]

def send_message(self, title, message, sender=None):
from zengine.messaging import Notify
Notify(self.key).set_message(title, message, typ=Notify.Message, sender=sender)
# def send_message(self, title, message, sender=None):
# from zengine.messaging import Notify
# Notify(self.key).set_message(title, message, typ=Notify.Message, sender=sender)


class Permission(Model):
Expand Down

0 comments on commit a0df6f7

Please sign in to comment.