[Zope] python question

2005-05-31 Thread Kate Legere
I may be asking this in the wrong place but I have a tal page where I want to use python to display only the most recent addition to a folder of files. I can sort the folder and return all the files easily with: return sequence.sort(files, (('bobobase_modification_time', 'cmp', 'desc'),)) How d

RE: [Zope] python question

2005-05-31 Thread Kate Legere
Thanks - turns out the real error was in the file dealing with it - all fixed now. Thanks for the help. Kate -Original Message- From: Jim Abramson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 2:38 PM To: Kate Legere; Zope Subject: RE: [Zope] python question sort() on a

[Zope] AttributeError in DocFinder 1.0.3

2005-08-05 Thread Kate Legere
I've installed DocFinder 1.0.3 but I'm getting an error when I try to instantiate. I'm running (Zope 2.6.2 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2) Python Version 2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] I a

[Zope] msSql and python

2005-11-10 Thread Kate Legere
I have a zsql method to which I want to pass and argument. Normally I do it from a dtml method and the use something like this to test for equality. WHERE description = . However, I'm passing the variable from a python script and it won't accept the dtml tag what do I put in the equality tes

RE: [Zope] msSql and python

2005-11-10 Thread Kate Legere
WHERE description = --8< Then, inside your python script: --8< desc = 'some string' context.path.to.query.queryname(description=desc) --8<---- Hope that helps! fm On 11/10/05,

[Zope] probably a simple answer...

2005-11-17 Thread Kate Legere
So this probably has a simple answer but if someone could direct me it would save lots of time ... I have a python script that gets called from a dtml method and returns the information requested from a mySql database and opens it as an excel file. I'd like it also to save the file (it can safely

RE: [Zope] probably a simple answer..

2005-11-17 Thread Kate Legere
Not really.. Ideally, I'd like the script just to save the file to a pre-selected path. Then anyone can open it from there. Kate -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, November 17, 2005 12:14 PM To: zope@zope.org

RE: [Zope] probably a simple answer..

2005-11-17 Thread Kate Legere
EMAIL PROTECTED] Sent: Thursday, November 17, 2005 1:06 PM To: Kate Legere; zope@zope.org Subject: RE: [Zope] probably a simple answer.. Well, I can suggest how I might approach it, which might be different than what you intend... but for what it is worth... First, run Zope on a Windows server so y

[Zope] does anyone know of something like this

2005-11-18 Thread Kate Legere
I develop for a library and wanted to know if there was a zope product that might accomplish what we're looking for before we build it ourselves. We have a number of book club sets that are loaned out to patrons for a 6 week period. The way in which this differs from our regular collection is that

[Zope] attaching an image to an email

2006-06-28 Thread Kate Legere
I'm writing a form which allows the user to send an image attachment with their email... Attach: Send to: My email -- it's handled with sendPic --- To: art critic From: patron Subject: Art Hi, please take a look at my art and post it if you think it's good enough.

RE: [Zope] attaching an image to an email

2006-06-29 Thread Kate Legere
Nope, I still don't get the attachment. Katie -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 3:55 PM To: Kate Legere; zope@zope.org Subject: Re: [Zope] attaching an image to an email - Original Message - From: "Kate Leger

RE: [Zope] attaching an image to an email

2006-06-29 Thread Kate Legere
thold Stöger [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 1:07 AM To: zope@zope.org Cc: Kate Legere Subject: Re: [Zope] attaching an image to an email Hi, On Wednesday 28 June 2006 22:05, Kate Legere wrote: > > To: art critic > From: patron > Subject: Art > > Hi, pleas

[Zope] attribute-less object(assign or del)

2006-12-09 Thread Kate Legere
Module None, line 45, in copy_of_stats_output_branch Line 45 for j in self.sql.sqlGetStatDetailsSum(date1=i.date, branch1=i.branch, category1=i.category, timeCheck1=k): if str(j.sum_renewals)== 'None': line 45 --> j.sum_renewals = 0 elif str(j.sum_registrations)

RE: [Zope] attribute-less object(assign or del)

2006-12-11 Thread Kate Legere
if str(total) != 'None': table_example=table_example+str(total)+' ' else: table_example=table_example+' ' table_example=table_example+'' table_example=table_example+'' # ends

[Zope] want to get the url in python script

2006-12-13 Thread Kate Legere
I'm getting an attribute error finding pyUrlQuote from this: quote = context.pyUrlQuote Is there another way I can get the url? Has this been replaced? Katie ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross

[Zope] change manage_addFile

2006-12-20 Thread Kate Legere
I copied the code from manage_addFileFolder so that we can upload files into the filesystem but I'd like to amend it so that we can specify the target folder rather than just having the file uploaded to the folder in which the form resides. How would I do that? I've looked through the code in OFS

RE: [Zope] attribute-less object(assign or del)

2007-01-03 Thread Kate Legere
It turned out, actually to be easier than I though to correct this - I ended up trapping the exception whenever one occurred. Thanks for all the input. Katie -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Sunday, December 17, 2006 4:25 AM To: Kate Legere Cc

[Zope] sorting

2007-01-25 Thread Kate Legere
I'd like to sort the items in a folder by relevance, relevance being a property I've assigned. I'm using a python script for aj in ao.objectItems(items): aao=aj[1] #the object title=aao.title id=aj[0] aanum=len(aao.objectIds())

[Zope] adding value to the path

2007-02-13 Thread Kate Legere
When I submit this: It works very nicely. I'd like the user to choose the page to amend so I have a select option to choose the page (in this case the one named 'branch' And I think this ought to work.. but it doesn'

RE: [Zope] adding value to the path

2007-02-13 Thread Kate Legere
a single edit form. I'm fine if I specify the path but I need them to add the page name to the path, hence the addition before the /manage_editProperties:method Katie -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 3:49 PM To: Kate Legere