[Zope] How to display image returned from Catalog query

2001-01-30 Thread Timothy Wilson
Hey everyone, I've got a PythonScript that returns a list of 'Photo' instances. I'm using dtml-in returnPOTD size="1" orphan="0" to grab the first instance off the list. What I can't figure out is how to display that image. I can use a href="dtml-absolute_url;"dtml-var title/a to make a

Re: [Zope] How to display image returned from Catalog query

2001-01-30 Thread Timothy Wilson
On Tue, 30 Jan 2001, Oleg Broytmann wrote: On Tue, 30 Jan 2001, Timothy Wilson wrote: What I can't figure out is how to display that image. I can use a href="dtml-absolute_url;"dtml-var title/a to make a link to the image, but I want this method to display the image

Re: [Zope] Is it possible to use regular CGI's like htDig withzserver?

2001-01-29 Thread Timothy Wilson
On Mon, 29 Jan 2001, Chris Withers wrote: And if so, how would I set that up? -Use Apache as your main server. -Use mod_proxy(?) to proxypass Zope requests through to ZServer. -install htdig as a normal CGI under Apache Presumably, then, this would be the same approach for getting

Re: [Zope] Picture of the day product

2001-01-29 Thread Timothy Wilson
On Mon, 29 Jan 2001, Tres Seaver wrote: I'd like to grab all instances with a display_date = today's date. I can't figure out exactly how to do that in DTML or a Python Script. Once I have that list of instances, I'll simply pull off the latest one as you suggested. I don't know where

[Zope] PythonScript question

2001-01-27 Thread Timothy Wilson
Hi everyone, I'm using the Photo product to diplay some pictures at various resolutions and to display them on a certain date. (Some may recall my questions about a "Picture of the day" recently.) I want to set a 'display_date' property for each Photo instance and I'd like to do it using a

Re: [Zope] Editors [OT]

2001-01-26 Thread Timothy Wilson
On Fri, 26 Jan 2001, Phil Harris wrote: You could use STunnel to wrap Zope in SSL, www.stunnel.org. Phil, Could you expand on this a bit? I would be very interested in wrapping all access to "manage" in SSL. Is that possible? -Tim -- Tim Wilson | Visit Sibley online: | Check

Re: [Zope] Unique ID generation

2001-01-25 Thread Timothy Wilson
On 25 Jan 2001, Tim Moore wrote: I'm writing a simple ZClass (and a second ZClass which contains the first) and I would like the constructor for this class to be able to auto-generate unique IDs for the instances rather than making the owner choose one. Some people call me "Tim" too. :-)

Re: [Zope] Source to www.zope.org

2001-01-21 Thread Timothy Wilson
On Sun, 21 Jan 2001, Gerald Gutierrez wrote: Is the source code to www.zope.org available somewhere? At the bottom of the page there's a link called "View Source" which will give you the original DTML. You can tack 'view_source' onto the end of any www.zope.org URL to see how it was built.

[Zope] batch processing problem

2001-01-20 Thread Timothy Wilson
Hi everyone, I was trying to throw together a page with some pictures of my brand-new nephew for his parents to show to relatives. What should have been a relatively simple dtml-in iteration through a folder full of images has turned out to be headache inducing. I'm sure that there's something

Re: [Zope] Picture of the day product

2001-01-18 Thread Timothy Wilson
On Thu, 18 Jan 2001, Tres Seaver wrote: Subclassing Image might be useful, but you could certainly get by without if, if all you need is to add a property or two: Images have a propertysheet to which you could add them. But if I use the standard Image meta type, wouldn't I have to create a

Re: [Zope] Picture of the day product

2001-01-18 Thread Timothy Wilson
On Thu, 18 Jan 2001, Tres Seaver wrote: This kind of thing is a "query-on-metadata" application; I would put all these images into a single folder (maybe chunked into subfolders by month?), mark them each with an 'effective' property (of type 'Date'), and then select the

[Zope] Picture of the day product

2001-01-17 Thread Timothy Wilson
Hey everyone, I was looking at linux.com the today and I noticed their "Daily Photo." I occurred to me that that would be a fun addition to the school's page that I'm developing. My first thought would be to: * inherit from Image * add caption, date taken, etc. properties * create an archive of

Re: [Zope] Picture of the day product

