Exemplo n.º 1
0
 def __init__(self, typeIconPath):
     self.docsetFolder = 'Docsets/WebSearch'
     self.docsetIndexFileName = os.path.join(self.docsetFolder,
                                             'WebSearch.db')
     self.typeManager = TypeManager.TypeManager(typeIconPath)
     self.connection = None
     self.__createDocsetFolder()
     self.__createInitialIndex()
Exemplo n.º 2
0
    def __init__(self, iconPath, typeIconPath):
        self.server = None
        self.running = False
        self.typeManager = TypeManager.TypeManager(typeIconPath)
        self.iconPath = iconPath
        self.docsetFolder = 'Docsets/Transfer'
        self.plistPath = 'Contents/Info.plist'
        self.indexPath = 'Contents/Resources/docSet.dsidx'
        self.installThreads = []
        self.uiUpdateThreads = []
        self.__installingDocsets = []

        self.__createDocsetFolder()
Exemplo n.º 3
0
 def __init__(self, iconPath, typeIconPath, serverManager):
     self.typeManager = TypeManager.TypeManager(typeIconPath)
     self.localServer = None  # 'http://localhost/feeds/'
     self.docsets = []
     self.downloading = []
     self.docsetFolder = 'Docsets/Standard'
     self.plistPath = 'Contents/Info.plist'
     self.indexPath = 'Contents/Resources/docSet.dsidx'
     self.iconPath = iconPath
     self.typeIconPath = typeIconPath
     self.headers = {'User-Agent': 'PyDoc-Pythonista'}
     self.__createDocsetFolder()
     self.docsetFeeds = self.__getDocsetFeeds()
     self.serverManager = serverManager
     self.downloadThreads = []
     self.uiUpdateThreads = []
     self.workThreads = []
Exemplo n.º 4
0
 def __init__(self, serverManager, iconPath, typeIconPath):
     self.typeManager = TypeManager.TypeManager(typeIconPath)
     self.serverManager = serverManager
     self.iconPath = iconPath
     self.typeIconPath = typeIconPath
     self.localServer = None
     self.jsonServerLocation = 'zzz/user_contributed/build/index.json'
     self.downloadServerLocation = 'zzz/user_contributed/build/%@/%$'
     self.plistPath = 'Contents/Info.plist'
     self.indexPath = 'Contents/Resources/docSet.dsidx'
     self.userContributedFolder = 'Docsets/UserContributions'
     self.headers = {'User-Agent': 'PyDoc-Pythonista'}
     self.usercontributed = None
     self.downloading = []
     self.workThreads = []
     self.downloadThreads = []
     self.uiUpdateThreads = []
     self.__createUserContributedFolder()
Exemplo n.º 5
0
 def __init__(self, serverManager, iconPath, typeIconPath):
     self.typeManager = TypeManager.TypeManager(typeIconPath)
     self.serverManager = serverManager
     self.iconPath = iconPath
     self.typeIconPath = typeIconPath
     self.localServer = None
     self.jsonServerLocation = 'zzz/cheatsheets/cheat.json'
     self.downloadServerLocation = 'zzz/cheatsheets/%@.tgz'
     self.plistPath = 'Contents/Info.plist'
     self.indexPath = 'Contents/Resources/docSet.dsidx'
     self.cheatsheetFolder = 'Docsets/Cheatsheets'
     self.headers = {'User-Agent': 'PyDoc-Pythonista'}
     self.cheatsheets = None
     self.downloading = []
     self.workThreads = []
     self.downloadThreads = []
     self.uiUpdateThreads = []
     self.__createCheatsheetFolder()
Exemplo n.º 6
0
	def __init__(self, serverManager, iconPath, typeIconPath):
		self.typeManager = TypeManager.TypeManager(typeIconPath)
		self.serverManager = serverManager
		self.iconPath = iconPath
		self.typeIconPath = typeIconPath
		self.localServer = None
		self.jsonServerLocation = 'zzz/stackoverflow/index.json'
		self.downloadServerLocation = 'zzz/stackoverflow/%@_%v.tgz'
		self.plistPath = 'Contents/Info.plist'
		self.indexPath = 'Contents/Resources/docSet.dsidx'
		self.stackoverflowFolder = 'Docsets/StackOverflow'
		self.headers = {'User-Agent': 'PyDoc-Pythonista'}
		self.stackoverflows = None
		self.downloading = []
		self.workThreads = []
		self.downloadThreads = []
		self.uiUpdateThreads = []
		self.__createStackOverflowFolder()
		self.createInitialSearchIndexAllDocsets()