Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Cherniuk <ts33kr@gmail.com>2009-11-25 23:59:43 +0300
committerAlexander Cherniuk <ts33kr@gmail.com>2009-11-25 23:59:43 +0300
commita23961fbf64557c86bf023c441184944bf77a2d9 (patch)
tree00069a93fc489f099a179856a7a37b73f10d2ce1 /src/profile_window.py
parent7316d0076667bf0b8c20f97be46e2fe815632683 (diff)
Big portion of doc-string refactoring
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index d00bfc335..a19623397 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -36,7 +36,9 @@ from common import gajim
class ProfileWindow:
- '''Class for our information window'''
+ """
+ Class for our information window
+ """
def __init__(self, account):
self.xml = gtkgui_helpers.get_glade('profile_window.glade')
@@ -173,7 +175,9 @@ class ProfileWindow:
on_response_cancel = on_cancel, on_response_clear = on_clear)
def on_PHOTO_button_press_event(self, widget, event):
- '''If right-clicked, show popup'''
+ """
+ If right-clicked, show popup
+ """
if event.button == 3 and self.avatar_encoded: # right click
menu = gtk.Menu()
@@ -257,7 +261,9 @@ class ProfileWindow:
self.update_progressbar_timeout_id = None
def add_to_vcard(self, vcard_, entry, txt):
- '''Add an information to the vCard dictionary'''
+ """
+ Add an information to the vCard dictionary
+ """
entries = entry.split('_')
loc = vcard_
if len(entries) == 3: # We need to use lists
@@ -280,7 +286,9 @@ class ProfileWindow:
return vcard_
def make_vcard(self):
- '''make the vCard dictionary'''
+ """
+ Make the vCard dictionary
+ """
entries = ['FN', 'NICKNAME', 'BDAY', 'EMAIL_HOME_USERID', 'URL',
'TEL_HOME_NUMBER', 'N_FAMILY', 'N_GIVEN', 'N_MIDDLE', 'N_PREFIX',
'N_SUFFIX', 'ADR_HOME_STREET', 'ADR_HOME_EXTADR', 'ADR_HOME_LOCALITY',