2001-01-17 Thread Timothy Wilson
On Wed, 17 Jan 2001, Tres Seaver wrote: What I'm not sure about is how to have Zope automatically display the photo for a day, then archive it. Would a boolean property of the ZClass work? Is it possible to have Zope set the property of a ZClass instance at certain time? Any thoughts on

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
Jim (or anyone else who's feeling charitable this morning), Thanks for all your help. I really appreciate it. I wonder if you'd have time to look one more time at the two methods I've got that aren't working. I've included the actual code for my job posting product. Perhaps someone will find it

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
On Mon, 15 Jan 2001, Jim Washington wrote: One point about your form: You have id as a form variable. You will be disappointed by its behavior. Thanks Jim. Care to elaborate on the problems with using id as a form variable. -Tim -- Tim Wilson | Visit Sibley online: | Check

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
On Mon, 15 Jan 2001, Jim Washington wrote: What is the name of the propertysheet in your ZClass that these values are on? Is it 'job_info'? Yes. Where is the editFormAction Python Script? It should be in your ZClass's /methods. If you are instead acquiring it from a Folder somewhere, you

[Zope] How to display only x records with dtml-in

2001-01-15 Thread Timothy Wilson
Hey everyone, I've got a method to display some text which uses dtml-in "objectValues(['Spam and Eggs'])" to iterate through a bunch of "Spam and Eggs" ZClass instances. I thought that I could use size="2" in the dtml-in to display only the first two instances, but it's not working. I want to

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Timothy Wilson
On Sun, 14 Jan 2001, Jim Washington wrote: I am not working through that example, but the below is a start on what you seem to need. Let me know what you think. Thanks Jim. I will study the examples you provided. Do you suppose that the Zope Book would benefit from some examples of this type?

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Timothy Wilson
d_info.manage_changeProperties(REQUEST) Following Evan's advice, would this then be: container.propertysheets['cd_info'].manage_changeProperties(REQUEST) So that's a one-liner? Hmmm. Cool if true. :-) Let's say that I wanted to redirect the user back to the Web page where they had begun this process. How would th

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Timothy Wilson
This seems to almost work. :-) On Sun, 14 Jan 2001, Jim Washington wrote: !dtml-var standard_html_header !dtml-if "REQUEST.form.has_key('editCD')" ! dtml-call "manage_changeCDProperties(REQUEST)" ! pfont color="red"Your changes have been saved/font/p !/dtml-if !form

[Zope] ZClasses meet PythonScripts, sample request

2001-01-13 Thread Timothy Wilson
Hi everyone, I'm looking forward to using some PythonScripts as methods of some ZClasses because it seems like a much cleaner way to do things. I wonder if one of the PythonScript gurus out there would be willing to show an example of two presumably common PythonScript/ZClass tasks: processing

[Zope] Has MailHost API changed?

2001-01-12 Thread Timothy Wilson
Hi everyone, I had a perfectly functioning MailHost object until recently. Site visitors could email feedback to me from the Web page with no trouble. I can't pin it down exactly, but the breakage seems to coincide with a upgrade to 2.2.4 a while ago. The problem also exists in 2.3.0a2. Here's

[Zope] Design/DTML question

2001-01-10 Thread Timothy Wilson
Hi everyone, I'm working on a Web page for our local school board. I'd like to create a table that would display links to past board meeting minutes. The table would look like this: (Note: dates are bogus) +---+ | Meeting Minutes | |

RE: [Zope] Design/DTML question

2001-01-10 Thread Timothy Wilson
On Wed, 10 Jan 2001, Dennis Nichols wrote: Or, if you insist that dates flow down the columns like I do, you could use this untested revision of Max's solution: table width=100% border=0 cellpadding=4 tr align=left valign=top td width=50% dtml-in meetingDateTable

[Zope] SiteAccess and 2.3.0a2

2001-01-10 Thread Timothy Wilson
Hi everyone, I have Evan's excellent SiteAccess product installed on my 2.3.0a1 Zope as an add-on. Now that SiteAccess is part of the Zope core, how should I handle the upgrade. Can I simply recompile? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS |

[Zope] reporting 2.3.0a1 bugs

2000-12-31 Thread Timothy Wilson
Hey everyone, I've discovered a couple problems with 2.3.0a1. Should those be submitted to the collector, or is there somewhere else to report problems with development versions? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/

