Example #1
0
class ZAccountPrefsPage(ZBasePrefsPage):

    def __init__(self, parent, account):
        self.account = account

        ZBasePrefsPage.__init__(self, parent)
    # end __init__()

    def _createSession(self):
        return ZAccountPrefsSession(self, self.account)
    # end _createSession()

    def _createPrefsSubPages(self, parent):
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/settings.png") #$NON-NLS-1$
        self.settingsPage = ZAccountSettingsPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.settingsPage, _extstr(u"accountpage.Settings"), _extstr(u"accountpage.Settings_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/publishing.png") #$NON-NLS-1$
        self.pubPage = ZPublishingPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.pubPage, _extstr(u"accountpage.Publishing"), _extstr(u"accountpage.Publishing_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/media_store.png") #$NON-NLS-1$
        self.storePage = ZMediaStoragePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.storePage, _extstr(u"accountpage.Media_Store"), _extstr(u"accountpage.Media_Store_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/template.png") #$NON-NLS-1$
        self.templatePage = ZTemplatePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.templatePage, _extstr(u"accountpage.Template"), _extstr(u"accountpage.Template_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/ping_sites.png") #$NON-NLS-1$
        self.sitesPage = ZPingSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.sitesPage, _extstr(u"accountpage.Ping_Sites"), _extstr(u"accountpage.Ping_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
        
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/tag_sites.png") #$NON-NLS-1$
        self.tagsPage = ZTagSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.tagsPage, _extstr(u"accountpage.Tag_Sites"), _extstr(u"accountpage.Tag_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
        
    # end _createPrefsSubPages()

    def populateWidgets(self):
        self.settingsPage._populateWidgets()
        self.pubPage._populateWidgets()
        self.storePage._populateWidgets()
        self.sitesPage._populateWidgets()
        self.tagsPage._populateWidgets()
    # end populateWidgets()

    def bindWidgetEvents(self):
        self._bindValidatingWidget(self.settingsPage)
        self._bindValidatingWidget(self.pubPage)
        self._bindValidatingWidget(self.storePage)
        self._bindValidatingWidget(self.sitesPage)
        self._bindValidatingWidget(self.tagsPage)
Example #2
0
    def _createPrefsSubPages(self, parent):
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/settings.png") #$NON-NLS-1$
        self.settingsPage = ZAccountSettingsPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.settingsPage, _extstr(u"accountpage.Settings"), _extstr(u"accountpage.Settings_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/publishing.png") #$NON-NLS-1$
        self.pubPage = ZPublishingPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.pubPage, _extstr(u"accountpage.Publishing"), _extstr(u"accountpage.Publishing_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/media_store.png") #$NON-NLS-1$
        self.storePage = ZMediaStoragePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.storePage, _extstr(u"accountpage.Media_Store"), _extstr(u"accountpage.Media_Store_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/template.png") #$NON-NLS-1$
        self.templatePage = ZTemplatePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.templatePage, _extstr(u"accountpage.Template"), _extstr(u"accountpage.Template_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/ping_sites.png") #$NON-NLS-1$
        self.sitesPage = ZPingSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.sitesPage, _extstr(u"accountpage.Ping_Sites"), _extstr(u"accountpage.Ping_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
        
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/tag_sites.png") #$NON-NLS-1$
        self.tagsPage = ZTagSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.tagsPage, _extstr(u"accountpage.Tag_Sites"), _extstr(u"accountpage.Tag_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
Example #3
0
 def __init__(self, parent, session):
     ZPublishingPrefSubPage.__init__(self, parent, session)
Example #4
0
 def __init__(self, parent, session):
     ZPublishingPrefSubPage.__init__(self, parent, session)