blob: 5d0a181cff661d972ab9461b0944cbd510814845 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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".')
|