Re: [Zope] Newbie question - Link between Methods based on Authorization

2000-12-19 Thread Timothy Wilson
On Tue, 19 Dec 2000, Michal Krejza wrote: I have problem with access to method. Example - There are two methods: A and B. Method A contains common information, accessible for all user (include anonymous). Source code in method B updates data for method A and access for method B is restrict

[Zope] user property sheets

2000-12-18 Thread Timothy Wilson
Hey everyone, I'd like to make a product so that Zope users' contact info would be available on a "MemberBio" page whenever you click on a hyperlink of their name. The MemberBio page would also contain a form that could be used to send them email. I know there's been some discussion of property

[Zope] Pesky DateTime problem

2000-12-15 Thread Timothy Wilson
Hi everyone, I would *really* appreciate some advice about a problem with a ZClass I created. This product is a Job Board that our H.R. department can use to post openings and the public can view. I began by looking at the very nice "Build a Searchable Job Board" How-To at

Re: [Zope] Pesky DateTime problem

2000-12-15 Thread Timothy Wilson
On Fri, 15 Dec 2000, seb bacon wrote: The problem lies in adding an instance of the job board ZClass at which point Zope reports an "Invalid Date-Time String". You might have considered this already, but you're not supplying a default date in the DateTime field of the form. This can

[Zope] Problem with 2.2.2 and date properties?

2000-10-12 Thread Timothy Wilson
Hi everyone, I'm having trouble with a ZClass I've created that uses, among others, two date properties. I'm suddenly having problems creating new instances or working with existing instances of my ZClass. I can't be sure, but it seems like the onset of the problems coincided with my upgrade to

[Zope] Using ProxyPass and SiteRoot

2000-10-11 Thread Timothy Wilson
Hi everyone, I've read the "Using Apache with ZServer (NOT Zope.cgi)" How-To and I find that my situation is different enough from the ones described that I'm not having any luck setting it up. I'd appreciate any suggestions on the following: My current Zope site is at

[Zope] sudden ZClass breakage

2000-10-05 Thread Timothy Wilson
Hi everyone, I've been working away on a ZClass-based product that will provide a searchable job board for our Human Resources Dept. here at school. Things were going along fine until, it seemed, out of the blue I started getting an error message about an "Invalid Date-Time String" and a lengthy

[Zope] Allright, who broke acquisition?

2000-10-01 Thread Timothy Wilson
Hi everyone, I'm running Zope 2.2.2 on Linux. All of the sudden I've got some DTML methods that are no longer being acquired in subfolders. I changed the HTML a bit and the whole thing stopped working! I've got some little navigation menus that I'd like to reuse in subfolders by simply referring

[Zope] handling date properties in dtml-if

2000-09-30 Thread Timothy Wilson
Hi everyone, I've created a simple ZClass to allow our Human Resources dept. to post job openings on our Web site. There's a DTML method that iterates through a folder containing all of the 'Job Board Entry' instances and displays them in an HTML table. No problem there. The ZClass has a number

[Zope] displaying based on date

