[Nym3-commit] r226 - trunk/nym3/Client
jr at conuropsis.org
jr at conuropsis.org
Tue May 3 13:54:57 CEST 2005
Author: jr
Date: 2005-05-03 13:54:56 +0200 (Tue, 03 May 2005)
New Revision: 226
Modified:
trunk/nym3/Client/Account.py
Log:
Add a getter for the mbox and the synbox in Account
Modified: trunk/nym3/Client/Account.py
===================================================================
--- trunk/nym3/Client/Account.py 2005-05-03 10:19:10 UTC (rev 225)
+++ trunk/nym3/Client/Account.py 2005-05-03 11:54:56 UTC (rev 226)
@@ -25,6 +25,7 @@
"""Contains user account information on the client side
+ way to create, access and modify them"""
+import copy
import os
import nym3.Client.Config as Config
import nym3.Mail as Mail
@@ -398,6 +399,16 @@
self.journal = {}
self.journal_status = 'ok'
+ def get_synbox(self):
+ """return a copy of the synbox"""
+ self._load_synbox()
+ return copy.deepcopy(self['synbox'])
+
+ def get_mbox(self):
+ """return a copy of the mbox"""
+ self._load_mbox()
+ return copy.deepcopy(self['mbox'])
+
def add_synset(self, midlist, bf, synset):
if self.synbox_status == 'unloaded': self._load_synbox()
t = (midlist, bf, synset)
More information about the Nym3-commit
mailing list