[conduit] Merged SmugMugModule from config-unstable



commit 8c9aab7289a14c0b6ec91ce87c1e6dcc4a0dc2c7
Author: Alexandre Rosenfeld <airmind gmail com>
Date:   Sat Apr 18 00:00:09 2009 -0300

    Merged SmugMugModule from config-unstable
---
 conduit/modules/SmugMugModule/SmugMugModule.py |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/conduit/modules/SmugMugModule/SmugMugModule.py b/conduit/modules/SmugMugModule/SmugMugModule.py
index 5d4f4b3..1b2854c 100644
--- a/conduit/modules/SmugMugModule/SmugMugModule.py
+++ b/conduit/modules/SmugMugModule/SmugMugModule.py
@@ -101,7 +101,25 @@ class SmugMugTwoWay(Image.ImageTwoWay):
     def _get_photo_size (self):
         return self.imageSize
  
-    def configure(self, window):
+    def config_setup(self, config):
+        config.add_section("Account")
+        config.add_item("Email", "text",
+            config_name = "username"
+        )
+        config.add_item("Password", "text",
+            config_name = "password",
+            password = True
+        ) 
+        config.add_section("Saved photos settings")
+        config.add_item("Album", "text",
+            config_name = "album",
+        )
+        config.add_item("Resize photos", "combo",
+            choices = [("None", "No resize"), ("640x480", "640x480"), ("800x600", "800x600"), ("1024x768", "1024x768")],
+            config_name = "imageSize"
+        )
+ 
+    def configure_(self, window):
         """
         Configures the SmugMugTwoWay
         """



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]