2000-09-25 Thread Timothy Wilson
Hi everyone, I've created a ZClass and I'm using an HTML table to display certain properties of the class. One of the properties is a date, and I want to display in the table only those instances of the ZClass for which this certain date property is in the future. (It's a job posting ZClass, and

[Zope] uploading Word files to Zope

2000-09-13 Thread Timothy Wilson
Hey everyone, Does anyone have any experience with allowing users to upload MS Word files to your Zope server and make them available through your site. Specifically I'm wondering about using wv (formerly mswordview) to convert the Word file to HTML (and a DTML Document, I suppose) and publish

[Zope] ZClass for PDFs

2000-09-07 Thread Timothy Wilson
Hi everyone, I'd like to make a large number of PDF files available for download from my site. HTML versions of the files will also be available for online viewing. I could certainly include the PDF files as regular file objects or I could create a ZClass specifically for PDF files. I suspect

Re: [Zope] ZClass for PDFs

2000-09-07 Thread Timothy Wilson
On Thu, 7 Sep 2000, Tim Cook wrote: Timothy Wilson wrote: I'd like to make a large number of PDF files available for download from my site. HTML versions of the files will also be available for online viewing. I could certainly include the PDF files as regular file objects or I

Re: [Zope] ftp permisions problem

2000-08-26 Thread Timothy Wilson
On Sat, 26 Aug 2000 [EMAIL PROTECTED] wrote: I am running zope ftp on 8021 by defualt. I ftp to it and attempt to upload a file into zope. I get a ettempt to create file failed. Any ideas. I am running all zope permissions as defualt. I log in as superuser. If you're running a 2.2.x

Re: [Zope] FSSession problems...

2000-08-25 Thread Timothy Wilson
On Fri, 25 Aug 2000, Curtis Maloney wrote: Today, however, I find out that some mistakes have been happening. People are finding themselves logged in when they haven't yet, and others finding they're logged in as someone else. This is, obivously, a problem. Warning! Shot in the dark

[Zope] Zope + DocBook HTML

2000-07-12 Thread Timothy Wilson
Hi everyone, I've been doing some work with DocBook lately, and I'd like to convert my work to HTML using the DSSSL stylesheet and put it online. Has anyone done that? I'd be interested to hear about any strategies or pitfalls. -Tim -- Tim Wilson | Visit Sibley online: | Check

Re: [Zope] queries and tiny tables and python methods... oh my!

2000-06-30 Thread Timothy Wilson
On Fri, 30 Jun 2000, Rik Hoekstra wrote: The problem is hooking them all together. Passing the query to a PythonMethod is throwing up the following error: Error Type: TypeError Error Value: argument l: expected read-only character buffer, instance found The error means you're

[Zope] queries and tiny tables and python methods... oh my!

2000-06-29 Thread Timothy Wilson
Hi everyone, (Please excuse the vague Wizard of Oz reference in the sub., but my brain may be imploding. :-) I'm trying to merge several type of Zope objects, and I'm getting lots of little errors. I wonder if someone could suggest where my problem lies. 1. I'm querying our LDAP server to

[Zope] parsing strings in DTML

2000-06-26 Thread Timothy Wilson
Hi everyone, I'm working on what should be a simple problem. I pulling an address out of an ldap query and the data is in the form of a $-separated string. Example: 101 Main St.$Anytown$MN$12345 Please correct me if I'm wrong, but I could probably do dtml-call "REQUEST.set('parsed_address',

Re: [Zope] parsing strings in DTML

2000-06-26 Thread Timothy Wilson
On Mon, 26 Jun 2000, Rik Hoekstra wrote: Please correct me if I'm wrong, but I could probably do dtml-call "REQUEST.set('parsed_address', _.string.join(old_address, '$')" except for the fact that getting "old_address" (the $-separated one) would require its own dtml-var old_address

Re: [Zope] parsing strings in DTML

2000-06-26 Thread Timothy Wilson
On Mon, 26 Jun 2000, Rik Hoekstra wrote: try something like (untested): dtml-call "REQUEST.set('parse_address', _string.split(old_address, '$')" for parsing the string But what if "parse_address" comes from a SQL query? Like this: dtml-in qry_contactInfo dtml-call

[Zope] Attn all Minnesota Zope fans

2000-06-12 Thread Timothy Wilson
Hi everyone, I'd like to know if anyone else in the Twin Cities region of Minnesota is using Zope. I've hooked up with a couple other people in the past few months, and I'm wondering if there's a critical mass of people who would be interested in a *very* informal Zope SIG. Please let me know

Re: [Zope] News tickers

2000-06-07 Thread Timothy Wilson
On Wed, 7 Jun 2000, Oleg Broytmann wrote: Also I'm looking a Product to import RDF/RSS files - I rememeber seeing it somewhere. Check out RSS Channel and XML Document. You'll find them at zope.org. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS |

Re: [Zope] Higher Education

2000-05-26 Thread Timothy Wilson
On Fri, 26 May 2000, Rik Hoekstra wrote: How many are still interested in this? I was among one of the first to be active in the zope-edu list and I am still interested and even working on a product for course maintenance. I even sent Shane an immature snapshot, but had to reimplement the

Re: [Zope] Feeling like a newbie.. document id if statement?

2000-05-24 Thread Timothy Wilson
On Wed, 24 May 2000, Rik Hoekstra wrote: "J. Atwood" wrote: Ok.. this is really dumb, but for some reason I can't get this to work. dtml-if "id=='index_html'" I believe this should be dtml-if "_['id']=='index_html'" I wonder if someone would be kind enough to translate