def __init__(self, parent): """ Initialize 'parent' is our MainPage instance that created us """ RenderableResource.__init__(self, parent) self.blocks = []
def __init__(self, webServer): """ Initialize """ RenderableResource.__init__(self, None, None, webServer) self.webServer = webServer self.stopping = None
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.localeNames = [] self.browsers = [] self.licensesNames=[] for locale in self.config.locales.keys(): localeName = locale + ": " langName = langNames.get(locale) localeName += langName self.localeNames.append({'locale': locale, 'text': localeName}) self.localeNames.sort() for browser in mywebbrowser._browsers: if (browser not in browsersHidden): if browser in browserNames: self.browsersAvalaibles.append((browserNames[browser], browser)) self.browsersAvalaibles.sort() self.browsersAvalaibles.append((_(u"Default browser in your system"), "None")) for browser in self.browsersAvalaibles: self.browsers.append({'browser': browser[1], 'text': browser[0]}) a=common.getPackageLicenses() for licenses in a: self.licensesNames.append({'licenseName': licenses,'text':_(licenses)})
def __init__(self, webServer): """ Initialize """ RenderableResource.__init__(self, None, None, webServer) self.webServer = webServer # See if all out main pages are not showing # This is a twisted timer self.stopping = None
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.action = "" self.properties = "" self.style = "" self.client = None
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.action = "" self.properties = "" self.template = "" self.client = None
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.editorPane = EditorPane(self.webServer) self.url = "" self.elements = [] self.isNewIdevice = True self.message = ""
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.localeNames = [] for locale, translation in self.config.locales.items(): localeName = locale + ": " localeName += translation.info().get('x-poedit-language', '') self.localeNames.append((localeName, locale))
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) #Extract source and target langs from dublincore.xul xul = self.config.webDir / 'templates' / 'dublincore.xul' bs = BeautifulSoup(xul.text()) self.langs = bs.find(id="dc_language") self.updateLocaleNames()
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) #Extract source and target langs from dublincore.xul xul = Path(self.config.xulDir).joinpath('templates', 'dublincore.xul') bs = BeautifulSoup(xul.text()) self.langs = bs.find(id="dc_language") self.updateLocaleNames()
def __init__(self, webServer, packagePath=None): """ Initialize """ RenderableResource.__init__(self, None, None, webServer) self.webServer = webServer self.packagePath = packagePath # See if all out main pages are not showing # This is a twisted timer self.stopping = None self.mainpages = {} self.packagesession = {}
def __init__(self, webServer, packagePath=None): """ Initialize """ RenderableResource.__init__(self, None, None, webServer) self.webServer = webServer self.packagePath = packagePath self.package_name = '' # See if all out main pages are not showing # This is a twisted timer self.stopping = None self.mainpages = {}
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.editorPane = EditorPane(self.webServer, self) self.url = "" self.elements = [] self.isNewIdevice = True #JR: Anado esta variable para que los genericos no se puedan previsualizar self.isGeneric = False self.message = ""
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.editorPane = EditorPane(self.webServer, self) self.url = "" self.elements = [] self.isNewIdevice = True # JR: Anado esta variable para que los genericos no se puedan previsualizar self.isGeneric = False self.message = ""
def __init__(self, parent, packRoot=None): """ Initialize """ RenderableResource.__init__(self, parent) self.pacRoot = packRoot self.Nodes = [] self.nodetemp = [] global Nodestest Nodestest = [] if self.pacRoot: self.nodetemp = self.__getNodeOptions(self.pacRoot, 0)
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.action = "" self.properties = "" self.style = "" self.client = None # Remote XML-RPC server log.debug("Preparing remote XML-RPC server: %s" % self.config.stylesRepository.encode("ascii")) self.proxy = Proxy(self.config.stylesRepository.encode("ascii"))
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.localeNames = [] for locale in self.config.locales.keys(): localeName = locale + ": " langName = langNames.get(locale) localeName += langName self.localeNames.append((localeName, locale)) self.localeNames.sort()
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.localeNames = [] for locale, translation in self.config.locales.items(): localeName = locale + ": " langName = translation.info().get('x-exe-language', None) if langName == None: langName = translation.info().get('x-poedit-language', 'English') localeName += langName self.localeNames.append((localeName, locale)) self.localeNames.sort()
def getChild(self, name, request): """ Get the child page for the name given. This is called if our ancestors can't find our child. This is probably because the url is in unicode """ if name == '': return self else: result = self.children.get(unicode(name, 'utf8')) if result is not None: return result else: return RenderableResource.getChild(self, name, request)
def getChild(self, name, request): """ Get the child page for the name given. This is called if our ancestors can't find our child. This is probably because the url is in unicode """ if name == '': return self else: result = self.children.get(unicode(name, 'utf8')) if result is not None: return result else: # This will just raise an error return RenderableResource.getChild(self, name, request)
def getChild(self, name, request): """ Get the child page for the name given. This is called if our ancestors can't find our child. This is probably because the url is in unicode """ if name == '': return self else: result = self.children.get(unicode(name, 'utf8')) if result is not None: return result else: session = request.getSession() if self.packagePath: session.packageStore.addPackage(self.package) self.bindNewPackage(self.package, session) self.packagePath = None if session.uid in self.mainpages.keys(): if name in self.mainpages[session.uid].keys(): return self.mainpages[session.uid][name] # This will just raise an error return RenderableResource.getChild(self, name, request)
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent)
def __init__(self, parent): ''' Constructor ''' RenderableResource.__init__(self, parent)
def __init__(self, parent, package=None, config=None): RenderableResource.__init__(self, parent, package, config)
def __init__(self, parent=None): RenderableResource.__init__(self, parent) a = self b = 6
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.propertiesPane = PropertiesPane(self)
def __init__(self, parent): """ Initialize """ RenderableResource.__init__(self, parent) self.localeNames = []
def __init__(self, parent): RenderableResource.__init__(self, parent) self.blocks = []
def __init__(self, parent): RenderableResource.__init__(self, parent) '''