Annotation of ExtFile/IExtFile.pyc, revision 1.1

1.1     ! dwinter     1: mò
        !             2: —óCc@sdydklZ&Wn e&j
        !             3: o&&&&d&klZ&n&Xdef&d„ƒYZdef&d„ƒYZdS((&s  Interface(&sBasetIExtFilecBsétZ&dZd&d&eeed„Zd„Zdd„&Zd„Zd„Zd„Z d  „Z
        !             4: d
        !             5: „Zd„Zd„Z
d
„Zd„Zd„Zdded„Zdded„Zdded„Zed„&Zd„Zd„ZRS(sExtFile public interfaceic&Csd&S(s.The default view. Returns the file's contents.N((ticontpreviewtwidththeighttREQUEST((t0/usr/local/testzope/Products/ExtFile/IExtFile.pyt
        !             6: index_htmls&c&Csd&S(s3Redirects to the default view of the file or image.N((((Rtview_image_or_files&tc&&Ksd&S(s/Returns an HTML link tag for the file or image.N((ttexttargs((Rtlinks&c&Csd&S(sKReturns true if the file does not exist in the repository, false otherwise.N((((Rt  is_brokens&c&Csd&S(s&Returns the size of the file or image.N((((Rtget_sizes&c&Csd&S(s:Returns a formatted, stringified version of the file size.N((((Rtsizes&c&Csd&S(s(Returns the filesystem path of the file.N((((Rtget_filename!s&c&Csd&S(s,Returns the file's content type (MIME type).N((((RtgetContentType$s&c&Csd&S(s<Returns true if EXTFILE_STATIC_PATH is set, false otherwise.N((((Rtstatic_mode's&c&Csd&S(sEReturns the Zope or static URL of a file, depending on static_mode().N((((Rt
        !             7: static_url*s&c&Csd&S(s/Redirects to the icon for the file's MIME type.N((((Rticon_gif-s&c&Csd&S(s'Returns an HTML image tag for the icon.N((((Rticon_tag0s&c&Csd&S(sAReturns the filesystem path of the icon for the file's MIME type.N((((RtgetIconPath3s&c&Csd&S(sChanges the properties.N((ttitletdescrR((Rtmanage_editExtFile6s&c&Csd&S(s3Uploads a file from a file handle or string buffer.N((tfiletcontent_typeR((Rt
manage_upload9s&c&Csd&S(s5Uploads a file from a file handle or local directory.N((RRR((Rtmanage_file_upload<s&c&Csd&S(s#Uploads a file from an HTTP server.N((turlR((Rtmanage_http_upload?s&c&Csd&S(s/Called whenever the file data has been updated.N((tfilenameRR((Rtmanage_afterUpdateBs&c&Csd&S(s=Returns the contents of text/* files, empty string otherwise.N((((RtPrincipiaSearchSourceEs&(t__name__t
        !             8: __module__t__doc__tNoneRRRR
RRRRRRRRRRRRRR!R"(((RRs(&                                 t  IExtImagecBs
        !             9: &tZ&dZd&d&eeed&d&d&ded„
        !            10: Zd„Zd„Zd„Zd„Zd„Z    d  „Z
        !            11: d
        !            12: „Zd„Zd„Z
d
„Zd„Zd&d&d&ed„Zed„&Zddd&d&ddd&ed„Zddd&d&ddd&ed„Zd&ed„ZRS(sExtImage public interfaceit&0c
        !            13: &Ksd&S(s)Returns an HTML image tag for this image.N((RR&RRtalttscaletxscaletyscaletborderRR((RttagLsc&Csd&S(s*Returns the pixel width of the main image.N((((RRPs&c&Csd&S(s+Returns the pixle height of the main image.N((((RRSs&c&Csd&S(s)Returns the PIL file format of the image.N((((RtformatVs&c&Csd&S(sFReturns true if the file format is GIF, JPEG, or PNG; false otherwise.N((((Rtis_webviewableYs&c&Csd&S(sRedirects to the preview image.N((((RR\s&c&Csd&S(s0Returns an HTML image tag for the preview image.N((((Rtpreview_tag_s&c&Csd&S(s&Returns the size of the preview image.N((((Rt
get_prev_sizebs&c&Csd&S(sBReturns a formatted stringified version of the preview image size.N((((Rt  prev_sizees&c&Csd&S(s-Returns the pixel width of the preview image.N((((Rt
        !            14: prev_widthhs&c&Csd&S(s.Returns the pixel height of the preview image.N((((Rtprev_heightks&c&Csd&S(s1Returns the filesystem path of the preview image.N((((Rtget_prev_filenamens&c&Csd&S(s'Create the preview from the main image.N((tmaxxtmaxytratioR((Rtmanage_create_prevqs&c&&&Csd&S(sDeletes the preview image.N((&R((Rtmanage_del_prevts&R   c&Csd&S(s@Uploads an image or preview from a file handle or string buffer.N((RRt
        !            15: is_previewtcreate_prevR7R8R9R((RRwsc&Csd&S(sBUploads an image or preview from a file handle or local directory.N((RRR<R=R7R8R9R((RR{sc&Csd&S(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
        !            16: &&=

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