Re: [Zope] Zope/Apache Image Catalog
Tom Scheidt wrote: Hi I want to be able to upload images into a folder on Apache using a form page in Zope, and at the same time have the ids cataloged with keywords into a ZCatalog. Basically, to be able to search on keywords and have the related images displayed on a page. Does anyone have any recommendations, or know of any examples of this? Thanks in advance. What follows is a terse answer explaining how I'd go about it, but giving no information about how to accomplish each of the steps. sorry I can't offer any more right now. Hope it helps. Create a ZClass that represents the metadata of your image objects -- that is, Path to the image on Apache Keywords Each time someone enters an image, save the image via LocalFS to a filesystem folder accessible from Apache, and create an instance of your metadata ZClass. Your metadata ZClass should derive fom CatalogAware. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?
Hi! On Fri, 19 May 2000, Evan Simpson wrote: From: Martin Grönemeyer [EMAIL PROTECTED] Error Type: ValueError Error Value: Different namespace. REQUEST.resolve_url requires that the URL you pass to it begins with REQUEST.script Oops! Can you tell more details on this? What is REQUEST.script? I'm asking this becasue my mod_pcgi2 Apache module screws SCRIPT environment variable, and screws it by purpose! Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] detect root folder
Sin Hang Kin wrote: Hi, Is it possible to detect the top folder in dtml? I means I would like to prevent squishdot to show the ../ when it is already in the top level. dtml-if "_.len(PARENTS) == 1" We're at the root folder dtml-else You can go up from here /dtml-if -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Using ReportLab with Zope
To sound out what, if anything, other people are doing in this area: I am interested in using ReportLab with Zope, to provide an improved printed version of web-published documents. What I want to do is fairly straightforward, to create a PDF file with: - a title/cover page with control information - a table of contents - the body of the document, with a technical document style header and footer (title, docref, revision, date, page x of numpages, etc) Indexing would be nice, but that involves much more complexity and is outside the scope of what I need right now. Currently I have documents published from Zope, sourced either as HTML (DTML documents) or XML, with the intention to also produce documents whose content will come mostly from a database (clearly straightforward in Zope). I think what I need to do is find some way of re-directing the output from Zope (what would normally go to the browser) to an external program, which uses ReportLab to generate the PDF file from the HTML stream, and returns the location of the file to Zope to pass to the browser as a re-direct (so the browser gives the user the option to view or download the PDF file). Is this correct? Is anyone already working in this direction? Any hints or tips? Richard ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Refresh adds objects to Add list again
Hi, I'm working with a very simple Product. Whenever I Refresh it, it shows up an additional time in the Add list. Is this expected behavior? I don't think I'm doing anything odd at all in the __init__.py or in the product itself. The __init__.py consists of basically just a single context.registerClass... Kevin http://www.byproducts.com - Humor and Novelties ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FYI: Latest gem appears in CVS
Howdy folks. As mentioned previously, a gem is ready to appear in CVS: mountable databases. What are these? I'll answer with a question. Ever want to have your data segregated into multiple Data.fs files? Ever want to have some of your object data in the regular FileStorage, some in a Berkeley storage for no undo, some in some mythical forthcoming RelationalStorage, etc.? Or perhaps you want to segregate your data for other reasons. This is mountable databases, and it's running on Zope.org right now. We're doing it to have Wikis that don't get pack, to let us see historical information. If you want to send thanks, send them to Jim Fulton and Shane Hathaway. But how would we see the historical information, since Zope doesn't do CVS-like things? Those of you on zope-checkins might have seen this today: """ Message: 4 Date: Sat, 20 May 2000 12:07:08 -0400 From: Jim Fulton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Zope-Checkins] CVS: Zope2 - History.py:1.1 history.dtml:1.1 historyCompare.dtml:1.1 ndiff.py:1.1 DTMLMethod.py:1.45 Update of /cvs-repository/Zope2/lib/python/OFS In directory korak.digicool.com:/projects/users/jim/Historical/lib/python/OFS Modified Files: DTMLMethod.py Added Files: History.py history.dtml historyCompare.dtml ndiff.py Log Message: Added the ability to browse, compare, and revert to historical revisions for DTML methods and documents """ Sure enough, I updated my CVS and saw a "History" tab. Fun stuff, and something that's been a long, long time request from the community. Jim did this in his spare time, so he gets 100% of the credit. --Paul ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FYI: Latest gem appears in CVS
Paul Everitt wrote: Howdy folks. As mentioned previously, a gem is ready to appear in CVS: mountable databases. snip If you want to send thanks, send them to Jim Fulton and Shane Hathaway. From the way this sounds, I need to go update the "DevTestProd" page in the "HighAvailabilityZope" ZWikki, because DC has just answered about 95% of the questions posted there! I think it was John Cleese (as Robin Hood) in Time Bandits, who said it best (upon receiving a bountiful treasure in contribution to the cause) when he stated, "Thank you very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, much." Can't wait to try it, Jerry S. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FYI: Latest gem appears in CVS
Paul Everitt wrote: Howdy folks. As mentioned previously, a gem is ready to appear in CVS: mountable databases. Am I correct in thinking this are ready to appear, but not _in_ CVS yet? I've been looking for the last 15 minutes with no luck, though the history tab is certainly there! :-) Bill ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )