diff src/plugins/plugin_misc_tarot.py @ 916:1a759096ccbd

core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@'
author Goffi <goffi@goffi.org>
date Fri, 21 Mar 2014 16:27:09 +0100
parents 36c6495d86b0
children 301b342c697a
line wrap: on
line diff
--- a/src/plugins/plugin_misc_tarot.py	Fri Mar 21 16:19:46 2014 +0100
+++ b/src/plugins/plugin_misc_tarot.py	Fri Mar 21 16:27:09 2014 +0100
@@ -18,6 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import _
+from sat.core.constants import Const as C
 from logging import debug, info, warning, error
 from twisted.words.xish import domish
 from twisted.words.protocols.jabber import jid
@@ -426,7 +427,7 @@
         del self._sessions[raw_data["session_id"]]
         return defer.succeed({})
 
-    def play_cards(self, player, referee, cards, profile_key='@NONE@'):
+    def play_cards(self, player, referee, cards, profile_key=C.PROF_KEY_NONE):
         """Must be call by player when the contrat is selected
         @param player: player's name
         @param referee: arbiter jid