File:  [Repository] / ExtFile / Attic / IExtFile.pyc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jan 24 16:53:50 2007 UTC (17 years, 5 months ago) by dwinter
Branches: first
CVS tags: release
Auf der Basis http://www.zope.org/Members/shh/ExtFile Version 1.5.4

mit zlog ersetzt durch logging


mò
—óCc@sdydklZWn ej
odklZnXdefd„ƒYZdefd„ƒYZdS((s	Interface(sBasetIExtFilecBsétZdZddeeed„Zd„Zdd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„Zd„Zd„Zdded„Zdded„Zdded„Zed„Zd„Zd„ZRS(sExtFile public interfaceicCsdS(s.The default view. Returns the file's contents.N((ticontpreviewtwidththeighttREQUEST((t0/usr/local/testzope/Products/ExtFile/IExtFile.pyt
index_htmlscCsdS(s3Redirects to the default view of the file or image.N((((Rtview_image_or_filestcKsdS(s/Returns an HTML link tag for the file or image.N((ttexttargs((RtlinkscCsdS(sKReturns true if the file does not exist in the repository, false otherwise.N((((Rt	is_brokenscCsdS(s&Returns the size of the file or image.N((((Rtget_sizescCsdS(s:Returns a formatted, stringified version of the file size.N((((RtsizescCsdS(s(Returns the filesystem path of the file.N((((Rtget_filename!scCsdS(s,Returns the file's content type (MIME type).N((((RtgetContentType$scCsdS(s<Returns true if EXTFILE_STATIC_PATH is set, false otherwise.N((((Rtstatic_mode'scCsdS(sEReturns the Zope or static URL of a file, depending on static_mode().N((((Rt
static_url*scCsdS(s/Redirects to the icon for the file's MIME type.N((((Rticon_gif-scCsdS(s'Returns an HTML image tag for the icon.N((((Rticon_tag0scCsdS(sAReturns the filesystem path of the icon for the file's MIME type.N((((RtgetIconPath3scCsdS(sChanges the properties.N((ttitletdescrR((Rtmanage_editExtFile6scCsdS(s3Uploads a file from a file handle or string buffer.N((tfiletcontent_typeR((Rt
manage_upload9scCsdS(s5Uploads a file from a file handle or local directory.N((RRR((Rtmanage_file_upload<scCsdS(s#Uploads a file from an HTTP server.N((turlR((Rtmanage_http_upload?scCsdS(s/Called whenever the file data has been updated.N((tfilenameRR((Rtmanage_afterUpdateBscCsdS(s=Returns the contents of text/* files, empty string otherwise.N((((RtPrincipiaSearchSourceEs(t__name__t
__module__t__doc__tNoneRRRR
RRRRRRRRRRRRRR!R"(((RRs(												t	IExtImagecBs
tZdZddeeedddded„
Zd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„Zd„Zddded„Zed„Zddddddded„Zddddddded„Zded„ZRS(sExtImage public interfaceit0c
KsdS(s)Returns an HTML image tag for this image.N((RRRRtalttscaletxscaletyscaletborderRR((RttagLscCsdS(s*Returns the pixel width of the main image.N((((RRPscCsdS(s+Returns the pixle height of the main image.N((((RRSscCsdS(s)Returns the PIL file format of the image.N((((RtformatVscCsdS(sFReturns true if the file format is GIF, JPEG, or PNG; false otherwise.N((((Rtis_webviewableYscCsdS(sRedirects to the preview image.N((((RR\scCsdS(s0Returns an HTML image tag for the preview image.N((((Rtpreview_tag_scCsdS(s&Returns the size of the preview image.N((((Rt
get_prev_sizebscCsdS(sBReturns a formatted stringified version of the preview image size.N((((Rt	prev_sizeescCsdS(s-Returns the pixel width of the preview image.N((((Rt
prev_widthhscCsdS(s.Returns the pixel height of the preview image.N((((Rtprev_heightkscCsdS(s1Returns the filesystem path of the preview image.N((((Rtget_prev_filenamenscCsdS(s'Create the preview from the main image.N((tmaxxtmaxytratioR((Rtmanage_create_prevqscCsdS(sDeletes the preview image.N((R((Rtmanage_del_prevtsR	cCsdS(s@Uploads an image or preview from a file handle or string buffer.N((RRt
is_previewtcreate_prevR7R8R9R((RRwscCsdS(sBUploads an image or preview from a file handle or local directory.N((RRR<R=R7R8R9R((RR{scCsdS(s0Uploads an image or preview from an HTTP server.N((RR<R((RRs(R#R$R%R&R.RRR/R0RR1R2R3R4R5R6R:R;RRR(((RR'Is$'											!!N(t	InterfacetImportErrortBaseRR'(R>R'R((Rt?s
=

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>