Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/GUI_Components/Publish_Pane.py
diff options
context:
space:
mode:
Diffstat (limited to 'GUI_Components/Publish_Pane.py')
-rw-r--r--GUI_Components/Publish_Pane.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/GUI_Components/Publish_Pane.py b/GUI_Components/Publish_Pane.py
new file mode 100644
index 0000000..5d0a181
--- /dev/null
+++ b/GUI_Components/Publish_Pane.py
@@ -0,0 +1,42 @@
+# Copyright (C) IBM Corporation 2008
+
+import pygtk
+pygtk.require('2.0')
+import gtk
+from GUI_Components.Pane import Pane
+from GUI_Components.Compound_Widgets.Publish_View import Publish_View
+from Processing.IO_Manager import *
+
+"""
+This pane is used when the user decides to package up articles in themes for distribution
+"""
+class Publish_Pane(Pane):
+
+ def __init__(self):
+ Pane.__init__(self)
+ self.toolbar = gtk.Toolbar()
+
+ self.name = "Publish"
+
+ self.panel = Publish_View()
+ self.panel.show()
+
+ self.toolbar = gtk.Toolbar()
+
+ def get_source_article(self):
+ return self.source
+
+ def set_source_article(self, article):
+ self.source = article
+
+ def get_working_article(self):
+ return self.working
+
+ def set_working_article(self, article):
+ theme = article.article_theme
+ title = article.article_title
+ if theme != None and title != None:
+ IO_Manager().save_article(article)
+ self.working = article
+ self.panel.populate_themes()
+ self.panel.export_message.set_text('Select the theme you want, choose the articles you wish to include in the package and click "Publish".') \ No newline at end of file