Skip to content

Commit

Permalink
adding setMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmullyan committed Nov 16, 2007
1 parent 33d6c54 commit 553adb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/validino/messages.py
Expand Up @@ -19,7 +19,10 @@ def loadMessages(relative_to=__name__, location='messages.txt'):
def getMessages():
return _messagelocal.messages

__all__=['getMessages', 'loadMessages']
def setMessages(messages):
_messagelocal.messages=messages

__all__=['getMessages', 'setMessages', 'loadMessages']

try:
from contextlib import contextmanager
Expand Down

0 comments on commit 553adb0

Please sign in to comment.